Fix image schema
This commit is contained in:
parent
5be3018798
commit
ae90a73a52
|
@ -1,32 +1,39 @@
|
||||||
# Image related
|
# Image related
|
||||||
- variable: image.repository
|
- variable: image
|
||||||
description: "Docker image repository"
|
description: "Docker Image Details"
|
||||||
label: "Image repository"
|
|
||||||
group: "Container Images"
|
group: "Container Images"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: dict
|
||||||
required: true
|
required: true
|
||||||
- variable: image.tag
|
attrs:
|
||||||
description: "Tag to use for specified image"
|
- variable: image.repository
|
||||||
label: "Image Tag"
|
description: "Docker image repository"
|
||||||
group: "Container Images"
|
label: "Image repository"
|
||||||
schema:
|
group: "Container Images"
|
||||||
type: string
|
schema:
|
||||||
default: "latest"
|
type: string
|
||||||
- variable: image.pull_policy
|
required: true
|
||||||
description: "Docker Image Pull Policy"
|
- variable: image.tag
|
||||||
label: "Image Pull Policy"
|
description: "Tag to use for specified image"
|
||||||
group: "Container Images"
|
label: "Image Tag"
|
||||||
schema:
|
group: "Container Images"
|
||||||
type: string
|
schema:
|
||||||
default: "IfNotPresent"
|
type: string
|
||||||
enum:
|
default: "latest"
|
||||||
- "IfNotPresent"
|
- variable: image.pull_policy
|
||||||
- "Always"
|
description: "Docker Image Pull Policy"
|
||||||
- "Never"
|
label: "Image Pull Policy"
|
||||||
|
group: "Container Images"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "IfNotPresent"
|
||||||
|
enum:
|
||||||
|
- "IfNotPresent"
|
||||||
|
- "Always"
|
||||||
|
- "Never"
|
||||||
|
|
||||||
# Configurable CMD / Entrypoint / Environment Variables
|
# Configurable CMD / Entrypoint / Environment Variables
|
||||||
- variable: container.command
|
- variable: container_entrypoint
|
||||||
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"
|
||||||
|
|
|
@ -19,21 +19,21 @@ spec:
|
||||||
{{- 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.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- if .Values.container.command }}
|
{{- if .Values.container_entrypoint.command }}
|
||||||
command:
|
command:
|
||||||
{{- range .Values.container.command }}
|
{{- range .Values.container_entrypoint.command }}
|
||||||
- {{ . | quote}}
|
- {{ . | quote}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.container.args }}
|
{{- if .Values.container_entrypoint.args }}
|
||||||
args:
|
args:
|
||||||
{{- range .Values.container.args }}
|
{{- range .Values.container_entrypoint.args }}
|
||||||
- {{ . | quote}}
|
- {{ . | quote}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.container.environment_variables }}
|
{{- if .Values.container_entrypoint.environment_variables }}
|
||||||
env:
|
env:
|
||||||
{{- range .Values.container.environment_variables }}
|
{{- range .Values.container_entrypoint.environment_variables }}
|
||||||
- name: {{ .name | quote }}
|
- name: {{ .name | quote }}
|
||||||
value: {{ .value | quote }}
|
value: {{ .value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1,19 +1,13 @@
|
||||||
# Default values for ix-chart.
|
# Default values for ix-chart.
|
||||||
|
|
||||||
replicaCount: 1
|
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: debian
|
repository: debian
|
||||||
pullPolicy: 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"
|
||||||
|
|
||||||
imagePullSecrets: []
|
|
||||||
nameOverride: ""
|
|
||||||
fullnameOverride: ""
|
|
||||||
|
|
||||||
# Container CMD / entrypoint
|
# Container CMD / entrypoint
|
||||||
container:
|
container_entrypoint:
|
||||||
command: []
|
command: []
|
||||||
args: []
|
args: []
|
||||||
environment_variables: []
|
environment_variables: []
|
||||||
|
|
Loading…
Reference in New Issue