Skip to content

Commit c1b316e

Browse files
feat: adds argocd-image-updater to automatically update container images
1 parent 8699bc4 commit c1b316e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

apps/appsets/components.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ spec:
7474
path: '{{.name}}/manifests/undersync'
7575
- component: nautobot
7676
skipComponent: '{{has "nautobot" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
77+
imageUpdaterImageList: nautobot=ghcr.io/rss-engineering/nautobot-rackspace:staging
7778
sources:
7879
- repoURL: https://nautobot.github.io/helm-charts/
7980
chart: nautobot
@@ -161,6 +162,24 @@ spec:
161162
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
162163
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
163164
path: '{{.name}}/manifests/argo-events'
165+
- component: argocd-image-updater
166+
componentNamespace: argocd
167+
skipComponent: '{{has "argocd-image-updater" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
168+
sources:
169+
- repoURL: https://argoproj.github.io/argo-helm
170+
chart: argocd-image-updater
171+
targetRevision: 0.11.1
172+
helm:
173+
releaseName: argocd-image-updater
174+
valueFiles:
175+
- $deploy/{{.name}}/helm-configs/argocd-image-updater.yaml
176+
ignoreMissingValueFiles: true
177+
- repoURL: '{{index .metadata.annotations "uc_repo_git_url"}}'
178+
targetRevision: '{{index .metadata.annotations "uc_repo_ref"}}'
179+
ref: understack
180+
- repoURL: '{{index .metadata.annotations "uc_deploy_git_url"}}'
181+
targetRevision: '{{index .metadata.annotations "uc_deploy_ref"}}'
182+
ref: deploy
164183
- component: understack-workflows
165184
componentNamespace: argo-events
166185
skipComponent: '{{has "understack-workflows" ((default "[]" (index .metadata.annotations "uc_skip_components") | fromJson))}}'
@@ -238,6 +257,15 @@ spec:
238257
- ServerSideApply=true
239258
- RespectIgnoreDifferences=true
240259
templatePatch: |
260+
{{- if hasKey . "imageUpdaterImageList" }}
261+
metadata:
262+
annotations:
263+
argocd-image-updater.argoproj.io/image-list: {{ .imageUpdaterImageList }}
264+
argocd-image-updater.argoproj.io/nautobot.update-strategy: digest
265+
argocd-image-updater.argoproj.io/nautobot.helm.image-name: nautobot.image.repository
266+
argocd-image-updater.argoproj.io/nautobot.helm.image-tag: nautobot.image.tag
267+
argocd-image-updater.argoproj.io/nautobot.platforms: unknown/unknown,linux/amd64
268+
{{- end }}
241269
spec:
242270
{{- if hasKey . "source" }}
243271
# indentation matters here. need to collapse to a single line to preserve it

0 commit comments

Comments
 (0)