-
Notifications
You must be signed in to change notification settings - Fork 60
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
Pod Node Selector Config #2929
Pod Node Selector Config #2929
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kgroschoff 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 |
Codecov Report
@@ Coverage Diff @@
## master #2929 +/- ##
==========================================
- Coverage 52.39% 52.33% -0.07%
==========================================
Files 237 237
Lines 8201 8238 +37
Branches 985 999 +14
==========================================
+ Hits 4297 4311 +14
- Misses 3901 3924 +23
Partials 3 3
Continue to review full report at Codecov.
|
@maciaszczykm / @floreks PTAL |
I will take a look, thanks |
looks and works fine 👍 |
@@ -93,6 +93,11 @@ export class ClusterService { | |||
this._cluster.labels = labels; | |||
} | |||
|
|||
set podNodeSelectorAdmissionPluginConfig(config: object) { | |||
delete this._cluster.spec.podNodeSelectorAdmissionPluginConfig; |
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.
Is this line required? In the next one we are overwriting the same property.
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.
you're right. removed it.
/lgtm |
LGTM label has been added. Git tree hash: 65d778033a4d4f8c955f28934598e8ee897e2cc7
|
* extend cluster spec by podNodeSelectorAdmissionPluginConfig * add new field podNodeSelectorAdmissionPluginConfig to wizard creation & extend label-form * add new field podNodeSelectorAdmissionPluginConfig to edit cluster dialog * remove duplicate code
* extend cluster spec by podNodeSelectorAdmissionPluginConfig * add new field podNodeSelectorAdmissionPluginConfig to wizard creation & extend label-form * add new field podNodeSelectorAdmissionPluginConfig to edit cluster dialog * remove duplicate code
What this PR does / why we need it:
Added option to specify a Pod Node Selector Configuration during cluster creation or cluster edit. It will only be visible, when Pod Node Selector is enabled as Admission Plugin.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2884
Special notes for your reviewer:
![podNodeSelectorConfig1](https://user-images.githubusercontent.com/19547196/104337194-7fa25d80-54f5-11eb-8b53-88ba0c8bc3c8.PNG)
![podNodeSelectorConfig2](https://user-images.githubusercontent.com/19547196/104337198-803af400-54f5-11eb-8888-b446a52cab37.PNG)
![podNodeSelectorConfig3](https://user-images.githubusercontent.com/19547196/104337199-803af400-54f5-11eb-9503-5de1bd1bc2e7.PNG)
Release note: