Refactor ix-chart to conform to helm best practices
This commit is contained in:
parent
caccef7af1
commit
057ab72ff0
|
@ -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:
|
|
@ -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 }}
|
|
@ -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: []
|
Loading…
Reference in New Issue