-
Notifications
You must be signed in to change notification settings - Fork 242
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
Fix missing confirmation for reset #1251
Fix missing confirmation for reset #1251
Conversation
Hi @shibumi. Thanks for your PR. I'm waiting for a kubermatic 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/test-infra repository. |
/assign @xrstf |
c09fba5
to
4042b18
Compare
This is breaking CLI change. But on the other hand it's precautionary measure. I'm not sure how to proceed. |
@kron4eg it is indeed a breaking CLI change, but I really think we should have such functionality :) My solution may not be the best, but it's definitely something the reset sub command should have. I was really surprised when I used |
@shibumi Thank you for the PR! We've discussed it internally, and we agree that there should be a confirmation for the
We've decided to go with the second approach (to show a warning) because it seems like the best approach for moving forward. I'll put this PR on an explicit hold until we don't create a release branch. In meanwhile, I'll leave some comments which you can address. If you want, you can create another PR that would add a warning to the
|
Full ACK. The second option makes more sense. Would be a shame to deprecate the
Will have a look on your suggestions after work :) Until tomorrow you should have an updated version.
Will have a look on this, too. |
@shibumi You'll also need to update E2E tests to run the Lines 185 to 197 in 1683388
|
4042b18
to
56216ad
Compare
56216ad
to
131843e
Compare
@xmudrii I made sure that the tests are running through 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.
Tiny nits.
131843e
to
470a032
Compare
@xmudrii done |
/test all |
Signed-off-by: Christian Rebischke <chris@shibumi.dev>
@xmudrii done. Shall I squash commits or is the commit history fine? My feeling is it's a little bit too atomic. |
@shibumi We automatically squash all PRs on merge. /test all |
@xmudrii what does this mean? pkg/cmd/apply.go:29: File is not |
Signed-off-by: Christian Rebischke <chris@shibumi.dev>
/test all |
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.
LGTM label has been added. Git tree hash: c3c1ab0c33ba562bed1049b514eb18a20aad8b48
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shibumi, xmudrii 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 |
@xmudrii /retest please :) it was a timeout of your Ci system. |
/retest |
1 similar comment
/retest |
The merge label is blocking the merge |
/unhold |
What this PR does / why we need it:
This PR adds a request for confirmation for the
reset
subcommand.We have a request for confirmation already in the
apply
subcommand, hence it should not be much workadding the same question to
reset
. I really thinkreset
should have such a question, because it destroysthe whole cluster.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):None
Special notes for your reviewer:
The functionality works so far, but I am not sure about the implementation. Actually it would be nicer to have access to the
LiveCluster
object inside ofreset
, because theCluster
object doesn't seem to be "Dynamic Worker"-aware.Furthermore it looks like the hostnames are missing when I test it:
Does this have something to do with missing network access? I tested this without the VPN connection to my cluster (I did not have another cluster to test right now and I did not want to delete one of our company clusters out of a mistake).
Does this PR introduce a user-facing change?: