Summary
In this chapter, you've learned how to authenticate to a Git repository or an image registry. Now that you know how to do so, Tekton will be allowed to download your team's source code or images.
You have seen how you can use Kubernetes secrets to authenticate to those servers. For the Git examples, you've learned that you can either use a username/password authentication or an SSH-based authentication mechanism. Those principles can also apply to image registries.
Finally, you've seen how you can use the kubectl
command-line tool to build a secret to use with your Tekton pipelines to access a private registry. You then saw how the tkn
CLI tool could link the service account to a task to create an authenticated task run.
You now have all the necessary knowledge to build your complete CI/CD pipelines with Tekton. The only missing piece will be to trigger your pipelines automatically. This functionality will require the help of a sister project...