-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deployments): fix deployment status and wait command
- Loading branch information
1 parent
c97b186
commit 0e3ea14
Showing
6 changed files
with
118 additions
and
53 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
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
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
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
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,33 @@ | ||
import enum | ||
|
||
|
||
class DeploymentPhaseConstants(str, enum.Enum): | ||
""" | ||
Enumeration variables for the deployment phase | ||
""" | ||
|
||
def __str__(self): | ||
return str(self.value) | ||
|
||
DeploymentPhaseInProgress = "InProgress" | ||
DeploymentPhaseProvisioning = "Provisioning" | ||
DeploymentPhaseSucceeded = "Succeeded" | ||
DeploymentPhaseFailedToUpdate = "FailedToUpdate" | ||
DeploymentPhaseFailedToStart = "FailedToStart" | ||
DeploymentPhaseStopped = "Stopped" | ||
|
||
|
||
class DeploymentStatusConstants(str, enum.Enum): | ||
""" | ||
Enumeration variables for the deployment status | ||
""" | ||
|
||
def __str__(self): | ||
return str(self.value) | ||
|
||
DeploymentStatusRunning = "Running" | ||
DeploymentStatusPending = "Pending" | ||
DeploymentStatusError = "Error" | ||
DeploymentStatusUnknown = "Unknown" | ||
DeploymentStatusStopped = "Stopped" |
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,9 @@ | ||
|
||
class RetriesExhausted(Exception): | ||
def __init__(self, msg=None): | ||
Exception.__init__(self, msg) | ||
|
||
|
||
class DeploymentNotRunning(Exception): | ||
def __init__(self, msg=None): | ||
Exception.__init__(self, msg) |