diff --git a/Tiltfile b/Tiltfile index c5f2b55f..dd9c2725 100644 --- a/Tiltfile +++ b/Tiltfile @@ -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') diff --git a/accelerator.yaml b/accelerator.yaml index 77b4bb4f..12f7ee78 100644 --- a/accelerator.yaml +++ b/accelerator.yaml @@ -14,6 +14,21 @@ 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: @@ -21,6 +36,10 @@ engine: 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 @@ -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