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 versioning broken when deploying to multiple clusters with same artifact #169

Conversation

alice485
Copy link
Contributor

@alice485 alice485 commented Aug 15, 2023

This change adds a function isBindable which validates that an artifact's provider account is the same as the account passed in with the deployment request. The BindArtifacts function uses this to exclude artifacts that don't exist in the target cluster, thus preventing the behavior detailed in this issue which was causing certain deployments to fail.

I also updated the unit tests to verify the expected behavior.

Tests without the bug fix:

Screenshot 2023-08-15 at 1 20 15 PM

Tests with the bug fix:

Screenshot 2023-08-15 at 1 21 05 PM

Copy link

@guido9j guido9j left a comment

Choose a reason for hiding this comment

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

LGTM!

@alice485 alice485 merged commit 45641be into master Sep 6, 2023
2 checks passed
@alice485 alice485 deleted the CN-2455-go-clouddriver-versioning-broken-when-deploying-to-multiple-clusters-with-same-artifact branch September 6, 2023 16:41
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.

2 participants