[rancher-alerting-drivers] Use global.cattle.psp.enabled field and bump major version

pull/2370/head
Arvind Iyengar 2023-01-27 12:17:38 -08:00
parent c9a4aaefd3
commit fb81b0ba41
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
4 changed files with 6 additions and 4 deletions

View File

@ -52,7 +52,7 @@ rules:
- apiGroups: [""]
resources: ["serviceaccounts"]
verbs: ["get", "patch"]
{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }}
{{- if .Values.global.cattle.psp.enabled }}
- apiGroups: ["policy"]
resources: ["podsecuritypolicies"]
verbs: ["use"]
@ -77,7 +77,7 @@ subjects:
name: {{ include "drivers.fullname" . }}-patch-sa
namespace: {{ .Release.Namespace }}
---
{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }}
{{- if .Values.global.cattle.psp.enabled }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:

View File

@ -4,6 +4,8 @@
global:
cattle:
psp:
enabled: false
# the registry where all images will be pulled from
systemDefaultRegistry: ""
kubectl:

View File

@ -1,2 +1,2 @@
url: local
version: 101.0.1
version: 102.0.0

View File

@ -23,7 +23,7 @@ rancher-aks-operator:
rancher-aks-operator-crd:
- 101.0.1+up1.1.0-rc2
rancher-alerting-drivers:
- 101.0.1
- 102.0.0
rancher-backup:
- 3.0.1-rc4
rancher-backup-crd: