-
Notifications
You must be signed in to change notification settings - Fork 68
Clear tunnelingAgentIP when expose strategy is not Tunneling #7422
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
Clear tunnelingAgentIP when expose strategy is not Tunneling #7422
Conversation
const exposeStrategy = this.form.get(Controls.ExposeStrategy).value; | ||
const clusterNetwork = this._clusterSpecService.cluster.spec.clusterNetwork; | ||
if (exposeStrategy === ExposeStrategy.tunneling) { | ||
clusterNetwork.tunnelingAgentIP = clusterNetwork.tunnelingAgentIP || '100.64.30.10'; |
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 the default value and just set tunnelingAgentIP
to null
if expose strategy is not tunneling
. Also, there is a similar check in https://github.com/kubermatic/dashboard/blob/main/modules/web/src/app/wizard/component.ts#L290 which should be removed 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
LGTM label has been added. Git tree hash: 3a0152576f9404344368a08814c9f4f5f72d4053
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Waseem826 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 |
/retest Review the full test history Silence the bot with an |
1 similar comment
/retest Review the full test history Silence the bot with an |
/hold |
do we want to merge this one ? @Waseem826 @KhizerRehan |
/unhold |
/cherry-pick release/v2.28 |
@KhizerRehan: new pull request created: #7470 In response to this:
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. |
@KhizerRehan: new pull request created: #7471 In response to this:
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. |
@KhizerRehan: new pull request created: #7472 In response to this:
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. |
What this PR does / why we need it:
This PR fixes a validation issue by clearing the
tunnelingAgentIP
field when the selected expose strategy is anything other than "Tunneling".Video:
620cb5afe9d89a8682ce8299c5b8f483.mp4
Which issue(s) this PR fixes:
Fixes #7302
What type of PR is this?
/kind bug
Special notes for your reviewer:
Fixes validation error when switching expose strategy by allowing tunnelingAgentIP to be cleared, enabling saving the cluster template with a different strategy.
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: