Skip to content

Reconciler error due to unavailable secrets #1113

@timbuchwaldt

Description

@timbuchwaldt

What steps did you take and what happened:

We are running a pretty default starboard but continuously see errors triggered by the unavailability of secrets in our logs.
This seems to only happen for our gitlab CI jobs that are very shortlived, secrets are being auto-deleted accordingly.

What did you expect to happen:

No errors / no repeated errors on short-lived pods / deleted secrets.

Anything else you would like to add:

We see the following log repeat:

{
   "level":"error",
   "ts":1649151260.958836,
   "logger":"controller.pod",
   "msg":"Reconciler error",
   "reconciler group":"",
   "reconciler kind":"Pod",
   "name":"runner-my-secret-runner-123",
   "namespace":"gitlab-runner-legacy",
   "error":"getting secret by name: gitlab-runnerrunner-my-secret-runner-123: Secret \"runner-my-secret-runner-123-1234\" not found",
   "stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.1/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.1/pkg/internal/controller/controller.go:227"
}

Environment:

  • Starboard version (use starboard version): 0.15.1
  • Kubernetes version (use kubectl version): 1.22.5
  • OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): Ubuntu 20.04 (server)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions