Skip to content

Commit c9f5bbf

Browse files
authored
Merge pull request #532 from vardhaman22/v1.3/add-validation-templates
[release/v1.3] added validate-install-crd template
2 parents f96d28b + 43c28ea commit c9f5bbf

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -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+
# {{- end -}}
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+
# {{- end -}}
16+
# {{- end -}}
17+
#{{- end -}}

chart/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
image:
66
cisoperator:
77
repository: rancher/cis-operator
8-
tag: v1.3.2
8+
tag: v1.3.3
99
securityScan:
1010
repository: rancher/security-scan
1111
tag: v0.5.2

0 commit comments

Comments
 (0)