Skip to content

Commit

Permalink
Add Skipped phase for BackupSession (#72)
Browse files Browse the repository at this point in the history
Signed-off-by: Emruz Hossain <emruz@appscode.com>
  • Loading branch information
hossainemruz authored Nov 17, 2020
1 parent 81362c3 commit 9865af3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion apis/stash/v1beta1/backup_session_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ type BackupSessionSpec struct {
Invoker BackupInvokerRef `json:"invoker,omitempty" protobuf:"bytes,1,opt,name=invoker"`
}

// +kubebuilder:validation:Enum=Pending;Running;Succeeded;Failed;Unknown
// +kubebuilder:validation:Enum=Pending;Skipped;Running;Succeeded;Failed;Unknown
type BackupSessionPhase string

const (
BackupSessionPending BackupSessionPhase = "Pending"
BackupSessionSkipped BackupSessionPhase = "Skipped"
BackupSessionRunning BackupSessionPhase = "Running"
BackupSessionSucceeded BackupSessionPhase = "Succeeded"
BackupSessionFailed BackupSessionPhase = "Failed"
Expand Down
Loading

0 comments on commit 9865af3

Please sign in to comment.