Skip to content

Commit

Permalink
feat(deployment): support list of imagePullSecrets #major (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
xeivieni authored Oct 1, 2024
1 parent 42f7a5c commit be1912f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ helm delete --namespace test my-application
| deployment.initContainers | object | `nil` | Add init containers to the pods. |
| deployment.fluentdConfigAnnotations | object | `nil` | Configuration details for fluentdConfigurations. Only works for specific setup, see <https://medium.com/stakater/dynamic-log-processing-with-fluentd-konfigurator-and-slack-935a5de4eddb>. |
| deployment.replicas | int | `nil` | Number of replicas. |
| deployment.imagePullSecrets | string | `""` | Secret to be used for pulling the images (a single secret is supported). |
| deployment.imagePullSecrets | list | `[]` | List of secrets to be used for pulling the images. |
| deployment.envFrom | object | `nil` | Mount environment variables from ConfigMap or Secret to the pod. |
| deployment.env | object | `nil` | Environment variables to be added to the pod. |
| deployment.volumes | object | `nil` | Volumes to be added to the pod. Key is the name of the volume. Value is the volume definition. |
Expand Down
4 changes: 2 additions & 2 deletions application/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ spec:
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.deployment.imagePullSecrets }}
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
- name: {{ .Values.deployment.imagePullSecrets }}
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
{{- if .Values.deployment.openshiftOAuthProxy.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion application/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ deployment:
replicas: 2

# Secrets used to pull image
imagePullSecrets: ""
imagePullSecrets: []

# If want to mount Envs from configmap or secret
envFrom:
Expand Down
5 changes: 3 additions & 2 deletions application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ deployment:
# -- (int) Number of replicas.
# @section -- Deployment Parameters
replicas:
# -- (string) Secret to be used for pulling the images (a single secret is supported).
# -- (list) List of secrets to be used for pulling the images.
# @section -- Deployment Parameters
imagePullSecrets: ""
imagePullSecrets: []
# - name: docker-pull
# -- (object) Mount environment variables from ConfigMap or Secret to the pod.
# @section -- Deployment Parameters
envFrom:
Expand Down

0 comments on commit be1912f

Please sign in to comment.