Skip to content

Commit 5b50236

Browse files
committed
make sidecar image configurable
1 parent dca6e15 commit 5b50236

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

charts/appset-secret-plugin/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ A Helm chart for adding a K8s Secret Plugin Generator to Argo CD ApplicationSets
2020
| autoscaling.minReplicas | int | `1` | |
2121
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
2222
| configReloader.folder | string | `"/var/run/secret-plugin"` | full path on container to put secret file |
23+
| configReloader.image.pullPolicy | string | `"IfNotPresent"` | image pullPolicy for the main container |
24+
| configReloader.image.repository | string | `"quay.io/kiwigrid/k8s-sidecar"` | registry and repo for the configreloader image |
25+
| configReloader.image.tag | string | `"1.30.3"` | tag to point at for k8s-sidecar |
2326
| configReloader.interval | int | `10` | interval to wait before retrying a check for changes (in seconds) |
2427
| configReloader.label | string | `"argocd-appset-secret-plugin"` | the label to check for on the Secret (secretVars.existingSecret) |
2528
| configReloader.labelValue | string | `"1"` | the label value to check for on the Secret (secretVars.existingSecret) |

charts/appset-secret-plugin/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ spec:
3131
containers:
3232
# reload config
3333
- name: config-reloader
34-
image: quay.io/kiwigrid/k8s-sidecar:1.30.3
35-
imagePullPolicy: IfNotPresent
34+
image: "{{ .Values.configReloader.image.repository }}:{{ .Values.configReloader.image.tag }}"
35+
imagePullPolicy: {{ .Values.configReloader.image.imagePullPolicy }}
3636
env:
3737
- name: LABEL
3838
value: "{{ .Values.configReloader.label }}"

charts/appset-secret-plugin/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ logging:
3737

3838
# configReloader sidecar that automatically loads in changes to your Secret
3939
configReloader:
40+
image:
41+
# -- registry and repo for the configreloader image
42+
repository: quay.io/kiwigrid/k8s-sidecar
43+
# -- tag to point at for k8s-sidecar
44+
tag: 1.30.3
45+
# -- image pullPolicy for the main container
46+
pullPolicy: IfNotPresent
47+
4048
# -- the label to check for on the Secret (secretVars.existingSecret)
4149
label: "argocd-appset-secret-plugin"
4250
# -- the label value to check for on the Secret (secretVars.existingSecret)

0 commit comments

Comments
 (0)