Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename task_type to type #125

Merged
merged 1 commit into from
Dec 6, 2022
Merged
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
18 changes: 9 additions & 9 deletions app_serving/serve-java-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ spec:
name: tks-proto
arguments:
parameters:
# Param "task_type"
# Param "type"
# options: build/deploy/all
- name: task_type
- name: type
value: "all"
- name: target_cluster_id
value: "C011b88fa"
Expand Down Expand Up @@ -105,7 +105,7 @@ spec:
- name: main
steps:
- - name: notify-build-start
when: "{{workflow.parameters.task_type}} != 'deploy'"
when: "{{workflow.parameters.type}} != 'deploy'"
templateRef:
name: update-tks-asa-status
template: updateTksAsaStatus
Expand All @@ -118,10 +118,10 @@ spec:
- name: output
value: ""
- - name: build-image
when: "{{workflow.parameters.task_type}} != 'deploy'"
when: "{{workflow.parameters.type}} != 'deploy'"
template: build-image
- - name: notify-build-success
when: "{{workflow.parameters.task_type}} != 'deploy'"
when: "{{workflow.parameters.type}} != 'deploy'"
templateRef:
name: update-tks-asa-status
template: updateTksAsaStatus
Expand All @@ -134,7 +134,7 @@ spec:
- name: output
value: "{{steps.build-image.outputs.parameters.build_output}}"
- - name: notify-deploy-start
when: "{{workflow.parameters.task_type}} != 'build'"
when: "{{workflow.parameters.type}} != 'build'"
templateRef:
name: update-tks-asa-status
template: updateTksAsaStatus
Expand All @@ -147,10 +147,10 @@ spec:
- name: output
value: ""
- - name: deploy-app
when: "{{workflow.parameters.task_type}} != 'build'"
when: "{{workflow.parameters.type}} != 'build'"
template: deploy-app
- - name: notify-deploy-success
when: "{{workflow.parameters.task_type}} != 'build'"
when: "{{workflow.parameters.type}} != 'build'"
templateRef:
name: update-tks-asa-status
template: updateTksAsaStatus
Expand All @@ -163,7 +163,7 @@ spec:
- name: output
value: "{{steps.deploy-app.outputs.parameters.deploy_output}}"
- - name: update-endpoint-url
when: "{{workflow.parameters.task_type}} != 'build'"
when: "{{workflow.parameters.type}} != 'build'"
templateRef:
name: update-tks-asa-endpoint
template: updateTksAsaEndpoint
Expand Down