Split snapshot controller using beta APIs
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
apiVersion: snapshot.storage.k8s.io/v1alpha1
|
||||
apiVersion: snapshot.storage.k8s.io/v1beta1
|
||||
kind: VolumeSnapshot
|
||||
metadata:
|
||||
name: new-snapshot-demo
|
||||
spec:
|
||||
snapshotClassName: csi-hostpath-snapclass
|
||||
volumeSnapshotClassName: csi-hostpath-snapclass
|
||||
source:
|
||||
name: hpvc
|
||||
kind: PersistentVolumeClaim
|
||||
persistentVolumeClaimName: hpvc
|
||||
|
@@ -1,5 +1,6 @@
|
||||
apiVersion: snapshot.storage.k8s.io/v1alpha1
|
||||
apiVersion: snapshot.storage.k8s.io/v1beta1
|
||||
kind: VolumeSnapshotClass
|
||||
metadata:
|
||||
name: csi-hostpath-snapclass
|
||||
snapshotter: csi-hostpath
|
||||
driver: hostpath.csi.k8s.io #csi-hostpath
|
||||
deletionPolicy: Delete
|
||||
|
@@ -2,6 +2,6 @@ apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: csi-hostpath-sc
|
||||
provisioner: csi-hostpath
|
||||
provisioner: hostpath.csi.k8s.io #csi-hostpath
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
|
Reference in New Issue
Block a user