Skip to content

Conversation

@pkalsi97
Copy link
Contributor

@pkalsi97 pkalsi97 commented Nov 3, 2025

Implements additional Input of namespace (and confirms it) before reset in CLI.
Closes #6299

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! LGTM, only mind the github warning about the illegal char in the branch name please.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

⚠️ Unit test coverage report - coverage decreased from 51.5% to 51.4% (-0.1%)

@pkalsi97
Copy link
Contributor Author

pkalsi97 commented Nov 3, 2025

@squakez Shall I fix the branch name ? sorry for that!

@pkalsi97 pkalsi97 closed this Nov 3, 2025
@pkalsi97 pkalsi97 deleted the cli/reset‐confirmation branch November 3, 2025 17:03
@pkalsi97 pkalsi97 restored the cli/reset‐confirmation branch November 3, 2025 17:03
@pkalsi97 pkalsi97 reopened this Nov 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

⚠️ Unit test coverage report - coverage decreased from 51.5% to 51.4% (-0.1%)

@pkalsi97
Copy link
Contributor Author

pkalsi97 commented Nov 3, 2025

@squakez I apologise for the mess, please Review the changes again.
I have added some additional code so that is doesn't fail the E2E test.

@pkalsi97 pkalsi97 requested a review from squakez November 3, 2025 18:16
pkg/cmd/reset.go Outdated
}

func (o *resetCmdOptions) reset(cmd *cobra.Command, _ []string) {
if cmd.InOrStdin() == os.Stdin {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to include a -f/--force option to skip the check entirely. As shown by the e2e test it is possible that some user leverage the command automatically, so we need some possibility to skip the check and force the reset without prompting. In that case, you can change the test to pass a -f and make it pass.

@squakez
Copy link
Contributor

squakez commented Nov 4, 2025

About the branch name, I can see github complaining about the presence of the - character. It seems it's not a dash, but an illegal char formatted as \u2010. You may rename the branch entirely and likely remove the dash to avoid problem.

@pkalsi97
Copy link
Contributor Author

pkalsi97 commented Nov 4, 2025

@squakez, unfortunately my local branch was not linking with the remote branch again, so I decided to close this and raise a fresh PR #6359 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Safer kamel reset

2 participants