Commit Graph

495 Commits

Author SHA1 Message Date
qwerty287
4ab721b920 Revert "Add support for sidecar containers and volumes in Kubernetes backend" (#5726) 2025-11-06 17:33:23 +01:00
Martin Schmidt
02ea16ecbf Add support for sidecar containers and volumes in Kubernetes backend (#5666) 2025-11-06 16:45:38 +01:00
LUKIEYF
40f847b944 Add Header User-Agent for request client (#5664)
add Header User-Agent for request client for more precise in recognized the http request from.

close #3778
2025-11-05 11:41:48 +01:00
6543
dd0f5932b3 Switch from BoolTrue to optional.Option[bool] (#5693) 2025-11-04 14:43:30 +01:00
renovate[bot]
09e8d32353 chore(deps): update dependency golangci/golangci-lint to v2.6.0 (#5702)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2025-11-03 15:22:20 +01:00
Harri Avellan
69fc5bfa25 fix: panic due to an invalid memory address when injectSecretRecursive encounters nil values (#5699) 2025-10-31 08:10:00 +01:00
LUKIEYF
7ce65365b1 Enhancement log stream reading and writing and handle new lines and max-size (#5683)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-29 19:13:20 +01:00
6543
393a598212 Make local backend work with cli exec (#4102) 2025-10-27 13:12:26 +01:00
6543
3d43a3fce6 Make pipeline/frontend/yaml/* types able to be marshaled back to YAML (#1835) 2025-10-25 10:27:22 +02:00
6543
75f773062b cli: show description of default value for --backend-local-temp-dir instead of value (#5656) 2025-10-20 23:30:46 +02:00
Marcus Ramberg
ab641bd3fe Improve log.CopyByLine to be more robust (#5641) 2025-10-16 15:51:50 +02:00
Marcus Ramberg
647fa843f6 Modernize a couple of loops, fix incorrect function docs (#5637) 2025-10-14 13:00:19 +02:00
6543
aeb29f2609 flake.lock: Update (#5635) 2025-10-13 18:52:28 +02:00
6543
a68111fb24 Make TestCopyLineByLine less flaky (#5589) 2025-10-02 08:17:47 +02:00
6543
61835d72bb make local backend tests less flaky (#5586) 2025-10-01 20:04:49 +02:00
6543
44c8921c19 local backend: fix steps having logs form other steps (#5582)
## problem

if steps where started concurrent, the stdout pipeline reader war overwritten and you randomly got the wrong command stream 
from a step.

## change

where we have possible race conditions, we now use thread save types
e.g. store the command struct and the output reader in sync.Map

also a lot of tests where added
2025-10-01 16:58:37 +02:00
6543
2a97ae9bcd Document pipeline backend engine interface precisely (#5583) 2025-10-01 13:06:34 +02:00
6543
9edaa1e0c3 local backend test shells if unknown (#5570)
currently if we don't know the shell we just assume posix.
this adds a small test, to ensure it is and fail gracefully before doing weird stuff.

## Test Conf

```yaml
skip_clone: true
steps:
  build:
    image: "true"
    commands:
      - echo "building..."
```
2025-10-01 12:29:48 +02:00
6543
e11f110db0 local backend: fix windows cmd.exe command escaping (#5569) 2025-09-30 16:52:43 +02:00
Harri Avellan
0fc615c178 Trace errors during SetupWorkflow, make service step setup errors visible to user (#5559)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-09-28 21:56:43 +02:00
Henrik Huitti
a3c3846c16 fix(k8s): add retry logic with exponential backoff for pod log streaming (#5550) 2025-09-25 18:37:51 +00:00
6543
388557d94a New event pull request metadata (#5214)
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2025-09-25 00:07:45 +02:00
qwerty287
e9c545e25b Add StepFinished to log service (#5530) 2025-09-24 13:41:03 +02:00
Robert Kaussow
2f3c4a28c1 Migrate to mockery v3 (#5547) 2025-09-24 13:12:55 +02:00
Henrik Huitti
0bd69e876f Add task UUID label to Kubernetes pods (#5544) 2025-09-23 20:30:20 +02:00
Robert Kaussow
7707e843f2 Show human readable information in queue info (#5516)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2025-09-23 09:35:49 +02:00
Robert Kaussow
8a69a1cfc6 Fix formatting and version formatting tools (#5540) 2025-09-23 00:36:46 +02:00
Gusted
d2ea85e55f fix: allow spaces in WOODPECKER_PLUGINS_PRIVILEGED (#5494) 2025-09-09 22:33:53 +00:00
Sebastian Klaus
4fd240a144 fix: changed schema definition for "backend_options.kubernetes.tolerations" to accept an array of objects (#5478)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2025-09-05 19:04:15 +02:00
6543
c5a5bbea5d Add milestone to metadata (#5174) 2025-09-01 16:12:54 +02:00
renovate[bot]
d95b7a43a2 fix(deps): update golang-packages (#5467)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2025-08-28 11:45:38 +02:00
Robert Kaussow
dc7795e64b Add fsGroupChangePolicy option to Kubernetes backend (#5416)
Co-authored-by: Lilly Sell <sell@b1-systems.de>
2025-08-15 10:28:38 +02:00
scottshotgg
d7495357d5 Add Agent-level Tolerations setting (#5266)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-10 10:12:42 +02:00
Lilly
147256e3a8 feat(k8s): k8s priority class name config (#5391) 2025-08-09 16:33:47 +02:00
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
qwerty287
12cd608150 Support secrets in cli exec (#5374) 2025-07-31 07:13:07 +03:00
renovate[bot]
ddf5a09cd8 fix(deps): update golang-packages (#5336)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2025-07-22 17:22:48 +03: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
qwerty287
fe5ea7ad3b Simplify backend types (#5299) 2025-07-05 12:59:17 +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
qwerty287
2184407dd3 Add pipeline author and avatar env vars (#5227) 2025-06-27 12:18:33 +02:00
Harri Avellan
5e052f5579 kube backend: prevent secrets from leaking to Kubernetes apiserver logs (#5196) 2025-06-14 22:44:33 +02:00
renovate[bot]
71f24f5d44 fix(deps): update golang-packages to v28.2.1+incompatible (#5217)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2025-06-06 07:20:03 +02:00
Robert Kaussow
496498274c Use docker go client directly (#5134) 2025-04-26 13:20:36 +02:00
renovate[bot]
c45657721f fix(deps): update golang-packages (#5121)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-04-25 15:55:30 +03:00
Robert Kaussow
f2c12e0eaf Use slugified plugin urls in docs (#5116) 2025-04-23 10:07:53 +02:00
renovate[bot]
e7243e3ff5 fix(deps): update golang-packages (#5111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-04-22 10:55:07 +02:00
Robert Kaussow
b4020072b6 Revert "Use existing WorkingDir for clone steps (#5023)" (#5047) 2025-04-02 09:21:26 +02:00
Ralf Haferkamp
8a432a6b83 Fix exclude path constraint behavior (#5042)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-04-01 20:05:51 +02:00