diff --git a/assets/rancher-gatekeeper-crd/rancher-gatekeeper-crd-101.1.0+up3.10.0.tgz b/assets/rancher-gatekeeper-crd/rancher-gatekeeper-crd-101.1.0+up3.10.0.tgz index 5bb457450..2bfab5fbd 100644 Binary files a/assets/rancher-gatekeeper-crd/rancher-gatekeeper-crd-101.1.0+up3.10.0.tgz and b/assets/rancher-gatekeeper-crd/rancher-gatekeeper-crd-101.1.0+up3.10.0.tgz differ diff --git a/charts/rancher-gatekeeper-crd/101.1.0+up3.10.0/templates/rbac.yaml b/charts/rancher-gatekeeper-crd/101.1.0+up3.10.0/templates/rbac.yaml index bdda1ddad..f8c3644fc 100644 --- a/charts/rancher-gatekeeper-crd/101.1.0+up3.10.0/templates/rbac.yaml +++ b/charts/rancher-gatekeeper-crd/101.1.0+up3.10.0/templates/rbac.yaml @@ -10,11 +10,13 @@ rules: resources: - customresourcedefinitions verbs: ['create', 'get', 'patch', 'delete'] +{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }} - apiGroups: ['policy'] resources: ['podsecuritypolicies'] verbs: ['use'] resourceNames: - {{ .Chart.Name }}-manager +{{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -39,6 +41,7 @@ metadata: labels: app: {{ .Chart.Name }}-manager --- +{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: @@ -70,3 +73,4 @@ spec: volumes: - 'configMap' - 'secret' +{{- end }} diff --git a/index.yaml b/index.yaml index 4058dc8b2..21f119c92 100755 --- a/index.yaml +++ b/index.yaml @@ -5801,9 +5801,9 @@ entries: catalog.cattle.io/namespace: cattle-gatekeeper-system catalog.cattle.io/release-name: rancher-gatekeeper-crd apiVersion: v1 - created: "2022-11-18T11:11:50.296121088+05:30" + created: "2022-12-16T16:33:58.060712687+05:30" description: Installs the CRDs for rancher-gatekeeper. - digest: 9b5f2ff7bbe792e1bcd138f72ddacafe270228f6a3e8da1f0fcaa6f87f7abb5f + digest: 1a185e1c7f3cac139729ff46a2511126f5cd8ddd92729fb47332e4a9dfaea3a0 name: rancher-gatekeeper-crd type: application urls: