Add a NamespacePhase to Namespace
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user