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

🐞 Save host secret first #896

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

yaacov
Copy link
Member

@yaacov yaacov commented Feb 8, 2024

When creating host secret, need to validate secret before creating host

Issue:
secret validation may fail, in that case we should not create a host CR.

Fix:
a. create a secret
b. create a host
c. update host owner ref

Ref: #808

Signed-off-by: Yaacov Zamir <[email protected]>
@yaacov yaacov added bug Categorizes issue or PR as related to a bug. providers labels Feb 8, 2024
@yaacov yaacov added this to the 2.6.0 milestone Feb 8, 2024
Copy link

sonarqubecloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

generateName: `${provider.metadata.name}-${inventory.id}-`,
namespace: provider.metadata.namespace,
labels: {
createdForResourceType: 'hosts',
Copy link
Member Author

Choose a reason for hiding this comment

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

@ahadas is this the correct labels we need to set in the secret ?

@yaacov yaacov merged commit cb3a295 into kubev2v:main Feb 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant