We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88d47f commit 68e71e4Copy full SHA for 68e71e4
chart/templates/validate-install-crd.yaml
@@ -0,0 +1,17 @@
1
+#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
2
+# {{- $found := dict -}}
3
+# {{- set $found "cis.cattle.io/v1/ClusterScan" false -}}
4
+# {{- set $found "cis.cattle.io/v1/ClusterScanBenchmark" false -}}
5
+# {{- set $found "cis.cattle.io/v1/ClusterScanProfile" false -}}
6
+# {{- set $found "cis.cattle.io/v1/ClusterScanReport" false -}}
7
+# {{- range .Capabilities.APIVersions -}}
8
+# {{- if hasKey $found (toString .) -}}
9
+# {{- set $found (toString .) true -}}
10
+# {{- end -}}
11
12
+# {{- range $_, $exists := $found -}}
13
+# {{- if (eq $exists false) -}}
14
+# {{- required "Required CRDs are missing. Please install the corresponding CRD chart before installing this chart." "" -}}
15
16
17
+#{{- end -}}
0 commit comments