---
# This is a sample manifest for utilizing the topology feature
# PVCs created using this storage class will be scheduled
# only on the nodes with ISCSI access to the PowerMax

# Change all instances to <SYMID> to the Symmetrix ID of the PowerMax array
# In case you installed the driver with a custom name, then replace
# all instances of "csi-powermax.dellemc.com" with the custom provisioner name

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: powermax-iscsi
parameters:
  # Name of SRP on PowerMax array that should be used for provisioning
  # Optional: false
  # Examples: "DEFAULT_SRP" , "SRP_1"
  SRP: <SRP Name>
  # Serial ID of the array that is used for provisioning
  # Optional: false
  # Example: "000000000001"
  SYMID: <SYMID>
  # Name of Service Level on PowerMax array that should be used for provisioning
  # Optional: true, Default value: Optimized
  # Examples: "Diamond" , "Bronze"
  ServiceLevel: <Service Level>
# If using custom driver name, change the following to point to the custom name
# Optional: true, Default value: csi-powermax.dellemc.com
# Examples: "csi-driver-powermax", "csi-powermax.dellemc.com"
provisioner: csi-powermax.dellemc.com
# Configure what happens to a Persistent Volume when the PVC
# it is bound to is to be deleted
# Allowed values:
#   Delete: the underlying persistent volume will be deleted along with the PVC.
#   Retain: the underlying persistent volume remain.
# Optional: true, Default value: None
reclaimPolicy: Delete
# volumeBindingMode- controls when volume binding
# and dynamic provisioning should occur.
# Allowed values:
#   Immediate- indicates that volume binding and dynamic provisioning
#              occurs once the PersistentVolumeClaim is created
#   WaitForFirstConsumer- will delay the binding and provisioning of a PV
#              until a Pod using the PersistentVolumeClaim is created
# Optional: true, Default value: None
volumeBindingMode: WaitForFirstConsumer
# Attribute to allow volume expansion
# Allowed values:
#   "true"  - Volume can be resized
#   "false" - Volume cannot be resized
# Optional: true, Default value: "true"
allowVolumeExpansion: true
# Restrict provisioning to specific topologies
# Allowed values: map of key-value pairs
# Optional: true, Default value: None
allowedTopologies:
  - matchLabelExpressions:
      - key: csi-powermax.dellemc.com/<SYMID>
        values:
          - csi-powermax.dellemc.com
      - key: csi-powermax.dellemc.com/<SYMID>.iscsi
        values:
          - csi-powermax.dellemc.com
