From 34271224954d722f22c8a251f1054e4c2a998900 Mon Sep 17 00:00:00 2001 From: Negash Date: Fri, 29 Dec 2023 13:24:32 +0000 Subject: [PATCH] Add outputs --- chart/templates/generator-application.yaml | 13 +++++++++++++ tunnel/aldaas.sh | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) 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