Skip to content

Commit ae25b9e

Browse files
author
Bhautik Vala
committed
[patch] Refactor mas-install PipelineRun Template
1 parent e9be374 commit ae25b9e

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

src/mas/devops/templates/pipelinerun-install.yml.j2

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: tekton.dev/v1beta1
33
kind: PipelineRun
44
metadata:
5-
{%- if applicationType is defined and applicationType == "mas" %}
5+
{%- if mas_instance_id is defined and mas_instance_id != "" %}
66
name: "{{mas_instance_id}}-install-{{ timestamp }}"
77
{%- else %}
88
name: "{{aiservice_instance_id}}-install-{{ timestamp }}"
@@ -312,20 +312,6 @@ spec:
312312
- name: sls_action
313313
value: "{{ sls_action }}"
314314
{%- endif %}
315-
{%- if aiservice_sls_url is defined and aiservice_sls_url != "" %}
316-
317-
# Remote SLS
318-
# -------------------------------------------------------------------------
319-
- name: aiservice_sls_secret_name
320-
value: "{{ aiservice_sls_secret_name }}"
321-
- name: aiservice_sls_registration_key
322-
value: "{{ aiservice_sls_registration_key }}"
323-
- name: aiservice_sls_url
324-
value: "{{ aiservice_sls_url }}"
325-
- name: aiservice_sls_ca_cert
326-
value: "{{ aiservice_sls_ca_cert }}"
327-
{%- endif %}
328-
329315

330316
# Dependencies - DRO (Required)
331317
# -------------------------------------------------------------------------

0 commit comments

Comments
 (0)