Skip to content

Validate required env vars before leader election #276

Description

@sudomateo

Context

Initialize (internal/provider/provider.go) calls klog.Fatalf when OXIDE_PROJECT is missing or the Oxide client can't be built — but Initialize runs after winning leader election, so a misconfigured deployment crash-loops while holding/churning the lease.

Scope

Validate OXIDE_HOST, OXIDE_TOKEN, and OXIDE_PROJECT at process start in main.go, before the controller-manager command runs, and fail with a clear message listing what's missing.

Done when

A missing env var fails the process at startup, before leader election, with an actionable error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions