Skip to content

Commit

Permalink
Fix ingress by workflow.name
Browse files Browse the repository at this point in the history
  • Loading branch information
Negashev committed Dec 29, 2023
1 parent d821d85 commit e5bb014
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions chart/templates/generator-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ spec:
entrypoint: init
templates:
- name: init
outputs:
parameters:
- name: "ingress"
valueFrom:
parameter: '{{`{{steps.create-ingress.outputs.parameters.host}}`}}{{`{{steps.create-ingress.outputs.parameters.path}}`}}'
steps:
- - name: get-last-snapshot
template: get-last-snapshot
Expand Down Expand Up @@ -216,14 +211,6 @@ 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
Expand All @@ -244,5 +231,5 @@ spec:
name: '{{`{{inputs.parameters.service-name}}`}}'
port:
number: {{ .Values.tunnel.port }}
path: /{{ template "aldaas.fullname" . }}/{{ .Values.tunnel.token }}/{{`{{inputs.parameters.service-name}}`}}
path: /{{ template "aldaas.fullname" . }}/{{ .Values.tunnel.token }}/{{`{{workflow.name}}`}}
pathType: Prefix

0 comments on commit e5bb014

Please sign in to comment.