Skip to content

Commit

Permalink
Merge pull request #63 from tithely/flux-to-argo
Browse files Browse the repository at this point in the history
[DEVOPS-2554] Wrap flux image automation in tool conditional
  • Loading branch information
loyal2thesea authored Jan 24, 2025
2 parents 23cb39f + e9ff6c5 commit 8d0f8a5
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 8d0f8a5

Please sign in to comment.