To include this fragment you should add an import to the accelerator
section:
accelerator:
# ...
imports:
- name: spring-boot-postgresql
Then in your engine
section add an InvokeFragment
directive at an appropriate level.
engine:
# ...
- type: InvokeFragment
reference: spring-boot-postgresql
let:
- name: databaseName
expression: "#databaseName"
- name: databaseIntegrationTestType
expression: "'testcontainers'"
To create this fragment use:
apiVersion: accelerator.apps.tanzu.vmware.com/v1alpha1
kind: Fragment
metadata:
name: spring-boot-postgresql
namespace: accelerator-system
spec:
displayName: "Spring Boot PostgreSQL"
git:
ref:
branch: main
url: https://github.com/vmware-tanzu/application-accelerator-samples.git
subPath: fragments/spring-boot-postgresql