diff --git a/chart/templates/generator-application.yaml b/chart/templates/generator-application.yaml index afea7d7..db765c8 100644 --- a/chart/templates/generator-application.yaml +++ b/chart/templates/generator-application.yaml @@ -8,6 +8,11 @@ spec: entrypoint: init templates: - name: init + outputs: + parameters: + - name: "ingress" + valueFrom: + parameter: '{{`{{steps.create-ingress.outputs.host}}`}}{{`{{steps.create-ingress.outputs.path}}`}}' steps: - - name: get-last-snapshot template: get-last-snapshot @@ -211,6 +216,14 @@ spec: parameters: - name: pvc-name - name: service-name + outputs: + parameters: + - name: host + valueFrom: + jsonPath: '{{`{.spec.rules[0].host}`}}' + - name: path + valueFrom: + jsonPath: '{{`{.spec.rules[0].http.paths[0].path}`}}' resource: action: create setOwnerReference: true diff --git a/tunnel/aldaas.sh b/tunnel/aldaas.sh index 52ffcf3..393ad26 100644 --- a/tunnel/aldaas.sh +++ b/tunnel/aldaas.sh @@ -1,5 +1,4 @@ #!/bin/sh -ALDAAS_NAMESPACE=aldaas ALDAAS_AWT=aldaas-chart -argo -n $ALDAAS_NAMESPACE submit --from workflowtemplate/$ALDAAS_AWT --watch \ No newline at end of file +argo submit --from workflowtemplate/$ALDAAS_AWT --watch \ No newline at end of file