Skip to content

Commit

Permalink
wrap flux image automation in tool conditional to support both flux a…
Browse files Browse the repository at this point in the history
…nd argocd
  • Loading branch information
loyal2thesea committed Dec 31, 2024
1 parent 23cb39f commit e9ff6c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/generic-service/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: generic-service
description: A Helm chart for Kubernetes
version: 1.1.6-alpha
version: 1.1.6-beta
dependencies:
- name: memcached
version: 6.6.x
Expand Down
2 changes: 2 additions & 0 deletions charts/generic-service/templates/imagepolicy.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if or (not .Values.tool) (eq .Values.tool "") (eq .Values.tool "flux") }}
{{- range $key, $value := .Values.worker }}
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
Expand Down Expand Up @@ -44,3 +45,4 @@ spec:
order: asc
{{- end }}
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/generic-service/templates/imageupdateautomation.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if or (not .Values.tool) (eq .Values.tool "") (eq .Values.tool "flux") }}
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageUpdateAutomation
Expand All @@ -24,3 +25,4 @@ spec:
update:
{{- template "path" . }}
strategy: Setters
{{- end }}

0 comments on commit e9ff6c5

Please sign in to comment.