From cae54a511fd2de283044e48cfd60a9a566e7028e Mon Sep 17 00:00:00 2001 From: David Parker Date: Mon, 22 Jun 2026 13:11:41 +0100 Subject: [PATCH] [patch] Updates to support tekton.dev/v1 API --- .../devops/templates/pipelinerun-aiservice-upgrade.yml.j2 | 5 +++-- src/mas/devops/templates/pipelinerun-backup.yml.j2 | 5 +++-- src/mas/devops/templates/pipelinerun-install.yml.j2 | 7 ++++--- src/mas/devops/templates/pipelinerun-restore.yml.j2 | 5 +++-- src/mas/devops/templates/pipelinerun-uninstall.yml.j2 | 5 +++-- src/mas/devops/templates/pipelinerun-update.yml.j2 | 5 +++-- src/mas/devops/templates/pipelinerun-upgrade.yml.j2 | 5 +++-- 7 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/mas/devops/templates/pipelinerun-aiservice-upgrade.yml.j2 b/src/mas/devops/templates/pipelinerun-aiservice-upgrade.yml.j2 index 47bfe1d6..4b5bc70c 100644 --- a/src/mas/devops/templates/pipelinerun-aiservice-upgrade.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-aiservice-upgrade.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: "{{ aiservice_instance_id }}-upgrade-{{ timestamp }}" @@ -9,7 +9,8 @@ spec: pipelineRef: name: aiservice-upgrade - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0" diff --git a/src/mas/devops/templates/pipelinerun-backup.yml.j2 b/src/mas/devops/templates/pipelinerun-backup.yml.j2 index e92b6103..d5386710 100644 --- a/src/mas/devops/templates/pipelinerun-backup.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-backup.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: "{{ mas_instance_id }}-backup-{{ backup_version }}-{{ timestamp }}" @@ -8,7 +8,8 @@ metadata: spec: pipelineRef: name: mas-backup - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0" workspaces: diff --git a/src/mas/devops/templates/pipelinerun-install.yml.j2 b/src/mas/devops/templates/pipelinerun-install.yml.j2 index b3e4fce3..5ebb7805 100644 --- a/src/mas/devops/templates/pipelinerun-install.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-install.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: {%- if mas_instance_id is defined and mas_instance_id != "" %} @@ -13,7 +13,8 @@ spec: pipelineRef: name: mas-install - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0" @@ -116,7 +117,7 @@ spec: value: "{{ db2_type }}" - name: db2_timezone value: "{{ db2_timezone }}" - {%- if db2_action_facilities == "install" %} + {%- if db2_action_facilities == "install" %} - name: db2_facilities_timezone value: "{{ db2_facilities_timezone }}" {%- endif %} diff --git a/src/mas/devops/templates/pipelinerun-restore.yml.j2 b/src/mas/devops/templates/pipelinerun-restore.yml.j2 index 39f73a3b..bf5ae6fa 100644 --- a/src/mas/devops/templates/pipelinerun-restore.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-restore.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: "{{ mas_instance_id }}-restore-{{ restore_version }}-{{ timestamp }}" @@ -8,7 +8,8 @@ metadata: spec: pipelineRef: name: mas-restore - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0" workspaces: diff --git a/src/mas/devops/templates/pipelinerun-uninstall.yml.j2 b/src/mas/devops/templates/pipelinerun-uninstall.yml.j2 index d1a49985..6fa3189f 100644 --- a/src/mas/devops/templates/pipelinerun-uninstall.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-uninstall.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: "{{mas_instance_id}}-uninstall-{{ timestamp }}" @@ -9,7 +9,8 @@ spec: pipelineRef: name: mas-uninstall - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0" diff --git a/src/mas/devops/templates/pipelinerun-update.yml.j2 b/src/mas/devops/templates/pipelinerun-update.yml.j2 index 6ffdce28..1370379e 100644 --- a/src/mas/devops/templates/pipelinerun-update.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-update.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: "mas-update-{{ timestamp }}" @@ -9,7 +9,8 @@ spec: pipelineRef: name: mas-update - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0" diff --git a/src/mas/devops/templates/pipelinerun-upgrade.yml.j2 b/src/mas/devops/templates/pipelinerun-upgrade.yml.j2 index 0d7b8af4..86cf6726 100644 --- a/src/mas/devops/templates/pipelinerun-upgrade.yml.j2 +++ b/src/mas/devops/templates/pipelinerun-upgrade.yml.j2 @@ -1,5 +1,5 @@ --- -apiVersion: tekton.dev/v1beta1 +apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: "{{ mas_instance_id }}-upgrade-{{ timestamp }}" @@ -9,7 +9,8 @@ spec: pipelineRef: name: mas-upgrade - serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" + taskRunTemplate: + serviceAccountName: "{{ service_account_name | default('pipeline', True) }}" timeouts: pipeline: "0"