Use this action to create a Kubernetes namespace that allows you to partition a Kubernetes cluster into different scopes.
All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The namespace name. |
|
Boolean |
No |
Whether to sanitize the namespace name.
Default is |
|
String |
Yes |
The YAML object of labels used to create the namespace. |
Usage examples
In your YAML file, add:
- id: createns name: Create Kubernetes namespace uses: cloudbees-io/create-k8s-namespace@v1 with: name: 'ns_name' sanitize-name: '' labels: | example.org/mylabel: xyz
Usage example with Helm
Create a Kubernetes namespace, and then specify that namespace to install a Helm chart into the scoped cluster.
In your YAML file, add:
For more information, refer to CloudBees action: Install a Helm chart. namespace
is the name of the namespace resource.