From f8a9c3fbc0f33e0781c15580317c3a78454e912f Mon Sep 17 00:00:00 2001 From: Christophe Jauffret Date: Tue, 5 Dec 2023 18:27:20 +0100 Subject: [PATCH] pcsescret check + hypervisor attached option --- charts/nutanix-csi-storage/templates/ntnx-sc.yaml | 3 +++ charts/nutanix-csi-storage/templates/ntnx-secret.yaml | 5 +++++ charts/nutanix-csi-storage/values.yaml | 1 + 3 files changed, 9 insertions(+) diff --git a/charts/nutanix-csi-storage/templates/ntnx-sc.yaml b/charts/nutanix-csi-storage/templates/ntnx-sc.yaml index f847257..a580a78 100644 --- a/charts/nutanix-csi-storage/templates/ntnx-sc.yaml +++ b/charts/nutanix-csi-storage/templates/ntnx-sc.yaml @@ -24,6 +24,9 @@ parameters: csi.storage.k8s.io/fstype: {{ .Values.fsType }} isSegmentedIscsiNetwork: {{ quote .Values.networkSegmentation }} description: {{ quote (.Values.volumeClassDescription | default .Values.volumeClassName) }} +{{- if eq .Values.volumeClassHypervisorAttached "ENABLED" }} + hypervisorAttached: "ENABLED" +{{- end }} {{- if eq .Values.lvmVolume true }} isLVMVolume: "true" numLVMDisks: {{ quote .Values.lvmDisks }} diff --git a/charts/nutanix-csi-storage/templates/ntnx-secret.yaml b/charts/nutanix-csi-storage/templates/ntnx-secret.yaml index a1ad143..595a4a4 100644 --- a/charts/nutanix-csi-storage/templates/ntnx-secret.yaml +++ b/charts/nutanix-csi-storage/templates/ntnx-secret.yaml @@ -18,6 +18,11 @@ data: {{- end }} --- {{- if eq .Values.createPrismCentralSecret true }} + +{{- $pcUsername := .Values.pcUsername | required "pcUsername is required to create secret." -}} +{{- $pcPassword := .Values.pcPassword | required "pcPassword is required to create secret." -}} +{{- $prismCentralEndPoint := .Values.prismCentralEndPoint | required "prismCentralEndPoint is required to create secret." -}} + apiVersion: v1 kind: Secret metadata: diff --git a/charts/nutanix-csi-storage/values.yaml b/charts/nutanix-csi-storage/values.yaml index 8430d4b..6ce665d 100644 --- a/charts/nutanix-csi-storage/values.yaml +++ b/charts/nutanix-csi-storage/values.yaml @@ -41,6 +41,7 @@ imagePullPolicy: IfNotPresent volumeClass: true volumeClassName: "nutanix-volume" volumeClassRetention: "Delete" +volumeClassHypervisorAttached: "ENABLED" # volumeClassDescription: "" # volumeClassAnnotations: {} # volumeClassLabels: {}