Skip to content

Commit cae54a5

Browse files
committed
[patch] Updates to support tekton.dev/v1 API
1 parent e4d0b61 commit cae54a5

7 files changed

Lines changed: 22 additions & 15 deletions

src/mas/devops/templates/pipelinerun-aiservice-upgrade.yml.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
name: "{{ aiservice_instance_id }}-upgrade-{{ timestamp }}"
@@ -9,7 +9,8 @@ spec:
99
pipelineRef:
1010
name: aiservice-upgrade
1111

12-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
12+
taskRunTemplate:
13+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1314
timeouts:
1415
pipeline: "0"
1516

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
name: "{{ mas_instance_id }}-backup-{{ backup_version }}-{{ timestamp }}"
@@ -8,7 +8,8 @@ metadata:
88
spec:
99
pipelineRef:
1010
name: mas-backup
11-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
11+
taskRunTemplate:
12+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1213
timeouts:
1314
pipeline: "0"
1415
workspaces:

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
{%- if mas_instance_id is defined and mas_instance_id != "" %}
@@ -13,7 +13,8 @@ spec:
1313
pipelineRef:
1414
name: mas-install
1515

16-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
16+
taskRunTemplate:
17+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1718
timeouts:
1819
pipeline: "0"
1920

@@ -116,7 +117,7 @@ spec:
116117
value: "{{ db2_type }}"
117118
- name: db2_timezone
118119
value: "{{ db2_timezone }}"
119-
{%- if db2_action_facilities == "install" %}
120+
{%- if db2_action_facilities == "install" %}
120121
- name: db2_facilities_timezone
121122
value: "{{ db2_facilities_timezone }}"
122123
{%- endif %}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
name: "{{ mas_instance_id }}-restore-{{ restore_version }}-{{ timestamp }}"
@@ -8,7 +8,8 @@ metadata:
88
spec:
99
pipelineRef:
1010
name: mas-restore
11-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
11+
taskRunTemplate:
12+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1213
timeouts:
1314
pipeline: "0"
1415
workspaces:

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
name: "{{mas_instance_id}}-uninstall-{{ timestamp }}"
@@ -9,7 +9,8 @@ spec:
99
pipelineRef:
1010
name: mas-uninstall
1111

12-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
12+
taskRunTemplate:
13+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1314
timeouts:
1415
pipeline: "0"
1516

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
name: "mas-update-{{ timestamp }}"
@@ -9,7 +9,8 @@ spec:
99
pipelineRef:
1010
name: mas-update
1111

12-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
12+
taskRunTemplate:
13+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1314
timeouts:
1415
pipeline: "0"
1516

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: tekton.dev/v1beta1
2+
apiVersion: tekton.dev/v1
33
kind: PipelineRun
44
metadata:
55
name: "{{ mas_instance_id }}-upgrade-{{ timestamp }}"
@@ -9,7 +9,8 @@ spec:
99
pipelineRef:
1010
name: mas-upgrade
1111

12-
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
12+
taskRunTemplate:
13+
serviceAccountName: "{{ service_account_name | default('pipeline', True) }}"
1314
timeouts:
1415
pipeline: "0"
1516

0 commit comments

Comments
 (0)