-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13621 from enj/enj/f/sa_oauth_events
Automatic merge from submit-queue Add events to SA as OAuth client flow Add warning events for service account OAuth configuration errors to aid in troubleshooting. Display these events when describing service accounts. ```$ oc describe sa/proxy Name: proxy Namespace: myproject Labels: <none> Annotations: serviceaccounts.openshift.io/oauth-bogus-annotation.primary={"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":" proxy"}} Image pull secrets: proxy-dockercfg-5wzxb Mountable secrets: proxy-token-p8fd7 proxy-dockercfg-5wzxb Tokens: proxy-token-frfsj proxy-token-p8fd7 Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 10s 10s 1 service-account-oauth-client-getter Warning NoSAOAuthRedirectURIs system:serviceaccount: myproject:proxy has no redirectURIs; set serviceaccounts.openshift.io/oauth-redirecturi.<some-value>=<redirect> or create a dynamic URI using serviceaccounts. openshift.io/oauth-redirectreference.<some-value>=<reference> ``` https://trello.com/c/oRkv75dy/15-5-add-api-events-for-using-sa-as-oauth-clients
- Loading branch information
Showing
6 changed files
with
185 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.