diff --git a/chart/templates/clusterauditor/gitrepository.yaml b/chart/templates/clusterauditor/gitrepository.yaml index 5ac441f1bbc45bd63c3995036a08b48de29241d2..96037b7fc5bf3d24946ffc618139a076b3e8c3a0 100644 --- a/chart/templates/clusterauditor/gitrepository.yaml +++ b/chart/templates/clusterauditor/gitrepository.yaml @@ -12,6 +12,12 @@ spec: /**/*.sh interval: {{ .Values.flux.interval }} ref: +{{- if .Values.clusterAuditor.git.commit }} + commit: {{ .Values.clusterAuditor.git.commit }} +{{- else if .Values.clusterAuditor.git.tag }} + tag: {{ .Values.clusterAuditor.git.tag }} +{{- else }} branch: {{ .Values.clusterAuditor.git.branch }} +{{- end }} url: {{ .Values.clusterAuditor.git.repo }} {{- end }} diff --git a/chart/templates/gatekeeper/gitrepository.yaml b/chart/templates/gatekeeper/gitrepository.yaml index 391724b096295a6c2516ec51b79966643e6f7972..76c391e936e1e9da01526267fba4d2a6b31cbfe8 100644 --- a/chart/templates/gatekeeper/gitrepository.yaml +++ b/chart/templates/gatekeeper/gitrepository.yaml @@ -12,6 +12,12 @@ spec: /**/*.sh interval: {{ .Values.flux.interval }} ref: +{{- if .Values.gatekeeper.git.commit }} + commit: {{ .Values.gatekeeper.git.commit }} +{{- else if .Values.gatekeeper.git.tag }} + tag: {{ .Values.gatekeeper.git.tag }} +{{- else }} branch: {{ .Values.gatekeeper.git.branch }} +{{- end }} url: {{ .Values.gatekeeper.git.repo }} {{- end }} diff --git a/chart/templates/istio/gitrepository.yaml b/chart/templates/istio/gitrepository.yaml index 081c2286c85cf39547d212216fbf46d525432c4c..e4164ef900120d7528e5f0c52dd5f062f7230a06 100644 --- a/chart/templates/istio/gitrepository.yaml +++ b/chart/templates/istio/gitrepository.yaml @@ -12,6 +12,12 @@ spec: /**/*.sh interval: {{ .Values.flux.interval }} ref: +{{- if .Values.istio.git.commit }} + commit: {{ .Values.istio.git.commit }} +{{- else if .Values.istio.git.tag }} + tag: {{ .Values.istio.git.tag }} +{{- else }} branch: {{ .Values.istio.git.branch }} +{{- end }} url: {{ .Values.istio.git.repo }} {{- end }} diff --git a/chart/templates/logging/gitrepository.yaml b/chart/templates/logging/gitrepository.yaml index d18ca73748d6fd8e93e0547af02d74469fc1ca72..2d6d4e7bf7a375c1d4d2419391696217a40ba924 100644 --- a/chart/templates/logging/gitrepository.yaml +++ b/chart/templates/logging/gitrepository.yaml @@ -12,6 +12,12 @@ spec: /**/*.sh interval: {{ .Values.flux.interval }} ref: +{{- if .Values.logging.git.commit }} + commit: {{ .Values.logging.git.commit }} +{{- else if .Values.logging.git.tag }} + tag: {{ .Values.logging.git.tag }} +{{- else }} branch: {{ .Values.logging.git.branch }} +{{- end }} url: {{ .Values.logging.git.repo }} {{- end }} diff --git a/chart/templates/monitoring/gitrepository.yaml b/chart/templates/monitoring/gitrepository.yaml index ef8092a41837725c32b426a78d190c23329339ed..819543bbed44e5257d9c30db78787eb78ba08bc8 100644 --- a/chart/templates/monitoring/gitrepository.yaml +++ b/chart/templates/monitoring/gitrepository.yaml @@ -12,6 +12,12 @@ spec: /**/*.sh interval: {{ .Values.flux.interval }} ref: +{{- if .Values.monitoring.git.commit }} + commit: {{ .Values.monitoring.git.commit }} +{{- else if .Values.monitoring.git.tag }} + tag: {{ .Values.monitoring.git.tag }} +{{- else }} branch: {{ .Values.monitoring.git.branch }} +{{- end }} url: {{ .Values.monitoring.git.repo }} {{- end }} diff --git a/chart/templates/twistlock/gitrepository.yaml b/chart/templates/twistlock/gitrepository.yaml index 8a0e3b0eb395ba56e76c2b90f776c869b7c8476e..1b835cab631e3e95969f28d034f82a8eef306839 100644 --- a/chart/templates/twistlock/gitrepository.yaml +++ b/chart/templates/twistlock/gitrepository.yaml @@ -12,6 +12,12 @@ spec: /**/*.sh interval: {{ .Values.flux.interval }} ref: +{{- if .Values.twistlock.git.commit }} + commit: {{ .Values.twistlock.git.commit }} +{{- else if .Values.twistlock.git.tag }} + tag: {{ .Values.twistlock.git.tag }} +{{- else }} branch: {{ .Values.twistlock.git.branch }} +{{- end }} url: {{ .Values.twistlock.git.repo }} {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index bcf7fa0fde92a27ed2a6d34aeaf43bd0e46d4c4a..c381e629ea54d28947c1e2b53a94f1fdfe266fdd 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -27,6 +27,8 @@ istio: git: repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/servicemesh.git branch: chart-release + # commit: "" + # tag: "" values: {} clusterAuditor: @@ -34,6 +36,8 @@ clusterAuditor: git: repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/cluster-auditor.git branch: chart-release + # commit: "" + # tag: "" values: {} gatekeeper: @@ -41,6 +45,8 @@ gatekeeper: git: repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/policy.git branch: chart-release + # commit: "" + # tag: "" values: {} logging: @@ -48,6 +54,8 @@ logging: git: repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/logging.git branch: release-v0.2.x + # commit: "" + # tag: "" values: {} monitoring: @@ -55,6 +63,8 @@ monitoring: git: repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/monitoring.git branch: release-v0.2.x + # commit: "" + # tag: "" values: {} twistlock: @@ -62,4 +72,6 @@ twistlock: git: repo: https://repo1.dsop.io/platform-one/big-bang/apps/security-tools/twistlock.git branch: chart-release + # commit: "" + # tag: "" values: {}