Add a NamespacePhase to Namespace

This commit is contained in:
derekwaynecarr
2015-03-10 11:21:09 -04:00
parent 4dc1826ab8
commit 7de138a9bb
14 changed files with 104 additions and 2 deletions

View File

@@ -895,8 +895,20 @@ type NamespaceSpec struct {
// NamespaceStatus is information about the current status of a Namespace.
type NamespaceStatus struct {
// Phase is the current lifecycle phase of the namespace.
Phase NamespacePhase `json:"phase,omitempty"`
}
type NamespacePhase string
// These are the valid phases of a namespace.
const (
// NamespaceActive means the namespace is available for use in the system
NamespaceActive NamespacePhase = "Active"
// NamespaceTerminating means the namespace is undergoing graceful termination
NamespaceTerminating NamespacePhase = "Terminating"
)
// A namespace provides a scope for Names.
// Use of multiple namespaces is optional
type Namespace struct {