rke2-whereabouts: fix gloablSystemRegistry and securityContext

pull/395/head
Thomas Ferrandiz 2024-01-15 15:15:46 +00:00
parent 9dad6f78bd
commit b3fec86a9f
5 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,3 @@
url: local url: local
workingDir: charts workingDir: charts
packageVersion: 07 packageVersion: 08

View File

@ -73,3 +73,11 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }} {{- default "default" .Values.serviceAccount.name }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- define "system_default_registry" -}}
{{- if .Values.global.systemDefaultRegistry -}}
{{- printf "%s/" .Values.global.systemDefaultRegistry -}}
{{- else -}}
{{- "" -}}
{{- end -}}
{{- end -}}

View File

@ -42,9 +42,8 @@ spec:
SLEEP=false /install-cni.sh && SLEEP=false /install-cni.sh &&
/ip-control-loop -log-level debug /ip-control-loop -log-level debug
securityContext: securityContext:
# {{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
privileged: true image: "{{ template "system_default_registry" . }}{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
- name: NODENAME - name: NODENAME

View File

@ -45,3 +45,6 @@ tolerations:
effect: NoSchedule effect: NoSchedule
affinity: {} affinity: {}
global:
systemDefaultRegistry: ""

View File

@ -1,5 +1,5 @@
url: local url: local
workingDir: charts workingDir: charts
packageVersion: 00 packageVersion: 01
# whereabouts is only used as a dependency of multus # whereabouts is only used as a dependency of multus
doNotRelease: true doNotRelease: true