From b94cc2f4518d49c15dab56aa2d9565f74fd2c051 Mon Sep 17 00:00:00 2001 From: visla-xu Date: Wed, 10 Jul 2024 18:35:31 -0700 Subject: [PATCH 1/5] configure the override-configs container to use variables instead of hard code value --- charts/goinception/templates/deployment.yaml | 3 ++- charts/goinception/values.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/goinception/templates/deployment.yaml b/charts/goinception/templates/deployment.yaml index 600b12c..315f8f6 100644 --- a/charts/goinception/templates/deployment.yaml +++ b/charts/goinception/templates/deployment.yaml @@ -28,7 +28,8 @@ spec: spec: initContainers: - name: override-configs - image: busybox:1.28 + image: "{{ .Values.initContainers.image.repository }}:{{ .Values.initContainers.image.tag }}" + imagePullPolicy: {{ .Values.initContainers.image.pullPolicy }} {{- with .Values.initEnv }} env: {{- toYaml . | nindent 12 }} diff --git a/charts/goinception/values.yaml b/charts/goinception/values.yaml index d759f36..3c97262 100644 --- a/charts/goinception/values.yaml +++ b/charts/goinception/values.yaml @@ -9,6 +9,12 @@ image: tag: latest pullPolicy: IfNotPresent +initContainers: + image: + repository: busybox + tag: 1.28 + pullPolicy: IfNotPresent + nameOverride: "" fullnameOverride: "" From 9e0b943ef55f793258b40771bc2410b0086f198e Mon Sep 17 00:00:00 2001 From: visla-xu Date: Wed, 10 Jul 2024 18:37:57 -0700 Subject: [PATCH 2/5] configure the override-configs container to use variables instead of hard code value --- charts/goinception/templates/deployment.yaml | 4 ++-- charts/goinception/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/goinception/templates/deployment.yaml b/charts/goinception/templates/deployment.yaml index 315f8f6..002c084 100644 --- a/charts/goinception/templates/deployment.yaml +++ b/charts/goinception/templates/deployment.yaml @@ -28,8 +28,8 @@ spec: spec: initContainers: - name: override-configs - image: "{{ .Values.initContainers.image.repository }}:{{ .Values.initContainers.image.tag }}" - imagePullPolicy: {{ .Values.initContainers.image.pullPolicy }} + image: "{{ .Values.override-configs.image.repository }}:{{ .Values.override-configs.image.tag }}" + imagePullPolicy: {{ .Values.override-configs.image.pullPolicy }} {{- with .Values.initEnv }} env: {{- toYaml . | nindent 12 }} diff --git a/charts/goinception/values.yaml b/charts/goinception/values.yaml index 3c97262..fad0330 100644 --- a/charts/goinception/values.yaml +++ b/charts/goinception/values.yaml @@ -9,7 +9,7 @@ image: tag: latest pullPolicy: IfNotPresent -initContainers: +override-configs: image: repository: busybox tag: 1.28 From 01e3fbb45dc5b799235b50eefce890bc9d4e4105 Mon Sep 17 00:00:00 2001 From: visla-xu Date: Thu, 11 Jul 2024 10:36:47 -0700 Subject: [PATCH 3/5] fix: update camel case in code change --- charts/goinception/templates/deployment.yaml | 4 ++-- charts/goinception/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/goinception/templates/deployment.yaml b/charts/goinception/templates/deployment.yaml index 002c084..7f3a7eb 100644 --- a/charts/goinception/templates/deployment.yaml +++ b/charts/goinception/templates/deployment.yaml @@ -28,8 +28,8 @@ spec: spec: initContainers: - name: override-configs - image: "{{ .Values.override-configs.image.repository }}:{{ .Values.override-configs.image.tag }}" - imagePullPolicy: {{ .Values.override-configs.image.pullPolicy }} + image: "{{ .Values.overrideConfigs.image.repository }}:{{ .Values.overrideConfigs.image.tag }}" + imagePullPolicy: {{ .Values.overrideConfigs.image.pullPolicy }} {{- with .Values.initEnv }} env: {{- toYaml . | nindent 12 }} diff --git a/charts/goinception/values.yaml b/charts/goinception/values.yaml index fad0330..f9c3a29 100644 --- a/charts/goinception/values.yaml +++ b/charts/goinception/values.yaml @@ -9,7 +9,7 @@ image: tag: latest pullPolicy: IfNotPresent -override-configs: +overrideConfigs: image: repository: busybox tag: 1.28 From 096b42fa4d9eca470b27a4bac32415234691ce5d Mon Sep 17 00:00:00 2001 From: visla-xu Date: Thu, 11 Jul 2024 10:37:16 -0700 Subject: [PATCH 4/5] fix: set version to 0.3.1 --- charts/goinception/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/goinception/Chart.yaml b/charts/goinception/Chart.yaml index 75748ef..4419ac3 100644 --- a/charts/goinception/Chart.yaml +++ b/charts/goinception/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "1.0" description: 一个集审核、执行、备份及生成回滚语句于一身的MySQL运维工具 name: goinception -version: 0.3.0 +version: 0.3.1 home: https://github.com/hanchuanchuan/goInception maintainers: - name: LeoQuote From 191bb9f0510495981241ebe0990dedc4e6a9784e Mon Sep 17 00:00:00 2001 From: Leo Q Date: Fri, 12 Jul 2024 11:36:52 +0800 Subject: [PATCH 5/5] fix tailing space --- charts/goinception/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/goinception/Chart.yaml b/charts/goinception/Chart.yaml index 4419ac3..1c59b5e 100644 --- a/charts/goinception/Chart.yaml +++ b/charts/goinception/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 appVersion: "1.0" -description: 一个集审核、执行、备份及生成回滚语句于一身的MySQL运维工具 +description: 一个集审核、执行、备份及生成回滚语句于一身的MySQL运维工具 name: goinception version: 0.3.1 home: https://github.com/hanchuanchuan/goInception