From 2fefabeac10f6aeba95f7eb3f02eb5941cac48d5 Mon Sep 17 00:00:00 2001 From: Fred Rolland Date: Wed, 29 Jan 2025 09:54:35 +0200 Subject: [PATCH] bug: fix helm maintenance operator image Signed-off-by: Fred Rolland --- .../charts/maintenance-operator-chart/README.md | 3 ++- .../maintenance-operator-chart/templates/deployment.yaml | 2 +- .../charts/maintenance-operator-chart/values.yaml | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deployment/network-operator/charts/maintenance-operator-chart/README.md b/deployment/network-operator/charts/maintenance-operator-chart/README.md index 9fb19b65..8c5d686f 100644 --- a/deployment/network-operator/charts/maintenance-operator-chart/README.md +++ b/deployment/network-operator/charts/maintenance-operator-chart/README.md @@ -17,7 +17,8 @@ Maintenance Operator Helm Chart | operator.admissionController.enable | bool | `true` | enable admission controller of the operator | | operator.affinity | object | `{"nodeAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"preference":{"matchExpressions":[{"key":"node-role.kubernetes.io/master","operator":"Exists"}]},"weight":1},{"preference":{"matchExpressions":[{"key":"node-role.kubernetes.io/control-plane","operator":"Exists"}]},"weight":1}]}}` | node affinity for the operator | | operator.image.imagePullPolicy | string | `nil` | image pull policy for the operator image | -| operator.image.repository | string | `"ghcr.io/mellanox/maintenance-operator"` | repository to use for the operator image | +| operator.image.repository | string | `"ghcr.io/mellanox"` | repository to use for the operator image | +| operator.image.name | string | `"maintenance-operator"` | image name to use for the operator image | | operator.image.tag | string | `nil` | image tag to use for the operator image | | operator.nodeSelector | object | `{}` | node selector for the operator | | operator.replicas | int | `1` | operator deployment number of repplicas | diff --git a/deployment/network-operator/charts/maintenance-operator-chart/templates/deployment.yaml b/deployment/network-operator/charts/maintenance-operator-chart/templates/deployment.yaml index 8409210b..033b8fc6 100644 --- a/deployment/network-operator/charts/maintenance-operator-chart/templates/deployment.yaml +++ b/deployment/network-operator/charts/maintenance-operator-chart/templates/deployment.yaml @@ -45,7 +45,7 @@ spec: fieldPath: metadata.namespace - name: ENABLE_WEBHOOKS value: {{ quote .Values.operator.admissionController.enable }} - image: {{ .Values.operator.image.repository }}:{{ .Values.operator.image.tag | default .Chart.AppVersion }} + image: {{ .Values.operator.image.repository }}/{{ .Values.operator.image.name }}:{{ .Values.operator.image.tag | default .Chart.AppVersion }} {{- if .Values.operator.image.imagePullPolicy }} imagePullPolicy: {{ .Values.operator.image.imagePullPolicy }} {{- end }} diff --git a/deployment/network-operator/charts/maintenance-operator-chart/values.yaml b/deployment/network-operator/charts/maintenance-operator-chart/values.yaml index c3b14fa3..8a0511b5 100644 --- a/deployment/network-operator/charts/maintenance-operator-chart/values.yaml +++ b/deployment/network-operator/charts/maintenance-operator-chart/values.yaml @@ -1,7 +1,9 @@ operator: image: # -- repository to use for the operator image - repository: ghcr.io/mellanox/maintenance-operator + repository: ghcr.io/mellanox + # -- image name to use for the operator image + name: maintenance-operator # -- image tag to use for the operator image tag: null # -- image pull policy for the operator image