fixup! fixup! fixup! fixup! Improve helm chart allowing for lock of the worker image

This commit is contained in:
2025-01-14 00:02:40 +00:00
parent 436da4de13
commit fe4913f947
4 changed files with 25 additions and 33 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ description: |
type: application
version: 0.5.50
version: 0.5.51
appVersion: "0.5.50"
appVersion: "0.5.51"
home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator
+8 -14
View File
@@ -20,11 +20,7 @@ spec:
kubectl.kubernetes.io/default-container: manager
spec:
containers:
- name: manager
args:
{{- range .Values.sa.manager.args }}
- {{ . }}
{{- end }}
- args: {{- toYaml .Values.sa.manager.args | nindent 8 }}
command:
- /manager
env:
@@ -34,26 +30,24 @@ spec:
fieldPath: spec.serviceAccountName
- name: KUBERNETES_CLUSTER_DOMAIN
value: {{ quote .Values.kubernetesClusterDomain }}
- name: WORKER_IMAGE
value: {{ printf "%s:%s" .Values.worker.image.repository (.Values.worker.image.tag | default .Chart.AppVersion) }}
image: {{ printf "%s:%s" .Values.sa.manager.image.repository (.Values.sa.manager.image.tag | default .Chart.AppVersion) }}
image: {{ .Values.sa.manager.image.repository }}:{{ .Values.sa.manager.image.tag
| default .Chart.AppVersion }}
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
name: manager
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
resources:
{{- toYaml .Values.sa.manager.resources | nindent 10 }}
securityContext:
{{- toYaml .Values.sa.manager.containerSecurityContext | nindent 10 }}
securityContext:
{{- toYaml .Values.sa.podSecurityContext | nindent 8 }}
resources: {{- toYaml .Values.sa.manager.resources | nindent 10 }}
securityContext: {{- toYaml .Values.sa.manager.containerSecurityContext | nindent
10 }}
securityContext: {{- toYaml .Values.sa.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "chart.fullname" . }}-sa
terminationGracePeriodSeconds: 10
+1 -5
View File
@@ -1,8 +1,4 @@
kubernetesClusterDomain: cluster.local
worker:
image:
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-worker
tag: null # Will default to .Chart.AppVersion if not set
sa:
manager:
args:
@@ -16,7 +12,7 @@ sa:
- ALL
image:
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
tag: 0.5.50
tag: 0.5.51
resources:
limits:
cpu: 500m
+2
View File
@@ -68,6 +68,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.serviceAccountName
- name: WORKER_IMAGE
value: ghcr.io/lukaszraczylo/kubernetes-images-sync-worker:latest
image: controller:latest
name: manager
securityContext: