Skip to content

Commit a55531a

Browse files
committed
set ghcr as the default registry
1 parent ed745f3 commit a55531a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

charts/rustcloak-operator/templates/deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ spec:
3737
- name: {{ .Chart.Name }}
3838
securityContext:
3939
{{- toYaml .Values.securityContext | nindent 12 }}
40-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
40+
{{- $image := .Values.image.repository }}
41+
{{- with .Values.image.registry }}
42+
{{- $image = (printf "%s/%s" . $image) }}
43+
{{- end }}
44+
image: "{{ $image }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
4145
imagePullPolicy: {{ .Values.image.pullPolicy }}
4246
args:
4347
{{- with .Values.application.legacy }}

charts/rustcloak-operator/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ application:
88
legacy: false
99

1010
image:
11-
repository: withlazers/rustcloak-operator
11+
registry: ghcr.io/withlazers/rustcloak-operator
12+
repository: rustcloak-operator
1213
pullPolicy: IfNotPresent
1314
tag: ""
1415

0 commit comments

Comments
 (0)