apiVersion: v1
kind: Secret
metadata:
  name: {{ include "print.name" . }}
  labels:
    {{- include "app.labels" . | nindent 4 }}
type: Opaque
data:
  {{- if .Values.print.sentryDsn }}
  sentry-dsn: {{ .Values.print.sentryDsn | b64enc | quote }}
  {{- else}}
  sentry-dsn: ""
  {{- end }}

  {{- if .Values.browserless.enabled }}
  browser-ws-endpoint: {{  printf "ws://%s:%d" (include "browserless.name" .) .Values.browserless.service.port | b64enc | quote }}
  {{- else if .Values.print.browserWsEndpoint }}
  browser-ws-endpoint: {{ .Values.print.browserWsEndpoint | b64enc | quote }}
  {{- else}}
  browser-ws-endpoint: ""
  {{- end }}

apiVersion: v1
kind: Secret
metadata:
  name: {{ include "print.name" . }}
  labels:
    {{- include "app.labels" . | nindent 4 }}
type: Opaque
data:
  {{- if .Values.print.sentryDsn }}
  sentry-dsn: {{ .Values.print.sentryDsn | b64enc | quote }}
  {{- else}}
  sentry-dsn: ""
  {{- end }}

  {{- if .Values.browserless.enabled }}
  browser-ws-endpoint: {{  printf "ws://%s:%d" (include "browserless.name" .) (.Values.browserless.service.port | int) | b64enc | quote }}
  {{- else if .Values.print.browserWsEndpoint }}
  browser-ws-endpoint: {{ .Values.print.browserWsEndpoint | b64enc | quote }}
  {{- else}}
  browser-ws-endpoint: ""
  {{- end }}

Fix integer port number in helm
Fix integer port number in helm

Attempt to fix https://github.com/ecamp/ecamp3/pull/2656#issuecomment-1125017886