tektoncd / pipeline

A cloud-native Pipeline resource.
https://tekton.dev
Apache License 2.0
8.51k stars 1.78k forks source link

How to add imagePullSecrets in a taskSpec? #2001

Closed zeromsi closed 4 years ago

dibyom commented 4 years ago

/kind question

dibyom commented 4 years ago

The serviceAccount that the taskrun uses should have access to the imagePullSecret. Here are a couple of examples: https://github.com/tektoncd/pipeline/blob/master/examples/taskruns/pull-private-image.yaml https://github.com/tektoncd/pipeline/blob/master/examples/taskruns/docker-creds.yaml

dibyom commented 4 years ago

I'm going to close this issue. Feel free to re-open if it doesn't answer your question. /close

tekton-robot commented 4 years ago

@dibyom: Closing this issue.

In response to [this](https://github.com/tektoncd/pipeline/issues/2001#issuecomment-582487808): >I'm going to close this issue. Feel free to re-open if it doesn't answer your question. >/close > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
jtestard commented 8 months ago

@dibyom the examples shown in this comment have expired. Would it be possible to flag where they are now? https://github.com/tektoncd/pipeline/issues/2001#issuecomment-582487808

khrm commented 8 months ago

@jtestard https://github.com/tektoncd/pipeline/blob/main/examples/v1/taskruns/no-ci/pull-private-image.yaml and https://github.com/tektoncd/pipeline/blob/main/examples/v1/taskruns/no-ci/docker-creds.yaml