Skip to content

Commit

Permalink
[cinder-csi-plugin] Add comment about deprecation (#2361)
Browse files Browse the repository at this point in the history
CSI inline ephemeral volumes are deprecated for the *Cinder CSI driver*,
not k8s as a whole. Clarify this, linking back to the original issue.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
  • Loading branch information
stephenfin authored Sep 8, 2023
1 parent b155baf commit df6131e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/csi/cinder/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis

ephemeralVolume := req.GetVolumeContext()["csi.storage.k8s.io/ephemeral"] == "true"
if ephemeralVolume {
// See https://github.com/kubernetes/cloud-provider-openstack/issues/1493
klog.Warningf("CSI inline ephemeral volumes support is deprecated in 1.24 release.")
return nodePublishEphemeral(req, ns)
}
Expand Down

0 comments on commit df6131e

Please sign in to comment.