Add feature for pod information in NodePublish
This commit is contained in:

committed by
Hemant Kumar

parent
e26809a464
commit
db94508ae7
@@ -386,10 +386,16 @@ const (
|
|||||||
//
|
//
|
||||||
// Allow TTL controller to clean up Pods and Jobs after they finish.
|
// Allow TTL controller to clean up Pods and Jobs after they finish.
|
||||||
TTLAfterFinished utilfeature.Feature = "TTLAfterFinished"
|
TTLAfterFinished utilfeature.Feature = "TTLAfterFinished"
|
||||||
|
|
||||||
// owner: @jsafrane
|
// owner: @jsafrane
|
||||||
// Kubernetes skips attaching CSI volumes that don't require attachment.
|
// Kubernetes skips attaching CSI volumes that don't require attachment.
|
||||||
//
|
//
|
||||||
CSISkipAttach utilfeature.Feature = "CSISkipAttach"
|
CSISkipAttach utilfeature.Feature = "CSISkipAttach"
|
||||||
|
|
||||||
|
// owner: @jsafrane
|
||||||
|
//
|
||||||
|
// Kubelet sends pod information in NodePublish CSI call when a CSI driver wants so.
|
||||||
|
CSIPodInfo utilfeature.Feature = "CSIPodInfo"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -456,6 +462,7 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
|
|||||||
ProcMountType: {Default: false, PreRelease: utilfeature.Alpha},
|
ProcMountType: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
TTLAfterFinished: {Default: false, PreRelease: utilfeature.Alpha},
|
TTLAfterFinished: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
CSISkipAttach: {Default: false, PreRelease: utilfeature.Alpha},
|
CSISkipAttach: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
|
CSIPodInfo: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
|
|
||||||
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
// inherited features from generic apiserver, relisted here to get a conflict if it is changed
|
||||||
// unintentionally on either side:
|
// unintentionally on either side:
|
||||||
|
Reference in New Issue
Block a user