Namespace
apiVersion: v1
import "k8s.io/api/core/v1"
Namespace
Namespace provides a scope for Names. Use of multiple namespaces is optional.
-
apiVersion: v1
-
kind: Namespace
-
status (
Status describes the current status of a Namespace. More info:
NamespaceSpec
NamespaceSpec describes the attributes on a Namespace.
-
finalizers ([]string)
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
NamespaceStatus
NamespaceStatus is information about the current status of a Namespace.
-
conditions ([]NamespaceCondition)
Patch strategy: merge on key
type
Represents the latest available observations of a namespace's current state.
NamespaceCondition contains details about state of namespace.
-
conditions.status (string), required
Status of the condition, one of True, False, Unknown.
-
conditions.type (string), required
Type of namespace controller condition.
Possible enum values:
"NamespaceContentRemaining"
contains information about resources remaining in a namespace."NamespaceDeletionContentFailure"
contains information about namespace deleter errors during deletion of resources."NamespaceDeletionDiscoveryFailure"
contains information about namespace deleter errors during resource discovery."NamespaceDeletionGroupVersionParsingFailure"
contains information about namespace deleter errors parsing GV for legacy types."NamespaceFinalizersRemaining"
contains information about which finalizers are on resources remaining in a namespace.
-
conditions.lastTransitionTime (Time)
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
-
conditions.message (string)
-
conditions.reason (string)
-
-
phase (string)
Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
Possible enum values:
"Active"
means the namespace is available for use in the system"Terminating"
means the namespace is undergoing graceful termination
NamespaceList
NamespaceList is a list of Namespaces.
-
apiVersion: v1
-
kind: NamespaceList
-
items ([]
Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
Operations
get
read the specified Namespace
HTTP Request
GET /api/v1/namespaces/{name}
Parameters
Response
200 (
401: Unauthorized GET /api/v1/namespaces/{name}/status 200 (
401: Unauthorized GET /api/v1/namespaces allowWatchBookmarks (in query): boolean continue (in query): string fieldSelector (in query): string labelSelector (in query): string limit (in query): integer pretty (in query): string resourceVersion (in query): string resourceVersionMatch (in query): string timeoutSeconds (in query): integer watch (in query): boolean 200 (
401: Unauthorized POST /api/v1/namespaces dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
202 (
401: Unauthorized PUT /api/v1/namespaces/{name} name (in path): string, required name of the Namespace dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PUT /api/v1/namespaces/{name}/finalize name (in path): string, required name of the Namespace dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PUT /api/v1/namespaces/{name}/status name (in path): string, required name of the Namespace dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /api/v1/namespaces/{name} name (in path): string, required name of the Namespace dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
201 (
401: Unauthorized PATCH /api/v1/namespaces/{name}/status name (in path): string, required name of the Namespace dryRun (in query): string fieldManager (in query): string fieldValidation (in query): string force (in query): boolean pretty (in query): string 200 (
get
read status of the specified NamespaceHTTP Request
Parameters
Response
list
list or watch objects of kind NamespaceHTTP Request
Parameters
Response
create
create a NamespaceHTTP Request
Parameters
Response
update
replace the specified NamespaceHTTP Request
Parameters
Response
update
replace finalize of the specified NamespaceHTTP Request
Parameters
Response
update
replace status of the specified NamespaceHTTP Request
Parameters
Response
patch
partially update the specified NamespaceHTTP Request
Parameters
Response
patch
partially update status of the specified NamespaceHTTP Request
Parameters
Response