Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e0f29ee43 | |||
| 5f0d40f05f | |||
| 410f2b6047 |
@@ -1,5 +1,6 @@
|
||||
{{- define "common.configmap.tpl" -}}
|
||||
{{- if .Values.vars }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{{- define "common.customFileConfigmap.tpl" -}}
|
||||
{{- range .Values.volumes }}
|
||||
{{- if .fileName }}
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "common.robustName" .fileName }}
|
||||
name: {{ template "common.robustName" (printf "%s-%s" $.Release.Name .name) }}
|
||||
namespace: {{ $.Release.Namespace }}
|
||||
data:
|
||||
{{ .fileName }}: |
|
||||
|
||||
@@ -10,7 +10,7 @@ volumes:
|
||||
name: {{ .existingConfigMap }}
|
||||
{{- else if .fileName }}
|
||||
configMap:
|
||||
name: {{ template "common.robustName" .fileName }}
|
||||
name: {{ template "common.robustName" (printf "%s-%s" $.Release.Name .name) }}
|
||||
{{- else if .hostPath }}
|
||||
hostPath:
|
||||
path: {{ .hostPath.path }}
|
||||
|
||||
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.60.0
|
||||
version: 0.61.0
|
||||
|
||||
dependencies:
|
||||
- name: common
|
||||
|
||||
Binary file not shown.
@@ -25,10 +25,12 @@ spec:
|
||||
{{- if .Values.vars }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
{{- end }}
|
||||
{{- if .Values.overrideCommand }}
|
||||
command:
|
||||
- {{ .Values.shell }}
|
||||
- -c
|
||||
- {{ .Values.command | quote }}
|
||||
{{- end }}
|
||||
{{- include "common.envFromRef.tpl" . | nindent 14 }}
|
||||
{{- include "common.volumeMountsRef.tpl" . | nindent 14 }}
|
||||
resources:
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{{- include "common.customFileConfigmap.tpl" . -}}
|
||||
@@ -5,6 +5,7 @@ image:
|
||||
schedule: "*/1 * * * *"
|
||||
command: |
|
||||
echo "I'm alive"
|
||||
overrideCommand: true
|
||||
shell: "/bin/sh"
|
||||
|
||||
nameOverride: ""
|
||||
|
||||
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.60.0
|
||||
version: 0.61.0
|
||||
|
||||
dependencies:
|
||||
- name: common
|
||||
|
||||
Binary file not shown.
@@ -169,7 +169,7 @@ tests:
|
||||
value:
|
||||
- name: volume-name
|
||||
configMap:
|
||||
name: myfile-conf
|
||||
name: release-name-volume-name
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].volumeMounts
|
||||
value:
|
||||
|
||||
@@ -14,5 +14,5 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.60.0
|
||||
version: 0.61.0
|
||||
|
||||
|
||||
Binary file not shown.
+165
-128
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user