Skip to content
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: do not hit API Server for CSA preview #2522

Merged
merged 7 commits into from
Aug 11, 2023
Merged

Conversation

rquitales
Copy link
Member

@rquitales rquitales commented Aug 2, 2023

When attempting a preview, do not query against the live cluster if CSA mode is specified. For SSA mode, do not return an error if there are authentication issues, and fall back to CSA preview instead.

The TestServerSideApplyPreview test is also removed as impersonation was not actually done correctly. This test is now superseded newly added TestPreview test. This test case creates a new restricted SA and uses it to ensure that the provider falls back to CSA preview when SSA preview hits an auth issue.

Fixes #2521

@github-actions
Copy link

github-actions bot commented Aug 2, 2023

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@lblackstone
Copy link
Member

Looks like we hit another test flake. Opened #2525 to track

When attempting a preview, do not query against the live cluster if
CSA mode is specified. For SSA mode, wrap authentication
error with helpful message.
@rquitales
Copy link
Member Author

@lblackstone This is ready for another pass!

@rquitales rquitales merged commit 6c72381 into master Aug 11, 2023
17 checks passed
@rquitales rquitales deleted the rquitales/fix-preview branch August 11, 2023 07:30
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.

preview fails when upgrading to version 4 even though server side apply is disabled
2 participants