-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
…nto staging_tests # Conflicts: # pkg/k8sMetadataUtil/k8sMetadataUtil.go
internal/startup/startup.go
Outdated
@@ -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() |
There was a problem hiding this comment.
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
func (oc *OpenshiftService) getGroupsWithCache() (*userClientV1Api.GroupList, error) { | ||
valueFromCache, found := oc.cache.Get(groupsCacheKey) | ||
if found { | ||
return valueFromCache.(*userClientV1Api.GroupList), nil |
There was a problem hiding this comment.
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)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type convertion
.