woodpecker/pipeline
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
..
backend Implement registries for Kubernetes backend (#4092) 2024-09-30 01:03:05 +01:00
errors Deprecate environment filter and improve errors (#3634) 2024-04-24 16:07:16 +02:00
frontend Implement registries for Kubernetes backend (#4092) 2024-09-30 01:03:05 +01:00
log make TestCopyLineByLine fail less 2024-09-22 18:39:20 +02:00
rpc Process workflow logs in batches (#4045) 2024-09-18 16:29:56 +02:00
shared cspell lint go code (#3706) 2024-05-24 22:35:04 +02:00
const.go Read long log lines from file storage correctly (#4048) 2024-08-25 22:53:04 +02:00
error.go Use UUID instead of step name where possible (#3136) 2024-01-09 05:43:03 +01:00
error_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
logger.go Adjust logger types (#3859) 2024-07-01 19:03:14 +02:00
option.go Rename engine to backend (#2950) 2023-12-14 19:20:47 +01:00
pipeline.go Wait for tracer to be done before finishing workflow (#4068) 2024-08-30 11:44:56 +02:00
shutdown.go Gracefully shutdown agent (#3895) 2024-07-14 01:06:20 +02:00
tracer.go Remove some ci environment variables (#3846) 2024-09-08 08:59:58 +03:00