Refactor ix-chart to conform to helm best practices
This commit is contained in:
parent
caccef7af1
commit
057ab72ff0
|
@ -20,7 +20,7 @@
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: "latest"
|
default: "latest"
|
||||||
- variable: pull_policy
|
- variable: pullPolicy
|
||||||
description: "Docker Image Pull Policy"
|
description: "Docker Image Pull Policy"
|
||||||
label: "Image Pull Policy"
|
label: "Image Pull Policy"
|
||||||
group: "Container Images"
|
group: "Container Images"
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
- "Never"
|
- "Never"
|
||||||
|
|
||||||
# Configurable CMD / Entrypoint / Environment Variables
|
# Configurable CMD / Entrypoint / Environment Variables
|
||||||
- variable: container_command
|
- variable: containerCommand
|
||||||
description: "Commands to execute inside container overriding image CMD default"
|
description: "Commands to execute inside container overriding image CMD default"
|
||||||
label: "Container CMD"
|
label: "Container CMD"
|
||||||
group: "Container Entrypoint"
|
group: "Container Entrypoint"
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
label: "Command"
|
label: "Command"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- variable: container_args
|
- variable: containerArgs
|
||||||
description: "Specify arguments for container command"
|
description: "Specify arguments for container command"
|
||||||
label: "Container Args"
|
label: "Container Args"
|
||||||
group: "Container Entrypoint"
|
group: "Container Entrypoint"
|
||||||
|
@ -57,14 +57,14 @@
|
||||||
label: "Arg"
|
label: "Arg"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- variable: container_environment_variables
|
- variable: containerEnvironmentVariables
|
||||||
description: "Container Environment Variables"
|
description: "Container Environment Variables"
|
||||||
label: "Container Environment Variables"
|
label: "Container Environment Variables"
|
||||||
group: "Container Entrypoint"
|
group: "Container Entrypoint"
|
||||||
schema:
|
schema:
|
||||||
type: list
|
type: list
|
||||||
items:
|
items:
|
||||||
- variable: environment_variable
|
- variable: environmentVariable
|
||||||
description: "Container Environment Variable"
|
description: "Container Environment Variable"
|
||||||
label: "Container Environment Variable"
|
label: "Container Environment Variable"
|
||||||
schema:
|
schema:
|
|
@ -18,22 +18,22 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
|
||||||
imagePullPolicy: {{ .Values.image.pull_policy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- if .Values.container_command }}
|
{{- if .Values.containerCommand }}
|
||||||
command:
|
command:
|
||||||
{{- range .Values.container_command }}
|
{{- range .Values.containerCommand }}
|
||||||
- {{ . | quote}}
|
- {{ . | quote}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.container_args }}
|
{{- if .Values.containerArgs }}
|
||||||
args:
|
args:
|
||||||
{{- range .Values.container_args }}
|
{{- range .Values.containerArgs }}
|
||||||
- {{ . | quote}}
|
- {{ . | quote}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.container_environment_variables }}
|
{{- if .Values.containerEnvironmentVariables }}
|
||||||
env:
|
env:
|
||||||
{{- range .Values.container_environment_variables }}
|
{{- range .Values.containerEnvironmentVariables }}
|
||||||
- name: {{ .name | quote }}
|
- name: {{ .name | quote }}
|
||||||
value: {{ .value | quote }}
|
value: {{ .value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: debian
|
repository: debian
|
||||||
pull_policy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "testing"
|
tag: "testing"
|
||||||
|
|
||||||
# Container CMD / entrypoint
|
# Container CMD / entrypoint
|
||||||
container_command: []
|
containerCommand: []
|
||||||
container_args: []
|
containerArgs: []
|
||||||
container_environment_variables: []
|
containerEnvironmentVariables: []
|
Loading…
Reference in New Issue