From 057ab72ff0e5de0e23ef5f57502e8d45c5f8f2bb Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Thu, 1 Oct 2020 16:47:06 +0500 Subject: [PATCH] Refactor ix-chart to conform to helm best practices --- .../ix-chart/{v2009.0.1 => 2009.0.1}/.helmignore | 0 charts/ix-chart/{v2009.0.1 => 2009.0.1}/Chart.yaml | 0 charts/ix-chart/{v2009.0.1 => 2009.0.1}/README.md | 0 .../ix-chart/{v2009.0.1 => 2009.0.1}/app-readme.md | 0 .../{v2009.0.1 => 2009.0.1}/questions.yaml | 10 +++++----- .../{v2009.0.1 => 2009.0.1}/templates/NOTES.txt | 0 .../{v2009.0.1 => 2009.0.1}/templates/_helpers.tpl | 0 .../templates/deployment.yaml | 14 +++++++------- .../ix-chart/{v2009.0.1 => 2009.0.1}/values.yaml | 8 ++++---- 9 files changed, 16 insertions(+), 16 deletions(-) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/.helmignore (100%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/Chart.yaml (100%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/README.md (100%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/app-readme.md (100%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/questions.yaml (92%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/templates/NOTES.txt (100%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/templates/_helpers.tpl (100%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/templates/deployment.yaml (71%) rename charts/ix-chart/{v2009.0.1 => 2009.0.1}/values.yaml (62%) diff --git a/charts/ix-chart/v2009.0.1/.helmignore b/charts/ix-chart/2009.0.1/.helmignore similarity index 100% rename from charts/ix-chart/v2009.0.1/.helmignore rename to charts/ix-chart/2009.0.1/.helmignore diff --git a/charts/ix-chart/v2009.0.1/Chart.yaml b/charts/ix-chart/2009.0.1/Chart.yaml similarity index 100% rename from charts/ix-chart/v2009.0.1/Chart.yaml rename to charts/ix-chart/2009.0.1/Chart.yaml diff --git a/charts/ix-chart/v2009.0.1/README.md b/charts/ix-chart/2009.0.1/README.md similarity index 100% rename from charts/ix-chart/v2009.0.1/README.md rename to charts/ix-chart/2009.0.1/README.md diff --git a/charts/ix-chart/v2009.0.1/app-readme.md b/charts/ix-chart/2009.0.1/app-readme.md similarity index 100% rename from charts/ix-chart/v2009.0.1/app-readme.md rename to charts/ix-chart/2009.0.1/app-readme.md diff --git a/charts/ix-chart/v2009.0.1/questions.yaml b/charts/ix-chart/2009.0.1/questions.yaml similarity index 92% rename from charts/ix-chart/v2009.0.1/questions.yaml rename to charts/ix-chart/2009.0.1/questions.yaml index b88609652d5..6a5df8b6bc0 100644 --- a/charts/ix-chart/v2009.0.1/questions.yaml +++ b/charts/ix-chart/2009.0.1/questions.yaml @@ -20,7 +20,7 @@ schema: type: string default: "latest" - - variable: pull_policy + - variable: pullPolicy description: "Docker Image Pull Policy" label: "Image Pull Policy" group: "Container Images" @@ -33,7 +33,7 @@ - "Never" # Configurable CMD / Entrypoint / Environment Variables -- variable: container_command +- variable: containerCommand description: "Commands to execute inside container overriding image CMD default" label: "Container CMD" group: "Container Entrypoint" @@ -45,7 +45,7 @@ label: "Command" schema: type: string -- variable: container_args +- variable: containerArgs description: "Specify arguments for container command" label: "Container Args" group: "Container Entrypoint" @@ -57,14 +57,14 @@ label: "Arg" schema: type: string -- variable: container_environment_variables +- variable: containerEnvironmentVariables description: "Container Environment Variables" label: "Container Environment Variables" group: "Container Entrypoint" schema: type: list items: - - variable: environment_variable + - variable: environmentVariable description: "Container Environment Variable" label: "Container Environment Variable" schema: diff --git a/charts/ix-chart/v2009.0.1/templates/NOTES.txt b/charts/ix-chart/2009.0.1/templates/NOTES.txt similarity index 100% rename from charts/ix-chart/v2009.0.1/templates/NOTES.txt rename to charts/ix-chart/2009.0.1/templates/NOTES.txt diff --git a/charts/ix-chart/v2009.0.1/templates/_helpers.tpl b/charts/ix-chart/2009.0.1/templates/_helpers.tpl similarity index 100% rename from charts/ix-chart/v2009.0.1/templates/_helpers.tpl rename to charts/ix-chart/2009.0.1/templates/_helpers.tpl diff --git a/charts/ix-chart/v2009.0.1/templates/deployment.yaml b/charts/ix-chart/2009.0.1/templates/deployment.yaml similarity index 71% rename from charts/ix-chart/v2009.0.1/templates/deployment.yaml rename to charts/ix-chart/2009.0.1/templates/deployment.yaml index 3d4b0d86a2b..c231d2710a2 100644 --- a/charts/ix-chart/v2009.0.1/templates/deployment.yaml +++ b/charts/ix-chart/2009.0.1/templates/deployment.yaml @@ -18,22 +18,22 @@ spec: securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}" - imagePullPolicy: {{ .Values.image.pull_policy }} - {{- if .Values.container_command }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.containerCommand }} command: - {{- range .Values.container_command }} + {{- range .Values.containerCommand }} - {{ . | quote}} {{- end }} {{- end }} - {{- if .Values.container_args }} + {{- if .Values.containerArgs }} args: - {{- range .Values.container_args }} + {{- range .Values.containerArgs }} - {{ . | quote}} {{- end }} {{- end }} - {{- if .Values.container_environment_variables }} + {{- if .Values.containerEnvironmentVariables }} env: - {{- range .Values.container_environment_variables }} + {{- range .Values.containerEnvironmentVariables }} - name: {{ .name | quote }} value: {{ .value | quote }} {{- end }} diff --git a/charts/ix-chart/v2009.0.1/values.yaml b/charts/ix-chart/2009.0.1/values.yaml similarity index 62% rename from charts/ix-chart/v2009.0.1/values.yaml rename to charts/ix-chart/2009.0.1/values.yaml index c67c5ad8687..116b6240317 100644 --- a/charts/ix-chart/v2009.0.1/values.yaml +++ b/charts/ix-chart/2009.0.1/values.yaml @@ -2,11 +2,11 @@ image: repository: debian - pull_policy: IfNotPresent + pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: "testing" # Container CMD / entrypoint -container_command: [] -container_args: [] -container_environment_variables: [] +containerCommand: [] +containerArgs: [] +containerEnvironmentVariables: []