diff --git a/assets/rancher-monitoring-crd/rancher-monitoring-crd-102.0.0+up40.1.2.tgz b/assets/rancher-monitoring-crd/rancher-monitoring-crd-102.0.0+up40.1.2.tgz index e6f6bb635..f6e3a3c54 100644 Binary files a/assets/rancher-monitoring-crd/rancher-monitoring-crd-102.0.0+up40.1.2.tgz and b/assets/rancher-monitoring-crd/rancher-monitoring-crd-102.0.0+up40.1.2.tgz differ diff --git a/charts/rancher-monitoring-crd/102.0.0+up40.1.2/files/crd-manifest.tgz b/charts/rancher-monitoring-crd/102.0.0+up40.1.2/files/crd-manifest.tgz index 378f3fcf6..8c1eaa5cb 100644 Binary files a/charts/rancher-monitoring-crd/102.0.0+up40.1.2/files/crd-manifest.tgz and b/charts/rancher-monitoring-crd/102.0.0+up40.1.2/files/crd-manifest.tgz differ diff --git a/charts/rancher-monitoring-crd/102.0.0+up40.1.2/templates/validate-psp-install.yaml b/charts/rancher-monitoring-crd/102.0.0+up40.1.2/templates/validate-psp-install.yaml new file mode 100644 index 000000000..a30c59d3b --- /dev/null +++ b/charts/rancher-monitoring-crd/102.0.0+up40.1.2/templates/validate-psp-install.yaml @@ -0,0 +1,7 @@ +#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}} +#{{- if .Values.global.cattle.psp.enabled }} +#{{- if not (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }} +#{{- fail "The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding." -}} +#{{- end }} +#{{- end }} +#{{- end }} diff --git a/index.yaml b/index.yaml index af188eaf1..55277f7c5 100755 --- a/index.yaml +++ b/index.yaml @@ -10501,9 +10501,9 @@ entries: catalog.cattle.io/namespace: cattle-monitoring-system catalog.cattle.io/release-name: rancher-monitoring-crd apiVersion: v1 - created: "2023-02-09T12:46:45.680571-08:00" + created: "2023-03-14T10:51:20.680223-07:00" description: Installs the CRDs for rancher-monitoring. - digest: 445cc9bb78900bc623b4664f44bd8d1cb29a8359b985ae41d5d9b619f874ed5b + digest: 5414b89526edc6729f1a50589c5f9e63947777c927f4f196cd860e72400d9e29 name: rancher-monitoring-crd type: application urls: