Install Tanzu Supply Chain manually

This topic tells you how to install Tanzu Supply Chain manually. The recommended installation method is to use a Tanzu Application Platform profile.

Caution

Tanzu Supply Chain is currently in beta and is not intended for production use. It is intended only for evaluation purposes for the next generation Supply Chain. For the current Supply Chain solution, see the Supply Chain Choreographer documentation.

To install Tanzu Supply Chain manually, you must install additional packages that are not bundled with existing installation profiles.

The following Supply Chain packages are required:

  • supply-chain.apps.tanzu.vmware.com
  • supply-chain-catalog.apps.tanzu.vmware.com
  • managed-resource-controller.apps.tanzu.vmware.com

The following component packages are required if you are authoring a supply chain:

  • source.component.apps.tanzu.vmware.com
  • conventions.component.apps.tanzu.vmware.com
  • buildpack-build.component.apps.tanzu.vmware.com
  • alm-catalog.component.apps.tanzu.vmware.com
  • git-writer.component.apps.tanzu.vmware.com
  • trivy.app-scanning.component.apps.tanzu.vmware.com

  • To install these packages, run the following script:

    export SUPPLY_CHAIN_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="supply-chain.apps.tanzu.vmware.com")].spec.version}')
    echo $SUPPLY_CHAIN_VERSION
    
    tanzu package install supply-chain \
     -p supply-chain.apps.tanzu.vmware.com \
     -v $SUPPLY_CHAIN_VERSION \
     -n tap-install
    
    export SUPPLY_CHAIN_CATALOG_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="supply-chain-catalog.apps.tanzu.vmware.com")].spec.version}')
    echo $SUPPLY_CHAIN_CATALOG_VERSION
    
    tanzu package install supply-chain-catalog \
     -p supply-chain-catalog.apps.tanzu.vmware.com \
     -v $SUPPLY_CHAIN_CATALOG_VERSION \
     -n tap-install
    
    export MANAGED_RESOURCE_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="managed-resource-controller.apps.tanzu.vmware.com")].spec.version}')
    echo $MANAGED_RESOURCE_VERSION
    
    tanzu package install managed-resource-controller \
     -p managed-resource-controller.apps.tanzu.vmware.com \
     -v $MANAGED_RESOURCE_VERSION \
     -n tap-install
    
    export SOURCE_COMPONENT_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="source.component.apps.tanzu.vmware.com")].spec.version}')
    echo $SOURCE_COMPONENT_VERSION
    
    tanzu package install source-component \
     -p source.component.apps.tanzu.vmware.com \
     -v $SOURCE_COMPONENT_VERSION \
     -n tap-install
    
    export CONVENTIONS_COMPONENT_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="conventions.component.apps.tanzu.vmware.com")].spec.version}')
    echo $CONVENTIONS_COMPONENT_VERSION
    
    tanzu package install conventions-component \
     -p conventions.component.apps.tanzu.vmware.com \
     -v $CONVENTIONS_COMPONENT_VERSION \
     -n tap-install
    
    export BUILDPACK_COMPONENT_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="buildpack-build.component.apps.tanzu.vmware.com")].spec.version}')
    echo $BUILDPACK_COMPONENT_VERSION
    
    tanzu package install buildpack-build-component \
     -p buildpack-build.component.apps.tanzu.vmware.com \
     -v $BUILDPACK_COMPONENT_VERSION \
     -n tap-install
    
    export ALM_CATALOG_COMPONENT_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="alm-catalog.component.apps.tanzu.vmware.com")].spec.version}')
    echo $ALM_CATALOG_COMPONENT_VERSION
    
    tanzu package install alm-catalog-component \
     -p alm-catalog.component.apps.tanzu.vmware.com \
     -v $ALM_CATALOG_COMPONENT_VERSION \
     -n tap-install
    
    export GIT_WRITER_COMPONENT_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="git-writer.component.apps.tanzu.vmware.com")].spec.version}')
    echo $GIT_WRITER_COMPONENT_VERSION
    
    tanzu package install git-writer-component \
     -p git-writer.component.apps.tanzu.vmware.com \
     -v $GIT_WRITER_COMPONENT_VERSION \
     -n tap-install
    
    export TRIVY_SCANNING_COMPONENT_VERSION=$(kubectl get package -n tap-install -o=jsonpath='{.items[?(@.spec.refName=="trivy.app-scanning.component.apps.tanzu.vmware.com")].spec.version}')
    echo $TRIVY_SCANNING_COMPONENT_VERSION
    
    tanzu package install trivy-app-scanning-component \
     -p trivy.app-scanning.component.apps.tanzu.vmware.com \
     -v $TRIVY_SCANNING_COMPONENT_VERSION \
     -n tap-install
    
  • Confirm that the required packages were installed and reconciled by running:

    kubectl get pkgi -A
    

    Example output:

    NAMESPACE     NAME                               PACKAGE NAME                                          PACKAGE VERSION                       DESCRIPTION           AGE
    tap-install   alm-catalog-component              alm-catalog.component.apps.tanzu.vmware.com           0.1.4                                 Reconcile succeeded   15d
    ...
    tap-install   buildpack-build-component          buildpack-build.component.apps.tanzu.vmware.com       0.0.2                                 Reconcile succeeded   15d
    ...
    tap-install   conventions-component              conventions.component.apps.tanzu.vmware.com           0.0.3                                 Reconcile succeeded   15d
    ...
    tap-install   git-writer-component               git-writer.component.apps.tanzu.vmware.com            0.1.3                                 Reconcile succeeded   15d
    ...
    tap-install   managed-resource-controller        managed-resource-controller.apps.tanzu.vmware.com     0.1.2                                 Reconcile succeeded   15d
    ...
    tap-install   namespace-provisioner              namespace-provisioner.apps.tanzu.vmware.com           0.6.2                                 Reconcile succeeded   15d
    ...
    tap-install   source-component                   source.component.apps.tanzu.vmware.com                0.0.1                                 Reconcile succeeded   15d
    ...
    tap-install   supply-chain                       supply-chain.apps.tanzu.vmware.com                    0.1.16                                Reconcile succeeded   15d
    tap-install   supply-chain-catalog               supply-chain-catalog.apps.tanzu.vmware.com            0.1.1                                 Reconcile succeeded   15d
    ...
    tap-install   trivy-app-scanning-component       trivy.app-scanning.component.apps.tanzu.vmware.com    0.0.1-alpha.build.40376886+b5f4e614   Reconcile succeeded   15d
    ...
    
check-circle-line exclamation-circle-line close-line
Scroll to top icon