diff --git a/charts/redpanda/Chart.yaml b/charts/redpanda/Chart.yaml index c5ea1cd689..8233260c80 100644 --- a/charts/redpanda/Chart.yaml +++ b/charts/redpanda/Chart.yaml @@ -23,7 +23,7 @@ type: application # The chart version and the app version are not the same and will not track # together. The chart version is a semver representation of changes to this # chart. -version: 4.0.21 +version: 4.0.22 # The app version is the default version of Redpanda to install. appVersion: v23.1.10 diff --git a/charts/redpanda/templates/post-install-upgrade-job.yaml b/charts/redpanda/templates/post-install-upgrade-job.yaml index ade553daf6..847c225e98 100644 --- a/charts/redpanda/templates/post-install-upgrade-job.yaml +++ b/charts/redpanda/templates/post-install-upgrade-job.yaml @@ -61,6 +61,9 @@ spec: {{- end }} restartPolicy: Never securityContext: {{ include "pod-security-context" . | nindent 8 }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }}-post-install image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/post-upgrade.yaml b/charts/redpanda/templates/post-upgrade.yaml index 2aff7692ba..25a0975389 100644 --- a/charts/redpanda/templates/post-upgrade.yaml +++ b/charts/redpanda/templates/post-upgrade.yaml @@ -57,6 +57,9 @@ spec: restartPolicy: Never securityContext: {{ include "pod-security-context" . | nindent 8 }} serviceAccountName: {{ include "redpanda.serviceAccountName" . }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }}-post-upgrade image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/statefulset.yaml b/charts/redpanda/templates/statefulset.yaml index eb9adcb8de..394db0d880 100644 --- a/charts/redpanda/templates/statefulset.yaml +++ b/charts/redpanda/templates/statefulset.yaml @@ -65,6 +65,9 @@ spec: terminationGracePeriodSeconds: {{ .Values.statefulset.terminationGracePeriodSeconds }} securityContext: {{ include "pod-security-context" . | nindent 8 }} serviceAccountName: {{ include "redpanda.serviceAccountName" . }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 8 }} + {{- end }} initContainers: {{- if and (hasKey $values.tuning "tune_aio_events") $values.tuning.tune_aio_events }} - name: tuning diff --git a/charts/redpanda/templates/tests/test-api-status.yaml b/charts/redpanda/templates/tests/test-api-status.yaml index 8ab39c8039..e4681abf39 100644 --- a/charts/redpanda/templates/tests/test-api-status.yaml +++ b/charts/redpanda/templates/tests/test-api-status.yaml @@ -32,6 +32,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-console.yaml b/charts/redpanda/templates/tests/test-console.yaml index 9ebc961ee1..3f478a2adb 100644 --- a/charts/redpanda/templates/tests/test-console.yaml +++ b/charts/redpanda/templates/tests/test-console.yaml @@ -32,6 +32,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-internal-external-tls-secrets.yaml b/charts/redpanda/templates/tests/test-internal-external-tls-secrets.yaml index e57afb0177..859a62e93a 100644 --- a/charts/redpanda/templates/tests/test-internal-external-tls-secrets.yaml +++ b/charts/redpanda/templates/tests/test-internal-external-tls-secrets.yaml @@ -34,6 +34,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-kafka-internal-tls-status.yaml b/charts/redpanda/templates/tests/test-kafka-internal-tls-status.yaml index 61816fb1d0..f6bc0a0478 100644 --- a/charts/redpanda/templates/tests/test-kafka-internal-tls-status.yaml +++ b/charts/redpanda/templates/tests/test-kafka-internal-tls-status.yaml @@ -35,6 +35,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml b/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml index f1f930a49d..d5b871a1e9 100644 --- a/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml +++ b/charts/redpanda/templates/tests/test-kafka-produce-consume.yaml @@ -34,6 +34,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-kafka-sasl-status.yaml b/charts/redpanda/templates/tests/test-kafka-sasl-status.yaml index c5484c9dba..8ae0b52d0c 100644 --- a/charts/redpanda/templates/tests/test-kafka-sasl-status.yaml +++ b/charts/redpanda/templates/tests/test-kafka-sasl-status.yaml @@ -38,6 +38,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-pandaproxy-internal-tls-status.yaml b/charts/redpanda/templates/tests/test-pandaproxy-internal-tls-status.yaml index 41400028d8..216c1b8361 100644 --- a/charts/redpanda/templates/tests/test-pandaproxy-internal-tls-status.yaml +++ b/charts/redpanda/templates/tests/test-pandaproxy-internal-tls-status.yaml @@ -35,6 +35,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-pandaproxy-status.yaml b/charts/redpanda/templates/tests/test-pandaproxy-status.yaml index 8973c0933a..0d649fdcb6 100644 --- a/charts/redpanda/templates/tests/test-pandaproxy-status.yaml +++ b/charts/redpanda/templates/tests/test-pandaproxy-status.yaml @@ -32,6 +32,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-rack-awareness.yaml b/charts/redpanda/templates/tests/test-rack-awareness.yaml index 9f5d4bf49f..b6e27faece 100644 --- a/charts/redpanda/templates/tests/test-rack-awareness.yaml +++ b/charts/redpanda/templates/tests/test-rack-awareness.yaml @@ -33,6 +33,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-rpk-debug-bundle.yaml b/charts/redpanda/templates/tests/test-rpk-debug-bundle.yaml index e0fcbe6a88..0580d4def4 100644 --- a/charts/redpanda/templates/tests/test-rpk-debug-bundle.yaml +++ b/charts/redpanda/templates/tests/test-rpk-debug-bundle.yaml @@ -49,6 +49,9 @@ spec: matchLabels: statefulset.kubernetes.io/pod-name: {{ include "redpanda.fullname" . }}-0 topologyKey: kubernetes.io/hostname + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} initContainers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository}}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-sasl-updated.yaml b/charts/redpanda/templates/tests/test-sasl-updated.yaml index 6f92d57fb0..8550c656f2 100644 --- a/charts/redpanda/templates/tests/test-sasl-updated.yaml +++ b/charts/redpanda/templates/tests/test-sasl-updated.yaml @@ -37,6 +37,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-schemaregistry-internal-tls-status.yaml b/charts/redpanda/templates/tests/test-schemaregistry-internal-tls-status.yaml index 88978a9e50..aab429391d 100644 --- a/charts/redpanda/templates/tests/test-schemaregistry-internal-tls-status.yaml +++ b/charts/redpanda/templates/tests/test-schemaregistry-internal-tls-status.yaml @@ -35,6 +35,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/templates/tests/test-schemaregistry-status.yaml b/charts/redpanda/templates/tests/test-schemaregistry-status.yaml index fdf2261b8c..a36005dab1 100644 --- a/charts/redpanda/templates/tests/test-schemaregistry-status.yaml +++ b/charts/redpanda/templates/tests/test-schemaregistry-status.yaml @@ -32,6 +32,9 @@ spec: securityContext: runAsUser: 65535 runAsGroup: 65535 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{- toYaml . | nindent 4 }} + {{- end }} containers: - name: {{ template "redpanda.name" . }} image: {{ .Values.image.repository }}:{{ template "redpanda.tag" . }} diff --git a/charts/redpanda/values.yaml b/charts/redpanda/values.yaml index c66611ad41..3349a9fe2f 100644 --- a/charts/redpanda/values.yaml +++ b/charts/redpanda/values.yaml @@ -56,6 +56,10 @@ image: # If `image.tag` is 'latest', the default is `Always`. pullPolicy: IfNotPresent +# -- Pull secrets may be used to provide credentials to image repositories +# See https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ +imagePullSecrets: [] + # -- Enterprise license key (optional). # For details, # see the [License documentation](https://docs.redpanda.com/docs/get-started/licenses/?platform=kubernetes#redpanda-enterprise-edition).