woodpecker/pipeline/backend
Andrew Melnick b52b021acb
Implement registries for Kubernetes backend (#4092)
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
2024-09-30 01:03:05 +01:00
..
common fix(deps): update golang-packages (#3958) 2024-07-22 18:18:26 +02:00
docker Move docker resource limit settings from server to agent (#3174) 2024-09-26 16:56:59 +01:00
dummy Migrate to github.com/urfave/cli/v3 (#2951) 2024-07-18 01:26:35 +02:00
kubernetes Implement registries for Kubernetes backend (#4092) 2024-09-30 01:03:05 +01:00
local Allow using args in container (#4011) 2024-08-07 21:11:55 +02:00
types Move docker resource limit settings from server to agent (#3174) 2024-09-26 16:56:59 +01:00
backend.go Fix backend detection (#3353) 2024-02-09 00:04:43 +01:00