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 :) 👍🏻

@bavarianbidi bavarianbidi force-pushed the fix_pool_validation_logic branch from c2bfa23 to eb68eb2 Compare September 18, 2023 07:10
@bavarianbidi bavarianbidi force-pushed the fix_pool_validation_logic branch from eb68eb2 to 353ed2b Compare September 18, 2023 07:51
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 <mario.constanti@mercedes-benz.com>
@bavarianbidi bavarianbidi force-pushed the fix_pool_validation_logic branch from 353ed2b to fc58124 Compare September 18, 2023 07:54
@bavarianbidi bavarianbidi requested a review from maigl September 18, 2023 10:09
@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