mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
b52b021acb
According to [the documentation](https://woodpecker-ci.org/docs/administration/backends/kubernetes#images-from-private-registries), per-organization and per-pipeline registries are currently unsupported for the Kubernetes backend. This patch implements this missing functionality by creating and deleting a matching secret for each pod with a matched registry, using the same name, labels, and annotations as the pod, and appending it to its `imagePullSecrets` list. This patch adds tests for the new functionality, and has been manually end-to-end-tested in KinD by using a private image hosted in the matching gitea instance. This will require updating the matching helm charts to add the create/delete permissions to the agent role, which **is already done**. close #2987 |
||
---|---|---|
.. | ||
backend_options.go | ||
backend_options_test.go | ||
flags.go | ||
kubernetes.go | ||
kubernetes_test.go | ||
pod.go | ||
pod_test.go | ||
secrets.go | ||
secrets_test.go | ||
service.go | ||
service_test.go | ||
utils.go | ||
utils_test.go | ||
volume.go | ||
volume_test.go |