mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-07-07 03:44:38 +00:00
fixup! fixup! fixup! Improve helm chart allowing for lock of the worker image
This commit is contained in:
+2
-2
@@ -10,9 +10,9 @@ description: |
|
|||||||
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: 0.5.49
|
version: 0.5.50
|
||||||
|
|
||||||
appVersion: "0.5.49"
|
appVersion: "0.5.50"
|
||||||
|
|
||||||
home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator
|
home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator
|
||||||
|
|
||||||
|
|||||||
@@ -4,23 +4,27 @@ metadata:
|
|||||||
name: {{ include "chart.fullname" . }}-sa
|
name: {{ include "chart.fullname" . }}-sa
|
||||||
labels:
|
labels:
|
||||||
control-plane: sa
|
control-plane: sa
|
||||||
{{- include "chart.labels" . | nindent 4 }}
|
{{- include "chart.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.sa.replicas }}
|
replicas: {{ .Values.sa.replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
control-plane: sa
|
control-plane: sa
|
||||||
{{- include "chart.selectorLabels" . | nindent 6 }}
|
{{- include "chart.selectorLabels" . | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
control-plane: sa
|
control-plane: sa
|
||||||
{{- include "chart.selectorLabels" . | nindent 8 }}
|
{{- include "chart.selectorLabels" . | nindent 8 }}
|
||||||
annotations:
|
annotations:
|
||||||
kubectl.kubernetes.io/default-container: manager
|
kubectl.kubernetes.io/default-container: manager
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- args: {{- toYaml .Values.sa.manager.args | nindent 8 }}
|
- name: manager
|
||||||
|
args:
|
||||||
|
{{- range .Values.sa.manager.args }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
- /manager
|
- /manager
|
||||||
env:
|
env:
|
||||||
@@ -30,24 +34,26 @@ spec:
|
|||||||
fieldPath: spec.serviceAccountName
|
fieldPath: spec.serviceAccountName
|
||||||
- name: KUBERNETES_CLUSTER_DOMAIN
|
- name: KUBERNETES_CLUSTER_DOMAIN
|
||||||
value: {{ quote .Values.kubernetesClusterDomain }}
|
value: {{ quote .Values.kubernetesClusterDomain }}
|
||||||
image: {{ .Values.sa.manager.image.repository }}:{{ .Values.sa.manager.image.tag
|
- name: WORKER_IMAGE
|
||||||
| default .Chart.AppVersion }}
|
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) }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz
|
path: /healthz
|
||||||
port: 8081
|
port: 8081
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
name: manager
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /readyz
|
path: /readyz
|
||||||
port: 8081
|
port: 8081
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
resources: {{- toYaml .Values.sa.manager.resources | nindent 10 }}
|
resources:
|
||||||
securityContext: {{- toYaml .Values.sa.manager.containerSecurityContext | nindent
|
{{- toYaml .Values.sa.manager.resources | nindent 10 }}
|
||||||
10 }}
|
securityContext:
|
||||||
securityContext: {{- toYaml .Values.sa.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.sa.manager.containerSecurityContext | nindent 10 }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.sa.podSecurityContext | nindent 8 }}
|
||||||
serviceAccountName: {{ include "chart.fullname" . }}-sa
|
serviceAccountName: {{ include "chart.fullname" . }}-sa
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
|
|||||||
+13
-9
@@ -1,18 +1,22 @@
|
|||||||
kubernetesClusterDomain: cluster.local
|
kubernetesClusterDomain: cluster.local
|
||||||
|
worker:
|
||||||
|
image:
|
||||||
|
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-worker
|
||||||
|
tag: null # Will default to .Chart.AppVersion if not set
|
||||||
sa:
|
sa:
|
||||||
manager:
|
manager:
|
||||||
args:
|
args:
|
||||||
- --metrics-bind-address=:8443
|
- --metrics-bind-address=:8443
|
||||||
- --leader-elect
|
- --leader-elect
|
||||||
- --health-probe-bind-address=:8081
|
- --health-probe-bind-address=:8081
|
||||||
containerSecurityContext:
|
containerSecurityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
||||||
tag: 0.5.49
|
tag: 0.5.50
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
@@ -27,8 +31,8 @@ sa:
|
|||||||
annotations: {}
|
annotations: {}
|
||||||
saMetricsService:
|
saMetricsService:
|
||||||
ports:
|
ports:
|
||||||
- name: https
|
- name: https
|
||||||
port: 8443
|
port: 8443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8443
|
targetPort: 8443
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|||||||
Reference in New Issue
Block a user