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

Grant read access to additional users on image repository creation, #143

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

rcerven
Copy link
Contributor

@rcerven rcerven commented Aug 7, 2024

based on config map in the user namespace named "image-controller-additional-users"

STONEBLD-2666

@openshift-ci openshift-ci bot requested review from mmorhun and psturc August 7, 2024 18:48
@rcerven rcerven changed the title Grant read access to additional users on image repository creation, [wip] Grant read access to additional users on image repository creation, Aug 7, 2024
@rcerven rcerven force-pushed the grant_access branch 2 times, most recently from 855e1d4 to 2464d43 Compare August 7, 2024 20:18
@rcerven rcerven changed the title [wip] Grant read access to additional users on image repository creation, Grant read access to additional users on image repository creation, Aug 7, 2024
Copy link
Collaborator

@mmorhun mmorhun left a comment

Choose a reason for hiding this comment

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

For adding users on image repository creation current implementation is fine, but in the nearest future when we need to support changing users list dynamically for all image repositories, this approach is not optimal. Better way would be to create a team per workspace with the configmap and add users dynamically to the team.
But for this PR you don't have to rework it.

controllers/imagerepository_controller.go Outdated Show resolved Hide resolved
controllers/imagerepository_controller.go Outdated Show resolved Hide resolved
controllers/imagerepository_controller.go Outdated Show resolved Hide resolved
controllers/imagerepository_controller.go Outdated Show resolved Hide resolved
controllers/imagerepository_controller.go Outdated Show resolved Hide resolved
controllers/imagerepository_controller.go Outdated Show resolved Hide resolved
controllers/suite_util_test.go Show resolved Hide resolved
pkg/quay/quay.go Outdated Show resolved Hide resolved
based on config map in the user namespace named "image-controller-additional-users"

STONEBLD-2666

Signed-off-by: Robert Cerven <[email protected]>
@rcerven
Copy link
Contributor Author

rcerven commented Aug 9, 2024

/retest

@rcerven rcerven merged commit 338fc0d into konflux-ci:main Aug 9, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants