Skip to content

Commit

Permalink
pcsescret check + hypervisor attached option
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxtof committed Dec 5, 2023
1 parent bfeebd7 commit f8a9c3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/nutanix-csi-storage/templates/ntnx-sc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/nutanix-csi-storage/templates/ntnx-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions charts/nutanix-csi-storage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ imagePullPolicy: IfNotPresent
volumeClass: true
volumeClassName: "nutanix-volume"
volumeClassRetention: "Delete"
volumeClassHypervisorAttached: "ENABLED"
# volumeClassDescription: ""
# volumeClassAnnotations: {}
# volumeClassLabels: {}
Expand Down

0 comments on commit f8a9c3f

Please sign in to comment.