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: reject pool creation if pool with spec exists #5

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

bavarianbidi
Copy link
Member

in garm, a pool is uniq on imageName, flavor, provider and scope. This fixes the current implementation where we compared the image.tag name with the name of the image referenc itself.

fixes #2

@rafalgalaw
Copy link
Collaborator

Good catch, for some reason I didn´t think about it once maigl contributet the image cr. Also great to have tests for the filter functions in place. I like :) 👍🏻

in garm, a pool is uniq on imageName, flavor, provider and scope.
This fixes the current implementation where we compared the image.tag
name with the name of the image referenc itself.

Signed-off-by: Mario Constanti <[email protected]>
@bavarianbidi bavarianbidi merged commit 4c25d7b into main Sep 20, 2023
1 check passed
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.

creating multiple pools with the same spec should be forbidden
3 participants