---
templates:
crd-management-hook:
hooks:
- events: ["preapply"]
showlogs: true
command: "sh"
args:
- -c
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }}| kubectl apply -f -"
- events: ["prepare"]
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl diff -f - || true"
- events: ["postuninstall"]
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl delete -f -"
# ----------------------------
# -- Releases
metrics-server: &metrics-server
name: metrics-server
chart: metrics-server/metrics-server
version: 3.8.3
values:
- common/values.{{ .Release.Name }}.yaml
cert-manager: &cert-manager
name: cert-manager
chart: jetstack/cert-manager
version: 1.10.1
inherit:
- template: crd-management-hook
istio-base: &istio-base
name: istio-base
chart: istio/base
version: 1.16.1
openvpn: &openvpn
name: openvpn
chart: allanger-charts/openvpn
version: 1.0.1
- "{{ .Environment.Name }}/values/values.{{ .Release.Name }}.yaml"