-
Notifications
You must be signed in to change notification settings - Fork 133
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
add: get permission on resources #1043
add: get permission on resources #1043
Conversation
- since we already have these resource for create, list, delete etc, no harm to add get on them Signed-off-by: Wen Zhou <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ykaliuta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bd9b83c
into
opendatahub-io:incubation
FTR - I raised this issue based on the discussion on slack https://issues.redhat.com/browse/RHOAIENG-8297 - this PR may be fixing it or maybe not. |
- since we already have these resource for create, list, delete etc, no harm to add get on them Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit bd9b83c)
- since we already have these resource for create, list, delete etc, no harm to add get on them Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit bd9b83c) fix: when delete resource if no CRD in the cluster (opendatahub-io#1044) Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit c040f77) deploy: refactor getResource to return NotFound for both cases (opendatahub-io#1046) Avoid returning (nil, nil), convert error if CRD not present to NotFound and handle them in the caller code. Avoid checking for found == nil but handle only error code. This is more idiomatic and less error prone. Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit 9651b76) Handle Kserve exception Fix csv
- since we already have these resource for create, list, delete etc, no harm to add get on them Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit bd9b83c) fix: when delete resource if no CRD in the cluster (opendatahub-io#1044) Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit c040f77) deploy: refactor getResource to return NotFound for both cases (opendatahub-io#1046) Avoid returning (nil, nil), convert error if CRD not present to NotFound and handle them in the caller code. Avoid checking for found == nil but handle only error code. This is more idiomatic and less error prone. Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit 9651b76) Handle Kserve exception Fix csv (cherry picked from commit e5f65bd)
Description
related to some offline discussion for the error seen recently:
"buildconfigs.build.openshift.io "rstudio-server-rhel9" is forbidden: User "system:serviceaccount:redhat-ods-operator:redhat-ods-operator-controller-manager" cannot get resource "buildconfigs" in API group "build.openshift.io" in the namespace "redhat-ods-applications"
root cause has not been identify, but should be no harm to have all our resource with get permission.
How Has This Been Tested?
Merge criteria: