Skip to content

Commit

Permalink
change the "fstype" sc parameter to "csi.storage.k8s.io/fstype"
Browse files Browse the repository at this point in the history
"fstype" storage class parameter is deprecated
  • Loading branch information
Praveenrajmani committed Dec 12, 2023
1 parent bc00b70 commit 72be19f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/tools/create-storage-class.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ metadata:
directpv.min.io/version: v1beta1
name: ${NAME}
parameters:
fstype: xfs
csi.storage.k8s.io/fstype: xfs
$(printf ' %s\n' "${DRIVE_LABELS[@]}")
provisioner: directpv-min-io
reclaimPolicy: Delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
directpv.min.io/version: v1beta1
name: directpv-min-io
parameters:
fstype: xfs
csi.storage.k8s.io/fstype: xfs
provisioner: directpv-min-io
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
Expand Down
4 changes: 2 additions & 2 deletions pkg/installer/storageclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func doCreateStorageClass(ctx context.Context, args *Args, version string, legac
allowTopologiesWithName,
},
ReclaimPolicy: &retainPolicy,
Parameters: map[string]string{"fstype": "xfs"},
Parameters: map[string]string{"csi.storage.k8s.io/fstype": "xfs"},
}

if !args.DryRun && !args.Declarative {
Expand Down Expand Up @@ -144,7 +144,7 @@ func doCreateStorageClass(ctx context.Context, args *Args, version string, legac
allowTopologiesWithName,
},
ReclaimPolicy: &retainPolicy,
Parameters: map[string]string{"fstype": "xfs"},
Parameters: map[string]string{"csi.storage.k8s.io/fstype": "xfs"},
}

if !args.DryRun && !args.Declarative {
Expand Down

0 comments on commit 72be19f

Please # to comment.