Commit Graph

12 Commits

Author SHA1 Message Date
Harri Avellan
e9ab04f88b
Support namespace per org for Kubernetes step secrets (#5383)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-08-05 09:27:18 +02:00
Henrik Huitti
79e4dd5380
feat(k8s): Kubernetes namespace per organization (#5309) 2025-07-22 17:22:26 +03:00
Harri Avellan
5c00b9d74b
Prevent secrets from leaking to Kubernetes API Server logs (#5305) 2025-07-14 17:45:13 +03:00
Patrick Schratz
e92706bfd8
Revert "kubernetes: prevent secrets from leaking to api-server logs" (#5293)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2025-07-05 09:40:40 +03:00
Harri Avellan
5e052f5579
kube backend: prevent secrets from leaking to Kubernetes apiserver logs (#5196) 2025-06-14 22:44:33 +02:00
Jener Rasmussen
c392250384
Replace illegal characters in Kubernetes labels (#5013)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2025-03-25 20:24:55 +01:00
Jener Rasmussen
8d94071e2f
Tag pipeline with source information (#4796)
Co-authored-by: oauth <woodpecker-bot@obermui.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2025-03-22 13:45:44 +01:00
Robert Kaussow
00aa968afa
Revert "Tag pipeline with source information (#4771)" (#4794) 2025-01-31 14:53:41 +02:00
Jener Rasmussen
846fd8dc51
Tag pipeline with source information (#4771)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2025-01-30 13:03:58 +01:00
qwerty287
81b74025d4
Update Go imports paths (#4605)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-22 10:44:34 +01:00
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
Thomas Anderson
7bc38a1d8b
K8s secrets reference from step (#3655) 2024-06-23 18:20:21 +02:00