Skip to content

Commit

Permalink
feat: Implement SpaceBindingRequest controller main logic (#372)
Browse files Browse the repository at this point in the history
* add SpaceBindingRequest provisioning reasons
  • Loading branch information
mfrancisc authored Aug 23, 2023
1 parent 3827776 commit fe9ca97
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions api/v1alpha1/spacebindingrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ const (
SpaceBindingRequestLabelKey = LabelKeyPrefix + "spacebindingrequest"
// SpaceBindingRequestNamespaceLabelKey is a label on the SpaceBinding, and will hold the namespace of the SpaceBindingRequest that created the SpaceBinding resource.
SpaceBindingRequestNamespaceLabelKey = LabelKeyPrefix + "spacebindingrequest-namespace"

// --- Status condition reasons ---

// SpaceBindingRequestTerminatingReason represents the reason for space binding request termination.
SpaceBindingRequestTerminatingReason = terminatingReason

// SpaceBindingRequestTerminatingFailedReason represents the reason for a failed space binding request termination.
SpaceBindingRequestTerminatingFailedReason = terminatingFailedReason

// SpaceBindingRequestUnableToCreateSpaceBindingReason represents the reason for a failed space binding creation.
SpaceBindingRequestUnableToCreateSpaceBindingReason = UnableToCreateSpaceBinding

// SpaceBindingRequestProvisioningReason represents the reason for space binding request provisioning.
SpaceBindingRequestProvisioningReason = provisioningReason

// SpaceBindingRequestProvisionedReason represents the reason for a successfully provisioned space binding request.
SpaceBindingRequestProvisionedReason = provisionedReason
)

// SpaceBindingRequestSpec defines the desired state of SpaceBindingRequest
Expand Down
3 changes: 2 additions & 1 deletion api/v1alpha1/usersignup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const (
UserSignupStateLabelValueBanned = "banned"

// Status condition reasons
UnableToCreateSpaceBinding = "UnableToCreateSpaceBinding"
UserSignupNoClusterAvailableReason = "NoClusterAvailable"
UserSignupNoUserTierAvailableReason = "NoUserTierAvailable"
UserSignupNoTemplateTierAvailableReason = "NoTemplateTierAvailable"
Expand All @@ -77,7 +78,7 @@ const (
UserSignupUnableToUpdateStateLabelReason = "UnableToUpdateStateLabel"
UserSignupUnableToDeleteMURReason = "UnableToDeleteMUR"
UserSignupUnableToCreateSpaceReason = "UnableToCreateSpace"
UserSignupUnableToCreateSpaceBindingReason = "UnableToCreateSpaceBinding"
UserSignupUnableToCreateSpaceBindingReason = UnableToCreateSpaceBinding
UserSignupProvisioningSpaceReason = "ProvisioningSpace"

// The UserSignupUserDeactivatingReason constant will be replaced with UserSignupDeactivationInProgressReason
Expand Down

0 comments on commit fe9ca97

Please sign in to comment.