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
Flip SELinuxMountReadWriteOncePod to Beta #116425
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -96,6 +96,10 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { | |||||
storage.VolumeLifecyclePersistent, | ||||||
} | ||||||
} | ||||||
if obj.Spec.SELinuxMount == nil { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
kubernetes/pkg/apis/core/types.go Line 3141 in a9008b5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added to v1 and internal types.go There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and v1beta1 |
||||||
obj.Spec.SELinuxMount = new(bool) | ||||||
*(obj.Spec.SELinuxMount) = false | ||||||
} | ||||||
}, | ||||||
} | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we missed this during the api review for alpha, but do we want validation on the new field similar to other boolean fields?
kubernetes/pkg/apis/storage/validation/validation.go
Line 433 in de9ce03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some validation + unit tests in a new commit, PTAL.