-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Cleanup master terminology (start fixing issue #11353) #11394
Conversation
|
Welcome @bogd! |
Hi @bogd. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
Regarding tags, I would like to proceed as suggested in the issue comment ( #11353 ) - add However, I am not sure how to proceed here.
[ Edit: I misunderstood what the tag does here - it applies to the Replacing the tag might impact people who call kubespray playbooks with the tag set. |
1c54132
to
5658cfd
Compare
5658cfd
to
790715c
Compare
Hello @bogd We could just highlight this in the release notes by adding a deprecation warning. People should take care of it when they use the new release. |
Thank you, @mzaian ! Since this PR already touches multiple files, I would like to stick to "no user-facing changes" for it. My plan is to change as much as possible without any potentially breaking changes, and keep those changes for separate PR(s) - smaller ones, easier to follow. This means that I will not touch variables and tag references (yet). Once this is merged, I will start work on the more... troublesome changes in a separate PR. In fact, this is why the PR is marked as "start fixing issue" :) As before, please let me know if I am missing something, or if you think I should go about this a different way. |
I really like this approach small PRs for critical things. I have no comments but Thank you for taking care of this :) |
The recommendation survives under sig-architecture [here](https://github.com/kubernetes/community/blob/master/sig-architecture/naming/recommendations/001-master-control-plane.md), but I am not sure how to refer to this in a commit message.
Putting that link into the commit message is perfectly acceptable (permalink preferably)
|
bd6cf5d
to
5d2bee1
Compare
5edcedc
to
c582019
Compare
Quick question - if Original:
Alternative:
There are multiple I am not trying to expand the scope of this PR (it is already big enough :) ), I am just trying to keep consistency throughout the files. |
Yeah it's fine. I usually do stuff like this : |
@@ -13,19 +13,19 @@ | |||
service: | |||
name: etcd | |||
state: restarted | |||
when: is_etcd_master | |||
when: ('etcd' in group_names) |
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.
No need for parens here (or anywhere else if the check is standalone). Check operators have a pretty high precedence, I think.
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.
The parentheses are there for another reason - to "escape" the quotation (otherwise, it is interpreted as a YAML quote, and the YAML parser fails to interpret the value).
This is the way I normally work around this "quote at start of YAML value" problem. If you know a better way to do it, I will implement it.
I know it is still a problem because in a previous commit I forgot to add it, and all the CI tests started failing :)
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.
Oh that's why.
I've seen mostly using the other kind of quote for that ("'etcd' in group_names"
) but parens look fine to me ; it can be confused precedence override, but OTOH the quotes muck up syntax highlighting, so that's a pick your poison scenario I guess.
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.
For me, using two kinds of quotes is a bit less readable - I am the kind of person that always prefers explicit parentheses to relying on operator precedence, so probably that is why :)
(I am also the kind of person that often edits YAMLs in vim without syntax highlighting, but I guess that says more about my age than about anything else)
@@ -71,7 +71,7 @@ | |||
owner: "root" | |||
mode: "0644" | |||
when: | |||
- not is_kube_master | |||
- ('kube_control_plane' not in group_names) |
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.
same for kube_control_plane on each occurence.
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.
Same reason as above - if I do not do something about the quote, the YAML parser will fail when interpreting the line.
c582019
to
c11add9
Compare
c11add9
to
9d6e886
Compare
I'm fine with the content. Thanks for the work 👍 |
Yeah that seems reasonable.
/hold
(I'll remove this once 2.26 is cut, we can still review until then)
|
K8s is moving away from the "master" terminology, so kubespray should follow the same naming conventions. See https://github.com/kubernetes/community/blob/65d886bb3029e73d9729e1d4f27422a7985233ed/sig-architecture/naming/recommendations/001-master-control-plane.md
9d6e886
to
345eec3
Compare
Thanks ! |
Thank you for the help, and the guidance in getting a new contributor up to speed :) |
/hold cancel |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Cleanup old "master" terminology in kubespray
Which issue(s) this PR fixes:
Special notes for your reviewer:
As per comments on issue #11353 , I have not yet touched any potentially user-facing components (tags, variables, etc). They will eventually need modifying as well, in a future step.
When that happens, it will require a more detailed release note, but I do not know yet if that can be done in the same PR or will need a new one.Any potentially breaking changes were kept back for a future PR.
Does this PR introduce a user-facing change?: