Skip to content

Commit cfa3dd9

Browse files
authored
feat: add rejected usersignup state (#508)
* add rejected usersignup state
1 parent 8f3b540 commit cfa3dd9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

api/v1alpha1/usersignup_types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ const (
7777
UserSignupStateLabelValueDeactivated = "deactivated"
7878
// UserSignupStateLabelValueBanned is used for identifying that the UserSignup is banned
7979
UserSignupStateLabelValueBanned = "banned"
80+
// UserSignupStateLabelValueRejected is used for identifying that the UserSignup was rejected
81+
UserSignupStateLabelValueRejected = "rejected"
8082

8183
// Status condition reasons
8284
UnableToCreateSpaceBinding = "UnableToCreateSpaceBinding"
@@ -105,6 +107,7 @@ const (
105107
UserSignupPendingApprovalReason = "PendingApproval"
106108
UserSignupUserBanningReason = "Banning"
107109
UserSignupUserBannedReason = "Banned"
110+
UserSignupUserRejectedReason = "Rejected"
108111
UserSignupFailedToReadBannedUsersReason = "FailedToReadBannedUsers"
109112
UserSignupMissingUserEmailReason = "MissingUserEmail"
110113
UserSignupMissingUserEmailAnnotationReason = "MissingUserEmailAnnotation"
@@ -164,6 +167,10 @@ const (
164167

165168
// UserSignupStateBanned - If this state is set by an admin then the user's account will be banned.
166169
UserSignupStateBanned = UserSignupState("banned")
170+
171+
// UserSignupStateRejected - If this state is set, the user was rejected
172+
// and their account will not be provisioned.
173+
UserSignupStateRejected = UserSignupState("rejected")
167174
)
168175

169176
type UserSignupState string

0 commit comments

Comments
 (0)