make charts

pull/2274/head
Rayan Das 2022-12-16 16:34:11 +05:30
parent 5d1f34e8dd
commit 566897c1fb
3 changed files with 6 additions and 2 deletions

View File

@ -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 }}

View File

@ -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: