-
Notifications
You must be signed in to change notification settings - Fork 515
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: pod resources not visible even if user have access on those pods. #3071
Conversation
Kudos, SonarCloud Quality Gate passed!
|
resp, namespaced, err := impl.k8sClientService.GetResourceList(ctx, restConfig, k8sRequest) | ||
if err != nil { | ||
impl.logger.Errorw("error in getting resource list", "err", err, "request", request) | ||
return resourceList, err | ||
} | ||
checkForResourceCallback := func(namespace, group, kind, resourceName string) bool { | ||
resourceIdentifier := k8sRequest.ResourceIdentifier | ||
resourceIdentifier := resourceIdentifierCloned |
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.
we can start with empty installation
resp, namespaced, err := impl.k8sClientService.GetResourceList(ctx, restConfig, k8sRequest) | ||
if err != nil { | ||
impl.logger.Errorw("error in getting resource list", "err", err, "request", request) | ||
return resourceList, err | ||
} | ||
checkForResourceCallback := func(namespace, group, kind, resourceName string) bool { | ||
resourceIdentifier := k8sRequest.ResourceIdentifier | ||
resourceIdentifier := resourceIdentifierCloned | ||
resourceIdentifier.Name = resourceName | ||
resourceIdentifier.Namespace = namespace | ||
if group != "" && kind != "" { |
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.
we can remove this check
Description
Not able to see the pod resources even if the user has permission for those pods.
Fixes #3072
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
Does this PR introduce a user-facing change?