-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reintroduce the annotations file with specific annotations for the Us…
…er resource
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package v1alpha1 | ||
|
||
const ( | ||
// AnnotationKeyPrefix is the prefix used for annotation key values | ||
AnnotationKeyPrefix = LabelKeyPrefix | ||
|
||
// UserIDUserAnnotationKey is used to set an annotation value in the User resource on the member cluster, that | ||
// contains the user's User ID as set in the user's JWT token. | ||
UserIDUserAnnotationKey = AnnotationKeyPrefix + "sso-user-id" | ||
|
||
// AccountIDUserAnnotationKey is used to set an annotation value in the User resource on the member cluster, that | ||
// contains the user's Account ID as set in the user's JWT token. | ||
AccountIDUserAnnotationKey = AnnotationKeyPrefix + "sso-account_id" | ||
|
||
// EmailUserAnnotationKey is used to set an annotation value in the User resource on the member cluster, that | ||
// contains the user's Email as set in the user's JWT token. | ||
EmailUserAnnotationKey = AnnotationKeyPrefix + "email" | ||
) |