Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ k8s_custom_deploy(

k8s_resource('tanzu-java-web-app', port_forwards=["8080:8080"],
extra_pod_selectors=[{'serving.knative.dev/service': 'tanzu-java-web-app'}])
allow_k8s_contexts('kind-cluster')
27 changes: 27 additions & 0 deletions accelerator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,32 @@ accelerator:
label: Prefix for the container image repository
defaultValue: dev.local
required: true
- name: iterateClusterContext
inputType: text
label: Allowed Kubernetes context for iterative development
defaultValue: kind-cluster
required: true
- name: developerNamespace
inputType: text
label: Developer namespace on Kubernetes cluster
defaultValue: default
required: true
- name: codeRepositoryUrl
inputType: text
label: Eventual git repository origin
defaultValue: https://github.com/sample-accelerators/tanzu-java-web-app
required: true

engine:
merge:
- include: [ "**/*" ]
exclude: [ "config/*.yaml", "Tiltfile", "README.md", "catalog/*.yaml", ".github/workflows/**" ]
- include: [ "config/*.yaml", "Tiltfile" ]
chain:
- type: ReplaceText
substitutions:
- text: https://github.com/sample-accelerators/tanzu-java-web-app
with: "#codeRepositoryUrl"
- type: ReplaceText
substitutions:
- text: tanzu-java-web-app
Expand All @@ -29,6 +48,14 @@ engine:
substitutions:
- text: your-registry.io/project
with: "#repositoryPrefix"
- type: ReplaceText
substitutions:
- text: kind-cluster
with: "#iterateClusterContext"
- type: ReplaceText
substitutions:
- text: "'default'"
with: "'''' + #developerNamespace + ''''"
- include: [ "README.md" ]
chain:
- type: ReplaceText
Expand Down