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

feat: support RBAC bypass by group for OKD resources with requester annotation #413

Merged
merged 28 commits into from
Jul 9, 2023

Conversation

royhadad
Copy link
Contributor

@royhadad royhadad commented Jul 6, 2023

.

@@ -43,6 +44,7 @@ func Start() {
basicCliClient := clients.NewCliServiceClient(deploymentConfig.URL, basicNetworkValidator, state)
errorReporter := errorReporter.NewErrorReporter(basicCliClient, state)
internalLogger := logger.New("", errorReporter)
openshiftClientInstance, err := openshiftClient.NewOpenshiftClient()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO handle this error somehow

@royhadad royhadad marked this pull request as ready for review July 9, 2023 15:32
func (oc *OpenshiftService) getGroupsWithCache() (*userClientV1Api.GroupList, error) {
valueFromCache, found := oc.cache.Get(groupsCacheKey)
if found {
return valueFromCache.(*userClientV1Api.GroupList), nil
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax question, valueFromCache.(*userClientV1Api.GroupList) . the dot in the middle meaning that valueFromCache access the type of (*userClientV1Api.GroupList) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

type convertion

@royhadad royhadad merged commit 42f0ec6 into main Jul 9, 2023
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the staging_tests branch July 9, 2023 16:48
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.

3 participants