diff --git a/charts/pipelines-library/templates/resources/serviceaccount-tekton.yaml b/charts/pipelines-library/templates/resources/serviceaccount-tekton.yaml index fca6730d..f8a1c42a 100644 --- a/charts/pipelines-library/templates/resources/serviceaccount-tekton.yaml +++ b/charts/pipelines-library/templates/resources/serviceaccount-tekton.yaml @@ -8,6 +8,11 @@ metadata: annotations: eks.amazonaws.com/role-arn: {{ .Values.kaniko.roleArn }} {{ end }} +# -- Define secrets which will be mounted to service account. This allow signed image while push to Harbor +{{- if eq .Values.global.dockerRegistry.type "harbor" }} +secrets: +- name: kaniko-docker-config +{{- end }} --- {{- if eq .Values.global.platform "openshift" -}} apiVersion: v1