What problem does it solve?
Admission control prevents invalid or inconsistent Kubernetes-style resources from being persisted by intercepting create and update requests before they reach storage, ensuring Grafana App SDK apps enforce business rules at the boundary.
Core Features & Use Cases
- Validation (deny/allow): Reject requests with clear, field-oriented error messages when required spec fields are missing, violated, or immutable constraints are broken.
- Mutation (set/normalize): Modify incoming resources to apply defaults, normalize fields, or prepare required derived values before persistence.
- Operation-aware logic: Handle Create vs Update vs Delete with access to both the new object and the old object for immutability checks.
Use cases include implementing guardrails for grafana-app-sdk ManagedKinds so that users cannot create Grafana app resources with missing required fields, illegal combinations of spec options, or references to non-existent dependencies.
Quick Start
Use the admission-control skill to implement a Validator and/or Mutator for your ManagedKind so that Create requests are checked for required fields and Update requests enforce immutability rules.