hivemq/helm-charts

ImagePullSecrets missing for webhook and custom resource

Opened this issue · 1 comments

containers:
- name: patch
{{- if .Values.operator.admissionWebhooks.patch.image.sha }}
image: {{ .Values.operator.admissionWebhooks.patch.image.repository }}:{{ .Values.operator.admissionWebhooks.patch.image.tag }}@sha256:{{ .Values.operator.admissionWebhooks.patch.image.sha }}
{{- else }}
image: {{ .Values.operator.admissionWebhooks.patch.image.repository }}:{{ .Values.operator.admissionWebhooks.patch.image.tag }}
{{- end }}
imagePullPolicy: {{ .Values.operator.admissionWebhooks.patch.image.pullPolicy }}
args:
- patch
- --webhook-name={{ template "hivemq.fullname" . }}-admission
- --namespace={{ template "hivemq.namespace" . }}
- --patch-mutating=false
- --secret-name={{ template "hivemq.fullname" . }}-admission
- --patch-failure-policy={{ .Values.operator.admissionWebhooks.failurePolicy }}
resources:

Image for webhook can be specified, but no imagePullSecrets can be given. Most customers depending on changing the image/repo will also have to give credentials for their company container registries.

For the HiveMQ K8s image, imagePullSecrets can be given but there is no hint about that in values.yaml, only in hivemqCluster.json. Would be more user friendly if all possible settings are given in values.yaml (and just commented out).

@patrickjahns

Thank you for reporting this - please feel free to propose the changes as pull-request - thank you :-)