Skip to content

Commit

Permalink
feat: made argocd image updater cm and secret name templated
Browse files Browse the repository at this point in the history
Signed-off-by: AvivGuiser <[email protected]>
  • Loading branch information
KyriosGN0 committed Oct 29, 2024
1 parent 909ece4 commit 05a097b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 21 deletions.
4 changes: 3 additions & 1 deletion charts/argocd-image-updater/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-image-updater
description: A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD
type: application
version: 0.11.0
version: 0.11.1
appVersion: v0.14.0
home: https://github.com/argoproj-labs/argocd-image-updater
icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png
Expand All @@ -20,3 +20,5 @@ annotations:
artifacthub.io/changes: |
- kind: changed
description: Bump argocd-image-updater to v0.14.0
- kind: changed
description: updated configmap template and secret template to have a templated name
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ConfigMap
metadata:
labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }}
name: argocd-image-updater-authscripts
name: {{ include "argocd-image-updater.fullname" . }}-authscripts
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
data:
{{- toYaml .Values.authScripts.scripts | nindent 2}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ConfigMap
metadata:
labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }}
name: argocd-image-updater-ssh-config
name: {{ include "argocd-image-updater.fullname" . }}-sshconfig
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
{{- with .Values.config.sshConfig }}
data:
Expand Down
2 changes: 1 addition & 1 deletion charts/argocd-image-updater/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: ConfigMap
metadata:
labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }}
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
data:
{{- with .Values.config.applicationsAPIKind }}
Expand Down
32 changes: 16 additions & 16 deletions charts/argocd-image-updater/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,79 +44,79 @@ spec:
valueFrom:
configMapKeyRef:
key: applications_api
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: ARGOCD_GRPC_WEB
valueFrom:
configMapKeyRef:
key: argocd.grpc_web
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: ARGOCD_SERVER
valueFrom:
configMapKeyRef:
key: argocd.server_addr
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: ARGOCD_INSECURE
valueFrom:
configMapKeyRef:
key: argocd.insecure
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: ARGOCD_PLAINTEXT
valueFrom:
configMapKeyRef:
key: argocd.plaintext
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: ARGOCD_TOKEN
valueFrom:
secretKeyRef:
key: argocd.token
name: argocd-image-updater-secret
name:{{ include "argocd-image-updater.fullname" . }}-secret
optional: true
- name: IMAGE_UPDATER_LOGLEVEL
valueFrom:
configMapKeyRef:
key: log.level
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: GIT_COMMIT_USER
valueFrom:
configMapKeyRef:
key: git.user
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: GIT_COMMIT_EMAIL
valueFrom:
configMapKeyRef:
key: git.email
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: IMAGE_UPDATER_KUBE_EVENTS
valueFrom:
configMapKeyRef:
key: kube.events
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: GIT_COMMIT_SIGNING_KEY
valueFrom:
configMapKeyRef:
key: git.commit-signing-key
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: GIT_COMMIT_SIGNING_METHOD
valueFrom:
configMapKeyRef:
key: git.commit-signing-method
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
- name: GIT_COMMIT_SIGN_OFF
valueFrom:
configMapKeyRef:
key: git.commit-sign-off
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 10 }}
Expand Down Expand Up @@ -177,21 +177,21 @@ spec:
path: registries.conf
- key: git.commit-message-template
path: commit.template
name: argocd-image-updater-config
name: {{ include "argocd-image-updater.fullname" . }}-config
optional: true
name: image-updater-conf
{{- if .Values.authScripts.enabled }}
- configMap:
defaultMode: 0777
name: argocd-image-updater-authscripts
name: {{ include "argocd-image-updater.fullname" . }}-authscripts
name: authscripts
{{- end }}
- configMap:
name: argocd-ssh-known-hosts-cm
optional: true
name: ssh-known-hosts
- configMap:
name: argocd-image-updater-ssh-config
name: {{ include "argocd-image-updater.fullname" . }}-sshconfig
optional: true
name: ssh-config
- name: ssh-signing-key
Expand Down
2 changes: 1 addition & 1 deletion charts/argocd-image-updater/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Secret
metadata:
name: argocd-image-updater-secret
name: {{ include "argocd-image-updater.fullname" . }}-secret
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }}
Expand Down

0 comments on commit 05a097b

Please sign in to comment.