Skip to content

only validate secret if we have access to API / default NS exists #184

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

Closed

Conversation

freimer
Copy link

@freimer freimer commented Apr 28, 2025

This change retrieves the default namespace, and only if that is successful does it validate the user defined secret. During a dry-run (without the server option), the Kubernetes API is not consulted, and any "lookup" values are empty. During an actual install, the default namespace will be found, and the secret validated. Corner-case is if someone actually deletes the default namespace on their cluster, if that is even possible, in which case the install should still work, but the secret will not be validated.

@freimer
Copy link
Author

freimer commented Apr 28, 2025

If someone really cares, or it would cause issues, I can remove the whitespace in the changed lines.

@sagar-mamdapure
Copy link
Contributor

Hi @freimer, We appreciate your pull request. A review of the changes will be conducted. Thanks

@freimer
Copy link
Author

freimer commented Apr 28, 2025

See #183

Copy link

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the Stale label May 14, 2025
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot closed this May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants