Skip to content

Commit

Permalink
chore(base-cluster): use template instead of duplicated value (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau committed Jul 24, 2024
1 parent 1591517 commit 4ef2389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/backup/velero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
cleanUpCRDs: true
initContainers:
- name: velero-plugin-for-aws
image: {{ printf "%s/velero/velero-plugin-for-aws:v1.7.0" (.Values.global.imageRegistry | default "docker.io") }}
image: {{ printf "%s/velero/velero-plugin-for-aws:v1.7.0" (.Values.global.imageRegistry | default (include "base-cluster.defaultRegistry" (dict))) }}
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /target
Expand Down
6 changes: 3 additions & 3 deletions charts/base-cluster/templates/kyverno/kyverno.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ spec:
{{- else }}
test:
image:
registry: docker.io
registry: {{ include "base-cluster.defaultRegistry" (dict) }}
cleanupJobs:
admissionReports: &defaultImage
image:
registry: docker.io
registry: {{ include "base-cluster.defaultRegistry" (dict) }}
updateRequests: *defaultImage
ephemeralReports: *defaultImage
clusterEphemeralReports: *defaultImage
Expand All @@ -53,7 +53,7 @@ spec:
enable: true
{{- if not .Values.global.imageRegistry }}
image:
registry: docker.io
registry: {{ include "base-cluster.defaultRegistry" (dict) }}
{{- end }}
serviceMonitor:
enabled: {{ .Values.monitoring.prometheus.enabled }}
Expand Down

0 comments on commit 4ef2389

Please sign in to comment.