Change configuration variable for PSP

Signed-off-by: janeczku <jan@rancher.com>
This commit is contained in:
janeczku 2020-08-10 18:16:46 +02:00 committed by Sheng Yang
parent f887ad1fb4
commit 298d60d05d
3 changed files with 5 additions and 6 deletions

View File

@ -338,9 +338,9 @@ WARNING: DO NOT CHANGE THIS SETTING WITH ATTACHED VOLUMES.'
max: 32767
show_if: "service.ui.type=NodePort||service.ui.type=LoadBalancer"
label: UI Service NodePort number
- variable: podSecurityPolicy.enabled
- variable: enablePSP
default: "true"
description: "Configure a custom pod security policy for the Longhorn namespace."
description: "Setup a pod security policy for Longhorn workloads."
label: Pod Security Policy
type: boolean
group: "Other Settings"

View File

@ -1,4 +1,4 @@
{{- if .Values.podSecurityPolicy.enabled }}
{{- if .Values.enablePSP }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:

View File

@ -119,6 +119,5 @@ ingress:
# key:
# certificate:
# Setup pod security policy in the Longhorn namespace to allow privileged pods
podSecurityPolicy:
enabled: true
# Configure a pod security policy in the Longhorn namespace to allow privileged pods
enablePSP: true