From 298d60d05d7e2b38bcedee2bc94f21baa0729c19 Mon Sep 17 00:00:00 2001 From: janeczku Date: Mon, 10 Aug 2020 18:16:46 +0200 Subject: [PATCH] Change configuration variable for PSP Signed-off-by: janeczku --- chart/questions.yml | 4 ++-- chart/templates/psp.yaml | 2 +- chart/values.yaml | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) 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