rancher-charts/charts/rancher-wins-upgrader/100.0.0+up0.0.1/templates/configmap.yaml

18 lines
494 B
YAML

{{ include "winsUpgrader.validatePathPrefix" . }}
{{- range .Values.winsConfigs }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "winsUpgrader.name" $ }}-{{ .name }}
namespace: {{ template "winsUpgrader.namespace" $ }}
labels: {{ include "winsUpgrader.labels" $ | nindent 4 }}
data:
config: |-
{{ tpl .config $ | indent 4 }}
upgrade.ps1: |-
{{ $.Files.Get "scripts/upgrade.ps1" | indent 4 }}
noop.ps1: |-
{{ $.Files.Get "scripts/noop.ps1" | indent 4 }}
---
{{- end }}