mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Mark optional fields as really optional.
This commit is contained in:
parent
59957af125
commit
70b5d5d761
@ -63,7 +63,7 @@ type CSIDriverSpec struct {
|
|||||||
// If value is not specified, default is false -- meaning attach will not be
|
// If value is not specified, default is false -- meaning attach will not be
|
||||||
// called.
|
// called.
|
||||||
// +optional
|
// +optional
|
||||||
AttachRequired *bool `json:"attachRequired"`
|
AttachRequired *bool `json:"attachRequired,omitempty"`
|
||||||
|
|
||||||
// If specified, podInfoRequiredOnMount indicates this CSI volume driver
|
// If specified, podInfoRequiredOnMount indicates this CSI volume driver
|
||||||
// requires additional pod information (like podName, podUID, etc.) during
|
// requires additional pod information (like podName, podUID, etc.) during
|
||||||
@ -77,7 +77,7 @@ type CSIDriverSpec struct {
|
|||||||
// "csi.storage.k8s.io/pod.namespace": pod.Namespace
|
// "csi.storage.k8s.io/pod.namespace": pod.Namespace
|
||||||
// "csi.storage.k8s.io/pod.uid": string(pod.UID)
|
// "csi.storage.k8s.io/pod.uid": string(pod.UID)
|
||||||
// +optional
|
// +optional
|
||||||
PodInfoOnMountVersion *string `json:"podInfoOnMountVersion"`
|
PodInfoOnMountVersion *string `json:"podInfoOnMountVersion,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
|
Loading…
Reference in New Issue
Block a user