Skip to content

Emit Warning events when scheduling is blocked by missing children - #191

Merged
toelke merged 1 commit into
wave-k8s:masterfrom
twostone:feature/emit-warning-events-missing-children
Sep 7, 2026
Merged

toelke merged 1 commit into
wave-k8s:masterfrom
twostone:feature/emit-warning-events-missing-children

Conversation

@twostone

@twostone twostone commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes wave-k8s/wave#186.

When Wave detects that required ConfigMaps or Secrets are missing or incomplete, it now emits a Kubernetes Warning event on the affected Deployment/StatefulSet/DaemonSet, making it easy to diagnose why pods remain Pending.

Changes

pkg/core/handler.go

  • Reconciler path (handlePodController): Emit a Warning event with reason MissingChildren when checkRequiredChildren fails. Previously this path was silent.
  • Webhook path (updatePodController): Change the SchedulingDisabled event from EventTypeNormal → EventTypeWarning, since blocking scheduling is a warning condition.

pkg/core/controller_suite.go

  • Added test assertions verifying the MissingChildren warning event is emitted in both missing-children scenarios (missing resource, missing key in projection).

Example Event

Warning  MissingChildren  Scheduling blocked due to missing children: not all required children exist: missing required configmap default/my-config

@twostone
twostone requested a review from a team as a code owner September 2, 2026 05:53
When the Wave reconciler detects missing or invalid ConfigMaps/Secrets,
it now emits a Kubernetes Warning event with reason 'MissingChildren'
and details of what's missing (e.g. 'missing required configmap default/foo').

Also change the webhook-path 'SchedulingDisabled' event from EventTypeNormal
to EventTypeWarning, since blocking scheduling is a warning condition.

Closes wave-k8s#186 (wave-k8s/wave)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@toelke
toelke force-pushed the feature/emit-warning-events-missing-children branch from 165bf16 to 7bcb1a4 Compare September 7, 2026 08:54
@toelke

toelke commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the contribution!

@toelke
toelke merged commit b1599bd into wave-k8s:master Sep 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Emit Kubernetes Event when scheduling blocked due to missing resources

2 participants