CloudBees container and Kubernetes deployment actions provide inputs for packaging, publishing, installing, and managing Helm charts, and for creating and configuring Kubernetes resources. Use this reference alongside Deploy with Helm and Deploy to Kubernetes.
Helm actions
Helm actions package, publish, install, and uninstall charts in OCI-compatible registries and Kubernetes clusters.
helm-package
The cloudbees-io/helm-package action packages a Helm chart directory into a versioned TGZ archive file.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The path of the Helm chart to be packaged. |
|
String |
Yes |
The path of the packaged Helm chart. |
|
String |
Yes |
The Helm release version. |
|
String |
Yes |
The application version. |
|
Boolean |
No |
Default is |
|
Boolean |
No |
Default is |
|
String |
No |
The signing key. |
helm-push
The cloudbees-io/helm-push action publishes a packaged Helm chart to an OCI registry and registers the chart as a trackable artifact in CloudBees Unify.
Inputs
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
No |
The name of the artifact, used when registering the build artifact in CloudBees Unify. If not provided, the artifact name defaults to the name of the chart. |
|
String |
Yes |
The path of the Helm chart package to be published. |
|
String |
No |
The commit ID from the source repository, used when registering the build artifact in CloudBees Unify.
Default is |
|
String |
No |
The component ID associated with the artifact.
If not provided, the artifact is registered with the component of the current workflow run.
Default is |
|
String |
No |
The ref or branch of the source repository, used when registering the build artifact in CloudBees Unify.
Default is |
|
String |
Yes |
The URL of the published Helm chart package. |
|
String |
No |
The clone URL of the source repository, used when registering the build artifact in CloudBees Unify.
Default is |
helm-install
The cloudbees-io/helm-install action installs a Helm chart into a Kubernetes cluster.
| This action does not support using Helm charts from traditional Helm repositories, because it does not expose a repository input. |
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The Helm release name. |
|
String |
Yes |
The Helm chart location, which is one of the following:
|
Kubernetes actions
Kubernetes actions create and configure namespaces, resource files, and Kustomize deployments.
create-k8s-namespace
The cloudbees-io/create-k8s-namespace action creates a namespace that partitions a Kubernetes cluster into separate scopes.
| 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. |
kubernetes-create-resource
The cloudbees-io/kubernetes-create-resource action creates or updates a Kubernetes resource file that groups multiple application resources into a single YAML file.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The path of the Kubernetes resource file to be created or updated. |
|
JSON |
No |
Kubernetes environment variables, formatted as JSON data in key/value pairs. |
|
String |
Required only if |
The path of the file that contains the environment variables. |
|
String |
No |
The namespace where the created or updated Kubernetes resource file is located. |
kustomize-deploy
The cloudbees-io/kustomize-deploy action customizes Kubernetes configurations using overlays, which modify base YAML manifests without directly editing them.
Kustomize ConfigMap literals and files are not encrypted, so store only non-confidential data with kustomize-configmap-literal and kustomize-configmap-file.
To store data that must be encrypted, use kustomize-secret-file.
|
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
Set the path to the Kustomize base directory. |
|
String |
Yes |
Set the path to the Kustomize overlay directory. |
|
JSON |
No |
Add, update, or remove Kustomize annotations.
Valid objects are |
|
JSON |
No |
Add, update, or remove Kustomize labels.
Valid objects are |
|
JSON |
No |
Refer to non-sensitive data as literals on a ConfigMap resource.
Valid value is |
|
JSON |
No |
Refer to non-sensitive data as files on a ConfigMap resource.
Valid value is |
|
JSON |
No |
Refer to sensitive data as secrets files on a Secrets resource.
Valid value is |
|
JSON |
No |
Specify build information options in Kustomize labels and annotations.
Valid options are |
|
JSON |
No |
Set container image names, tags, and/or digests without creating patches.
Valid options are |
|
String |
No |
Add a prefix to names in defined YAML files. |
|
String |
No |
Add a suffix to names in defined YAML files. The suffix is appended before the content hash if the resource type is ConfigMap or Secret. |
|
String |
No |
Add a namespace, or override an existing namespace, on a resource. |
|
JSON |
No |
Set the number of replicas for a resource. |