-
Notifications
You must be signed in to change notification settings - Fork 582
[WIP] OCPBUGS-62145: User response does not include list of groups user is part of #2585
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
base: master
Are you sure you want to change the base?
Conversation
|
Pipeline controller notification For optional jobs, comment |
|
@krishagarwal278: This pull request references Jira Issue OCPBUGS-62145, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Hello @krishagarwal278! Some important instructions when contributing to openshift/api: |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/jira refresh |
|
@krishagarwal278: This pull request references Jira Issue OCPBUGS-62145, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@krishagarwal278: This pull request references Jira Issue OCPBUGS-62145, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
| // groups specifies group names this user is a member of. | ||
| // This field is deprecated and will be removed in a future release. | ||
| // Instead, create a Group object containing the name of this User. | ||
| // +default=[] |
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.
This type is served via an aggregated apiserver and defaulting this here would have no affect AFAIK.
|
@krishagarwal278: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Summary
The User resource's
groupsfield was returningnullwhen not populated, causing issues with the Pipelines Operator's role-based approval functionality.This change adds a default empty array for the
groupsfield in the User API schema, ensuring it returns[]instead ofnullwhen the user is not a member of any groups.Changes:
// +default=[]marker to User.Groups field in user/v1/types.goFixes: OCPBUGS-62145