The Out of the Box Basic Supply Chain package introduces a variation of the OOTB Basic supply chains that output Carvel Packages. Carvel packages enable configuring for each runtime environment. This feature is experimental and is used alongside the existing Out of the Box Basic workflow.
This experimental feature has the following limits:
- Only the Out of the Box Basic Supply Chain package is supported. The Testing and Scanning supply chains are not supported.
- Only workloads of type
server
are supported.
This section describes operator tasks for installing Carvel package.
To install Carvel package, you need access to a GitOps repository and credentials. See GitOps versus RegistryOps.
In tap-values
, configure the Out of the Box Basic Supply Chain package with the following parameters:
-
(Required) Enable the Carvel Package workflow.
ootb_supply_chain_basic: carvel_package: workflow_enabled: true
-
(Optional) Set a GitOps subpath. This verifies the path in your GitOps repository to which Carvel Packages are written. See Carvel Package template.
ootb_supply_chain_basic: carvel_package: workflow_enabled: true gitops_subpath: path/to/my/dir
-
(Optional) Set a name suffix. This verifies the suffix of the name of the Carvel Package. See Carvel Package template.
ootb_supply_chain_basic: carvel_package: workflow_enabled: true gitops_subpath: path/to/my/dir name_suffix: vmware.com
-
In
tap-values
, configure the Out of the Box Basic Supply Chain package with your GitOps parameters, as described in GitOps versus RegistryOps. -
Install the Out of the Box Basic Supply Chain package.
This section describes developer tasks for installing Carvel package.
To install Carvel package, your operator must enable the Carvel Package workflow for the Out of the Box Basic Supply Chain package.
To use the Carvel Package workflow, you must add the label apps.tanzu.vmware.com/carvel-package-workflow=true
to your workload.
Use the following Tanzu CLI flag:
--label apps.tanzu.vmware.com/carvel-package-workflow=true
For example:
tanzu apps workload create tanzu-java-web-app \
--app tanzu-java-web-app \
--type server \
--label apps.tanzu.vmware.com/carvel-package-workflow=true \
--image IMAGE
Expect to see the following output:
Create workload:
1 + |---
2 + |apiVersion: carto.run/v1alpha1
3 + |kind: Workload
4 + |metadata:
5 + | labels:
6 + | app.kubernetes.io/part-of: tanzu-java-web-app
7 + | apps.tanzu.vmware.com/carvel-package-workflow: "true"
8 + | apps.tanzu.vmware.com/workload-type: server
9 + | name: tanzu-java-web-app
10 + | namespace: default
11 + |spec:
12 + | image: IMAGE
To override two parameters set by the operator:
-
(Optional) Set a GitOps subpath. This verifies the path in your GitOps repository to which Carvel Packages are written. See Carvel Package template.
Set this parameter by modifying
workload.spec.params.carvel_package_gitops_subpath
. With the Tanzu CLI, you can do so by using the following flag:--param carvel_package_gitops_subpath=path/to/my/dir
-
(Optional) Set a name suffix. This verifies the suffix of the name of the Carvel Package. See Carvel Package template.
Set this parameter by modifying
workload.spec.params.carvel_package_name_suffix
. With the Tanzu CLI, you can do so by using the following flag:--param carvel_package_name_suffix=vmware.com
Note (Optional) You can override GitOps parameters as described in GitOps versus RegistryOps.