Merge pull request #69331 from jsafrane/fix-csidriver-types

Mark optional CSIDriver fields as really optional.
pull/58/head
k8s-ci-robot 2018-10-03 11:52:30 -07:00 committed by GitHub
commit 2e0e1681a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ type CSIDriverSpec struct {
// If value is not specified, default is false -- meaning attach will not be
// called.
// +optional
AttachRequired *bool `json:"attachRequired"`
AttachRequired *bool `json:"attachRequired,omitempty"`
// If specified, podInfoRequiredOnMount indicates this CSI volume driver
// 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.uid": string(pod.UID)
// +optional
PodInfoOnMountVersion *string `json:"podInfoOnMountVersion"`
PodInfoOnMountVersion *string `json:"podInfoOnMountVersion,omitempty"`
}
// +genclient