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
kubeadm: Writable to ReadOnly in HostPathMount #70495
kubeadm: Writable to ReadOnly in HostPathMount #70495
Conversation
Needs a test case or two, so I'll mark it as WIP for now. |
6acc816
to
1b7cc82
Compare
This one is ready for review now. |
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.
/approve
I don't see an issue with the change, but rebase required.
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.
Thanks @rosti!
/approve
Waiting for dependency to merge before final lgtm
Writable was added to HostPathMount in v1alpha1 in order to control if an extra volume is mounted in read only or writable mode. Usually, in Kubernetes, this option is referred to as ReadOnly, instead of Writable and is defaulted to `false`. However, at the time, all extra volumes to pods were defaulted to read-only. Therefore, to avoid changes to existing v1alpha1 configs, this option had to be added with reversed meaning. Hence, it's called `writable`. Now, with the migration towards v1beta1, we can safely change this to ReadOnly and get it in sync with the reset of Kubernetes. Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
1b7cc82
to
6c9e347
Compare
/retest |
@rosti great work! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, rosti, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind api-change
What this PR does / why we need it:
Writable was added to HostPathMount in v1alpha1 in order to control if an extra volume is mounted in read only or writable mode.
Usually, in Kubernetes, this option is referred to as ReadOnly, instead of Writable and is defaulted to
false
. However, at the time, all extra volumes to pods were defaulted to read-only. Therefore, to avoid changes to existing v1alpha1 configs, this option had to be added with reversed meaning.Hence, it's called
writable
.Now, with the migration towards v1beta1, we can safely change this to ReadOnly and get it in sync with the reset of Kubernetes.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Refs kubernetes/kubeadm#911
Special notes for your reviewer:
This PR depends on:
Please, review only the last commit here.
/cc @kubernetes/sig-cluster-lifecycle-pr-reviews
/area kubeadm
/assign @fabriziopandini
/assign @timothysc
Does this PR introduce a user-facing change?: