You can customize a package configuration that is not exposed through data values by using annotations and ytt overlays.
You can customize a package that was installed manually or that was installed by using a Tanzu Application Platform profile.
To customize a package that was installed manually:
-
Create a
secret.ymlfile with aSecretthat contains your ytt overlay. For example:apiVersion: v1 kind: Secret metadata: name: tap-overlay namespace: tap-install stringData: custom-package-overlay.yml: | CUSTOM-OVERLAY
For more information about ytt overlays, see the Carvel documentation.
-
Apply the
Secretto your cluster by running:kubectl apply -f secret.yml -
Update your
PackageInstallto include theext.packaging.carvel.dev/ytt-paths-from-secret-name.xannotation to reference your new overlaySecret. For example:apiVersion: packaging.carvel.dev/v1alpha1 kind: PackageInstall metadata: name: PACKAGE-NAME namespace: tap-install annotations: ext.packaging.carvel.dev/ytt-paths-from-secret-name: tap-overlay ...
Note You can suffix the extension annotation with
.x, wherexis a number, to apply multiple overlays. For more information, see the Carvel documentation.
To add an overlay to a package that was installed by using a Tanzu Application Platform profile:
-
Create a
Secretwith your ytt overlay. For more information about ytt overlays, see the Carvel documentation. -
Update your values file to include a
package_overlaysfield:package_overlays: - name: PACKAGE-NAME secrets: - name: SECRET-NAME
Where
PACKAGE-NAMEis the target package for the overlay. For example,tap-gui. -
Update Tanzu Application Platform by running:
tanzu package installed update tap -p tap.tanzu.vmware.com -v {{ vars.tap_version }} --values-file tap-values.yaml -n tap-install
For information about Tanzu Application Platform profiles, see Installing Tanzu Application Platform package and profiles.