From dde446cc4003e9722058f24e3268ea6c87766db7 Mon Sep 17 00:00:00 2001 From: okozachenko Date: Mon, 6 Apr 2020 06:20:41 -0700 Subject: [PATCH] Control the CRDs install Change-Id: Ic411a3b6db9d42a2ad1a53af5a6aeb79bb66dd36 --- chart/templates/crds.yaml | 11 ++++++++--- chart/values.yaml | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/chart/templates/crds.yaml b/chart/templates/crds.yaml index 942e7541..102c4262 100644 --- a/chart/templates/crds.yaml +++ b/chart/templates/crds.yaml @@ -1,4 +1,9 @@ -{{- range $path, $bytes := .Files.Glob "crds/*.yaml" }} +{{- range $path, $bytes := .Files.Glob "crds/infrastructure.vexxhost.cloud*.yaml" }} {{ $.Files.Get $path }} ---- -{{- end }} \ No newline at end of file +{{- end }} + +{{- if .Values.crd.monitoring }} + {{- range $path, $bytes := .Files.Glob "crds/monitoring.coreos.com*.yaml" }} + {{ $.Files.Get $path }} + {{- end }} +{{- end -}} \ No newline at end of file diff --git a/chart/values.yaml b/chart/values.yaml index e69de29b..4f1da7ce 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -0,0 +1,2 @@ +crd: + monitoring: true