Skip to content

daemon: Automatically sync master taint - #849

Closed
cgwalters wants to merge 1 commit into
openshift:masterfrom
cgwalters:mcd-detainting
Closed

cgwalters wants to merge 1 commit into
openshift:masterfrom
cgwalters:mcd-detainting

Conversation

@cgwalters

Copy link
Copy Markdown
Member

If a user or code adds the worker role to the masters, automatically
remove our NoSchedule taint.

Alternative to #845

Closes: #763

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 12, 2019
@cgwalters

Copy link
Copy Markdown
Member Author

Not tested yet

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 12, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2019
@cgwalters

Copy link
Copy Markdown
Member Author

This PR is silent on how the worker label ends up on the masters; so it isn't a complete solution (I should remove the Closes probably). However, since we need to make both changes (router selects for worker explicitly at least), it simplifies things to reduce the problem down to "label worker or not", instead of both labels and taints.

This was inspired by this bit of code in the GCP provider.

(It's a bit surprising this isn't an upstream kube default actually but I guess it gets into policy vs mechanism)

@cgwalters cgwalters changed the title WIP: daemon: Automatically sync master taint daemon: Automatically sync master taint Jun 13, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 13, 2019
@cgwalters

Copy link
Copy Markdown
Member Author

Cleaned up a bit, added some comments. Lifting WIP, I tested this and it works as advertised. I can add an e2e if people want.

@cgwalters

Copy link
Copy Markdown
Member Author

I still feel this is true:

However, since we need to make both changes (router selects for worker explicitly at least), it simplifies things to reduce the problem down to "label worker or not", instead of both labels and taints.

So I'd like to propose landing this, even if we don't have a consensus on how the worker label should be added.

@kikisdeliveryservice

Copy link
Copy Markdown
Contributor

hey our new linter works?!

If a user or code adds the `worker` role to the masters, automatically
remove our `NoSchedule` taint.

Alternative to openshift#845

Closes: openshift#763
@cgwalters

Copy link
Copy Markdown
Member Author

...and then, Colin hesitated briefly over the git push button to fix some whitespace, knowing that 3 clusters would be launched as a result of this action. But, YOLO (and so do the clusters from a PR).

@cgwalters

Copy link
Copy Markdown
Member Author

Closing per #763 (comment)

@cgwalters cgwalters closed this Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it easy to have masters be schedulable

3 participants