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

View File

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

View File

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

View File

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