Skip to content

Commit 787cec3

Browse files
authored
Merge pull request #533 from vardhaman22/add-validation-template
[main] added validate-install-crd template
2 parents e8d487c + 4d57d6b commit 787cec3

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed
Lines changed: 17 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/prometheus/client_golang v1.20.5
1212
github.com/rancher/kubernetes-provider-detector v0.1.5
1313
github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813
14-
github.com/rancher/security-scan v0.5.1
14+
github.com/rancher/security-scan v0.5.2
1515
github.com/rancher/wrangler/v3 v3.1.0
1616
github.com/robfig/cron v1.2.0
1717
github.com/sirupsen/logrus v1.9.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ github.com/rancher/kubernetes-provider-detector v0.1.5 h1:hWRAsWuJOemzGjz/XrbTlM
227227
github.com/rancher/kubernetes-provider-detector v0.1.5/go.mod h1:ypuJS7kP7rUiAn330xG46mj+Nhvym05GM8NqMVekpH0=
228228
github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813 h1:V/LY8pUHZG9Kc+xEDWDOryOnCU6/Q+Lsr9QQEQnshpU=
229229
github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813/go.mod h1:IxgTBO55lziYhTEETyVKiT8/B5Rg92qYiRmcIIYoPgI=
230-
github.com/rancher/security-scan v0.5.1 h1:oi4qsf4zQcDeonazBILMXDoN9Bj6TnzfTa/KzxL2Oc8=
231-
github.com/rancher/security-scan v0.5.1/go.mod h1:cW3xJebBE6i5ksCarGbHjRjmWpw9Uo1WVlIrtehyoUY=
230+
github.com/rancher/security-scan v0.5.2 h1:ILUnwG8QtNsCAYV0ryQ0xU2hzhc4VM15LwAlJaEAEig=
231+
github.com/rancher/security-scan v0.5.2/go.mod h1:cW3xJebBE6i5ksCarGbHjRjmWpw9Uo1WVlIrtehyoUY=
232232
github.com/rancher/wrangler/v3 v3.1.0 h1:8ETBnQOEcZaR6WBmUSysWW7WnERBOiNTMJr4Dj3UG/s=
233233
github.com/rancher/wrangler/v3 v3.1.0/go.mod h1:gUPHS1ANs2NyByfeERHwkGiQ1rlIa8BpTJZtNSgMlZw=
234234
github.com/robfig/cron v1.2.0 h1:ZjScXvvxeQ63Dbyxy76Fj3AT3Ut0aKsyd2/tl3DTMuQ=

0 commit comments

Comments
 (0)