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 secret admitter to allow OVA provider creation #566

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Aug 24, 2023

When a new provider being created in the first run we sets the fields of the secrete and in the second iteration the owner reference of the provider, since the second iteration counts as update operation the webhook blocks the provider creation.
This fix checks if the URL field wasn't changed and if not the operation is permitted, this allow to the creation of the provider to pass successfully.

backport of #561

bkhizgiy and others added 2 commits August 24, 2023 14:42
Skip connection test when updating secret of OVA provider (the URL
doesn't change and credentials are not specified) and reduce congnitive
complexity of the validateProviderSecret function.

Signed-off-by: Arik Hadas <[email protected]>
@ahadas ahadas requested a review from mnecas as a code owner August 24, 2023 11:43
@sonarcloud
Copy link

sonarcloud bot commented Aug 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ahadas ahadas merged commit bf90dd3 into kubev2v:release-v2.5.0 Aug 24, 2023
5 checks passed
@ahadas ahadas deleted the release-v2.5.0 branch August 26, 2023 20:19
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.

3 participants