From db518c065262734246be1a4cc0006a445dee8e47 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 18 Aug 2025 11:49:26 +0800 Subject: [PATCH] refactor: restructure image configuration for secret operator in Helm values - Moved image configuration under a new `secretOperator` key in both `values.prod.yaml` and `values.yaml`. - Updated deployment template to reference the new image configuration structure. Signed-off-by: zhenyus --- .../secret-operator/templates/deployment.yaml | 4 ++-- .../helm-pkg/secret-operator/values.prod.yaml | 11 +++++++---- .../helm-pkg/secret-operator/values.yaml | 11 +++++++---- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/freeleaps-secret-operator/helm-pkg/secret-operator/templates/deployment.yaml b/freeleaps-secret-operator/helm-pkg/secret-operator/templates/deployment.yaml index ba1b6a9d..042976d2 100644 --- a/freeleaps-secret-operator/helm-pkg/secret-operator/templates/deployment.yaml +++ b/freeleaps-secret-operator/helm-pkg/secret-operator/templates/deployment.yaml @@ -26,8 +26,8 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} + image: "{{ .Values.secretOperator.image.repository }}:{{ .Values.secretOperator.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.secretOperator.image.pullPolicy }} ports: - name: api containerPort: {{ .Values.operator.apiServerPort }} diff --git a/freeleaps-secret-operator/helm-pkg/secret-operator/values.prod.yaml b/freeleaps-secret-operator/helm-pkg/secret-operator/values.prod.yaml index 5b662014..b75b4399 100644 --- a/freeleaps-secret-operator/helm-pkg/secret-operator/values.prod.yaml +++ b/freeleaps-secret-operator/helm-pkg/secret-operator/values.prod.yaml @@ -1,10 +1,13 @@ # Default values for freeleaps-secret-operator replicaCount: 1 -image: - repository: freeleaps/secret-operator - pullPolicy: IfNotPresent - tag: "latest" +secretOperator: + image: + registry: docker.io + repository: freeleaps/secret-operator + pullPolicy: IfNotPresent + tag: "latest" + name: "secret-operator" imagePullSecrets: [] nameOverride: "" diff --git a/freeleaps-secret-operator/helm-pkg/secret-operator/values.yaml b/freeleaps-secret-operator/helm-pkg/secret-operator/values.yaml index 26db820b..2a9c4498 100644 --- a/freeleaps-secret-operator/helm-pkg/secret-operator/values.yaml +++ b/freeleaps-secret-operator/helm-pkg/secret-operator/values.yaml @@ -1,10 +1,13 @@ # Default values for freeleaps-secret-operator replicaCount: 1 -image: - repository: freeleaps/secret-operator - pullPolicy: IfNotPresent - tag: "latest" +secretOperator: + image: + registry: docker.io + repository: freeleaps/secret-operator + pullPolicy: IfNotPresent + tag: "latest" + name: "secret-operator" imagePullSecrets: [] nameOverride: ""