Developer Conventions is a set of conventions that enable your workloads to support live-update and debug operations in Tanzu Application Platform (commonly known as TAP).
Developer Conventions modifies your workload to enable live updates in either of the following situations:
--live-update=true
. For more information about how to deploy a workload with the CLI, see Create or update a workload.Tanzu: Live Update Start
option through the Tanzu Developer Tools for VS Code extension. For more information about live updating with the extension, see Overview of Tanzu Developer Tools for Visual Studio Code.When either of the preceding actions take place, the convention behaves as follows:
apps.tanzu.vmware.com/live-update=true
annotation on a PodTemplateSpec associated with a workload.minScale
& maxScale
such that the minimum and maximum number of pods is 1. This ensures the eventual running pod is not scaled down to 0 during a live update session.After these changes are made, you can use the Tanzu Dev Tools extension or the Tilt CLI to make live update changes to source code directly on the cluster.
Developer Conventions modifies your workload to enable debugging in either of the following situations:
--debug=true
. For more information about how to deploy a workload with the CLI, see Create or update a workload.Tanzu Java Debug Start
option through the Tanzu Developer Tools for VS Code extension. For more information about debugging with the extension, see Overview of Tanzu Developer Tools for Visual Studio Code.When either of the preceding actions take place, the convention behaves as follows:
apps.tanzu.vmware.com/debug=true
annotation on a PodTemplateSpec associated with a workload.debug-8
or debug-9
labels on the image configuration’s bill of materials (BOM).minScale
& maxScale
such that the minimum and maximum number of pods is 1. This ensures the eventual running pod won’t be scaled down to 0 during a debug session.After these changes are made, you can use the Tanzu Dev Tools extension or other CLI-based debuggers to debug your workload directly on the cluster.
NoteCurrently, Developer Conventions only supports debug operations for Java applications.