Skip to content

Commit

Permalink
reintroduce the annotations file with specific annotations for the Us…
Browse files Browse the repository at this point in the history
…er resource
  • Loading branch information
sbryzak committed Dec 31, 2023
1 parent eada577 commit a154680
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api/v1alpha1/annotations.go
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"
)

0 comments on commit a154680

Please sign in to comment.