diff --git a/image/cli/masfvt/fvt-aiservice.yml b/image/cli/masfvt/fvt-aiservice.yml index 31dbcece1a..d22532149e 100644 --- a/image/cli/masfvt/fvt-aiservice.yml +++ b/image/cli/masfvt/fvt-aiservice.yml @@ -19,6 +19,7 @@ devops_build_number: "{{ lookup('env', 'DEVOPS_BUILD_NUMBER') | default('0', True) }}" pipelinerun_name: "{{ lookup('env', 'PIPELINERUN_NAME') | default('aiservice-fvt', True) }}-{{ devops_build_number }}" pipelinerun_namespace: "{{ lookup('env', 'PIPELINERUN_NAMESPACE') | default('aiservice-' ~ aiservice_instance_id ~ '-pipelines', True) }}" + service_account_name: "{{ lookup('env', 'SERVICE_ACCOUNT_NAME') | default('pipeline', True) }}" tasks: - name: "Debug" debug: diff --git a/tekton/src/tasks/fvt-launcher/aiservice-launchfvt.yml.j2 b/tekton/src/tasks/fvt-launcher/aiservice-launchfvt.yml.j2 index 56ba7b34d6..3026b78fa0 100644 --- a/tekton/src/tasks/fvt-launcher/aiservice-launchfvt.yml.j2 +++ b/tekton/src/tasks/fvt-launcher/aiservice-launchfvt.yml.j2 @@ -63,6 +63,13 @@ spec: name: mas-fvt key: FVT_ARTIFACTORY_TOKEN optional: false + # Service Account for FVT Pipeline (supports RBAC mode) + - name: SERVICE_ACCOUNT_NAME + valueFrom: + secretKeyRef: + name: mas-devops + key: SERVICE_ACCOUNT_NAME + optional: true # ----------------------------------------------------------------------- # Framework Information