This topic tells you about the Tanzu Apps CLI cluster-supply-chain
command.
The cluster-supply-chain
command provides details about the cluster supply chain installed in the target cluster.
The following aliases are supported:
csc
cluster-supply-chains
clustersupplychains
Run the following command to view more detailed information about the selectors and conditions that must be met for a workload to be selected by a certain supply chain:
tanzu apps cluster-supply-chain get SUPPLYCHAIN-NAME
The default view displays the name of the supply chain, whether it is ready or not, and its age.
For example:
tanzu apps clustersupplychain list
NAME READY AGE
basic-image-to-url Ready 11d
source-to-url Ready 11d
To view details: "tanzu apps cluster-supply-chain get <name>"
The tanzu apps cluster-supply-chain get
command gets detailed information about the cluster supply chain.
The default view displays the status of the supply chain, and the selectors that a workload must match so it is taken by that supply chain.
For example:
tanzu apps cluster-supply-chain get source-to-url
---
# source-to-url: Ready
---
Supply Chain Selectors
TYPE KEY OPERATOR VALUE
expressions apps.tanzu.vmware.com/workload-type In web
expressions apps.tanzu.vmware.com/workload-type In server
expressions apps.tanzu.vmware.com/workload-type In worker
This output indicates the attributes a workload needs to be selected by the source-to-url
supply chain on the target cluster. For example:
--type
flag value of web
, server
, or worker
.workload.yaml
, the Workload.metadata.labels
label apps.tanzu.vmware.com/workload-type
must exist and have a value of web
, server
, or worker
.Another example is the testing/scanning
pipeline, which has the tekton
steps for testing and the scanning steps.
---
# source-test-scan-to-url: Ready
---
Supply Chain Selectors
TYPE KEY OPERATOR VALUE
labels apps.tanzu.vmware.com/has-tests true
expressions apps.tanzu.vmware.com/workload-type In web
expressions apps.tanzu.vmware.com/workload-type In server
expressions apps.tanzu.vmware.com/workload-type In worker
In this case, the workload must have both labels apps.tanzu.vmware.com/has-tests: true
and apps.tanzu.vmware.com/workload-type
set up as web
, server
, or worker
to be selected for the supply chain.