diff --git a/chart/questions.yml b/chart/questions.yml index ec8a685..698ddaa 100644 --- a/chart/questions.yml +++ b/chart/questions.yml @@ -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" \ No newline at end of file diff --git a/chart/templates/psp.yaml b/chart/templates/psp.yaml index 7bd0a56..66479b4 100644 --- a/chart/templates/psp.yaml +++ b/chart/templates/psp.yaml @@ -1,4 +1,4 @@ -{{- if .Values.podSecurityPolicy.enabled }} +{{- if .Values.enablePSP }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: diff --git a/chart/values.yaml b/chart/values.yaml index 3ac9446..a1cec34 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -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