Skip to content

Tanzu Accelerator for generating Java Spring-Boot web applications displaying Kubernetes info.

License

Notifications You must be signed in to change notification settings

GuyBalmas/tanzu-application-accelerator

Repository files navigation

Tanzu Java Web Application Accelerator

This accelerator generates Java web application projects, configured for Tanzu Application Platform.

Features:

  1. Supports Unit-Testing using TAP's OOTB source-test-scan-to-url supply chain.
  2. Supports automatic API registeration in API Catalog for application's runtime generated API.
  3. Supports templating catalog-info for application regitration in Service Catalog including listing provided API's.
  4. Optional: Supports live-update and live-debug.
  5. Optional: Supports cluster choice (local only, all contexts or custom cluster context).

Apply Fragments onto TAP

1. List currently installed fragments

tanzu accelerator fragment list

2. Create a YAML manifest for the fragment

apiVersion: accelerator.apps.tanzu.vmware.com/v1alpha1
kind: Fragment
metadata:
  name: <fragment-name>
  namespace: accelerator-system
spec:
  displayName: <display-name>
  git:
    ref:
      branch: <branch>
    url: https://github.com/GuyBalmas/tanzu-application-accelerator.git
    subPath: fragments/<fragment-folder>

3. Apply

tanzu accelerator apply -f <YAML-file-path>

# apply this accelerator's fragments 
tanzu accelerator apply -f ./fragments/manifests/enable-live-update-fragment.yaml
tanzu accelerator apply -f ./fragments/manifests/java-rename-app-fragment.yaml
tanzu accelerator apply -f ./fragments/manifests/java-rewrite-package-fragment.yaml
tanzu accelerator apply -f ./fragments/manifests/jvm-version-fragment.yaml
tanzu accelerator apply -f ./fragments/manifests/template-catalog-info-fragment.yaml
tanzu accelerator apply -f ./fragments/manifests/template-workload-fragment.yaml
tanzu accelerator apply -f ./fragments/manifests/readme-override-app-name-fragment.yaml

# delete if needed
tanzu accelerator delete -f <YAML-file-path>
# or
tanzu accelerator fragment delete <fragment-name>

Apply Accelerator onto TAP

1. Create a YAML manifest for the Accelerator

apiVersion: accelerator.apps.tanzu.vmware.com/v1alpha1
kind: Accelerator
metadata:
  name: <accelerator-name>
  namespace: accelerator-system
spec:
  git:
    url: <git-repo-url>
    ref:
      branch: <git-branch>

2. Apply

kubectl apply -f <accelerator-manifest-path>

# for example
kubectl apply -f fragments/manifests/accelerator-manifest.yaml

3. Reconcile the accelerator

tanzu accelerator update <accelerator-name> --reconcile

# for example
tanzu accelerator update my-simple-acc --reconcile

About

Tanzu Accelerator for generating Java Spring-Boot web applications displaying Kubernetes info.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published