Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cherry pick of #69331: Mark optional fields as really optional. #69393

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions staging/src/k8s.io/csi-api/pkg/apis/csi/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down