Skip to content

Missing required Service.spec.ports in Kubernetes #1238

@mmoya

Description

@mmoya

Component

agent

Describe the bug

Service.spec.ports is required and not being passed.

Same environment and pipeline of #1232. This time using agent version next-3130a1c5. The error is:

default/woodpecker-woodpecker-agent-56df456494-b62fg[woodpecker-agent]: {
  "level": "error",
  "error": "rpc error: code = Unknown desc = Proc finished with exitcode 1, Service \"wp-0-3996753301819885534-services-0\" is invalid: spec.ports: Required value",
  "time": "2022-10-07T21:27:22Z",
  "message": "grpc error: wait(): code: Unknown: rpc error: code = Unknown desc = Proc finished with exitcode 1, Service \"wp-0-3996753301819885534-services-0\" is invalid: spec.ports: Required value"
}

I see that kubernetes.Service has a ports parameter but all calls are done with an empty array as its value.

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-3130a1c5"}

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions