Woodpecker is a community fork of the Drone CI system.
Find a file
Nikolai Rodionov b3541e314e
fix: Add backend_options to service linter entry (#2930)
I've tried setting resources for a service and have seen the linter
warning that is not supported, though the the pipeline was successful
and resources were actually set on the pod. So I assume it shouldn't be
a linter issue.

I"m also not sure if my change is correct, I only hope it is

## Some Context

A pipeline example (I've removed steps that are not related directly:
```yaml
---
steps:
  test:
    name: Test charts
    image: quay.io/helmpack/chart-testing
    environment:
      - DOCKER_HOST=tcp://docker:2375
    commands:
      - export PATH=$PWD/.bin:$PATH
      - apk update && apk add docker
      - kind create cluster --config kind.yaml
      - sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' ~/.kube/config
      - git fetch origin
      - |
        if [ -e .changed ]; then
          ct install --target-branch main --chart-dirs .
          ct install --target-branch main --chart-dirs . --upgrade
        fi

services:
  docker:
    image: docker:dind
    commands: dockerd -H tcp://0.0.0.0:2375 --tls=false
    privileged: true
    ports:
      - 2375
    backend_options:
      kubernetes:
        resources:
          requests:
            memory: 400Mi
            cpu: 100m
          limits:
            memory: 400Mi
            cpu: 100m
```

Pod description:
```
Containers:
  wp-01hhczdknafj81jv80gzjbgt93-0-services-0:
    Limits:
      cpu:     100m
      memory:  400Mi
    Requests:
      cpu:     100m
      memory:  400Mi
```

Warning in the Woodpecker UI:

```
[linter]woodpecker: services.dockerAdditional property backend_options is not allowed
```
2023-12-11 19:22:55 +01:00
.github Update renovate schedule & use central config repo (#2597) 2023-10-17 09:23:13 +02:00
.vscode local backend make cmd log output similar to other shells (#2678) 2023-11-01 11:49:36 +01:00
.woodpecker Update docker.io/techknowlogick/xgo Docker tag to go-1.21.5 (#2926) 2023-12-11 08:26:21 +01:00
agent Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
cli Fix flags added multiple times (#2914) 2023-12-08 10:36:53 +02:00
cmd Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
contrib/woodpecker-test-repo/.woodpecker Add workflow version (#2476) 2023-11-06 01:37:02 +01:00
docker Fix pinned alpine package versions (#2713) 2023-11-03 15:41:44 +01:00
docs Update 20-kubernetes.md (#2927) 2023-12-11 14:03:05 +01:00
nfpm Add prettier (#2600) 2023-10-24 14:42:05 +02:00
pipeline fix: Add backend_options to service linter entry (#2930) 2023-12-11 19:22:55 +01:00
server Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
shared Bump default clone image version to 2.4.0 (#2852) 2023-11-21 02:15:08 +01:00
version gofumpt -w -l -extra . (#661) 2022-01-05 21:50:23 +01:00
web Lock file maintenance (#2910) 2023-12-06 15:05:49 +01:00
woodpecker-go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
.changelog.yml Add prettier (#2600) 2023-10-24 14:42:05 +02:00
.ecrc Update swagger API specification (#1782) 2023-06-03 21:38:36 +02:00
.editorconfig Use editorconfig-checker (#982) 2022-06-17 12:03:34 +02:00
.gitattributes Fix "check_swagger" step (#2024) 2023-07-20 22:12:32 +02:00
.gitignore Use consistent woodpecker color scheme (#2003) 2023-08-02 09:09:12 +02:00
.gitpod.yml Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
.golangci.yml Add linting for any (#2893) 2023-11-29 20:21:18 +01:00
.hadolint.yml Use pre-commit (#2650) 2023-10-28 21:58:59 +02:00
.markdownlint.yaml fix(deps): update docker to v24 (#2675) 2023-10-31 12:33:27 +01:00
.pre-commit-config.yaml Add prettier pre-commit hook (#2762) 2023-11-19 22:47:14 +01:00
.prettierignore Add prettier (#2600) 2023-10-24 14:42:05 +02:00
.prettierrc Add prettier (#2600) 2023-10-24 14:42:05 +02:00
CHANGELOG.md 🎉 Release 2.0.0 (#2805) 2023-11-23 17:28:08 +01:00
CONTRIBUTING.md Add release documentation to CONTRIBUTING (#2917) 2023-12-07 18:20:22 +01:00
docker-compose.example.yml Add docs about Gitea on same host and update docker-compose example (#2752) 2023-11-11 12:38:21 +01:00
docker-compose.gitpod.yml Update postgres Docker tag to v16.1 (#2842) 2023-11-19 07:54:15 +01:00
go.mod Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
go.sum Update golang (packages) (#2904) 2023-12-04 20:53:46 +01:00
LICENSE Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
Makefile Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
README.md pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00
release-config.ts Add release helper (#1976) 2023-09-07 17:17:17 +02:00
SECURITY.md pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00

Woodpecker

Woodpecker


Translation status


Woodpecker is a community fork of the Drone CI system.

woodpecker

🫶 Support

Please consider to donate and become a backer. 🙏 [Become a backer]

📖 Documentation

https://woodpecker-ci.org/

Contribute

See Contributing Guide

Open in Gitpod

📣 Translate

We use an own Weblate instance at translate.woodpecker-ci.org.

Translation status

👋 Who uses Woodpecker?

Woodpecker is used by itself multiple well-known companies, organizations like Codeberg, hobbyist and many others.

Leave a comment if you're using it as well.

Also consider using the topic WoodpeckerCI in your repository, so others can learn from your config and use the hashtag #WoodpeckerCI when talking about the project on social media!

Here are some places where people mention Woodpecker:

Stars over time

Stargazers over time

License

Woodpecker is Apache 2.0 licensed with the source files in this repository having a header indicating which license they are under and what copyrights apply.

Files under the docs/ folder are licensed under Creative Commons Attribution-ShareAlike 4.0 International Public License.