We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65fe00b commit bda0089Copy full SHA for bda0089
pkg/utils/util.go
@@ -385,6 +385,10 @@ func WriteJSONFile(obj interface{}, file string) error {
385
// GetPodRunTime Get Pod runtimeclass config
386
// Default as runc.
387
func GetPodRunTime(ctx context.Context, req *csi.NodePublishVolumeRequest, clientSet kubernetes.Interface) string {
388
+ if req.VolumeContext["csi.alibabacloud.com/rootfs-volume"] == "true" {
389
+ // For rootfs volume, always mount directly. Even it is used by runD, mount it like runC.
390
+ return RuncRunTimeTag
391
+ }
392
// if pod name namespace is empty, use default
393
runtimeVal := RuncRunTimeTag
394
pod, err := GetPodFromContextOrK8s(ctx, clientSet, req)
0 commit comments