Users use tanzu package installed update tap -p tap.tanzu.vmware.com -v NEW_VERSION --values-file tap-values.yaml -n tap-install command to upgrade the packages in TAP (Tanzu Application Platform). However, this command will not be able to upgrade the self-managed packages. For instance, spring-cloud-gateway is one of the self-managed packages and you would observe the below error messages when failing to upgrade this package.
$ tanzu package installed list -n tap-install
NAME PACKAGE-NAME PACKAGE-VERSION STATUS
......
spring-cloud-gateway spring-cloud-gateway.tanzu.vmware.com 2.1.8 Reconcile failed
......
$ kubectl describe packageinstall spring-cloud-gateway -n tap-install
......
Status:
Conditions:
Message: Expected to find at least one version, but did not (details: all=2 -> after-prereleases-filter=2 -> after-kapp-controller-version-check=2 -> after-constraints-filter=0)
Status: True
Type: ReconcileFailed
Friendly Description: Reconcile failed: Expected to find at least one version, but did not (details: a...
Last Attempted Version: 2.1.8
Observed Generation: 1
Version: 2.1.8
Events: <none>
Please upgrade the self-managed package separately using the below procedure:
1. Run tanzu package available list -A or tanzu package available list spring-cloud-gateway.tanzu.vmware.com --namespace tap-install to retrieve the upgradable version.
2. Run tanzu package install INSTALLED-PACKAGE-NAME --package AVAILABLE-PACKAGE-NAME --version AVAILABLE-PACKAGE-VERSION [FLAGS] to upgrade the self-managed package.
3. Run tanzu package installed list -n tap-install to confirm the package was upgraded successfully.