Commit 0c25108
[Creator] [design-spec] k8s-karpenter-control-plane-health (#658)
* Add k8s-karpenter-control-plane-health CodeBundle
Implements cluster-scoped checks for Karpenter controller readiness, admission
webhooks, namespace Warning events, CRD groups, and metrics Services. Includes
sli.robot with a four-dimension 0-1 score, generation rules for kubernetes cluster
resources, and .test Taskfile with a sample namespace manifest.
Made-with: Cursor
* Fix readiness check in Karpenter pod script and enhance local testing documentation
- Updated readiness check condition in `check-karpenter-controller-pods.sh` to compare against "True" instead of "true".
- Added comprehensive local testing instructions in the README, detailing the use of a self-contained harness for testing Karpenter checks against a Kind cluster.
- Removed obsolete `manifest.yaml` file from the test directory.
Made-with: Cursor
* Enhance local testing and discovery flow for Karpenter CodeBundles
- Added detailed instructions for running the runbook locally via RunWhen Local in the README files for both k8s-karpenter-autoscaling-health and k8s-karpenter-control-plane-health.
- Updated generation rules to ensure SLX is only emitted for clusters with Karpenter installed, refining match criteria for deployments.
- Introduced new tasks in the Taskfile for generating kubeconfig and running discovery, improving the local testing workflow.
- Enhanced cleanup tasks to remove generated artifacts from the discovery process.
Made-with: Cursor
* Refactor variable import for Karpenter control plane health SLI
- Changed the import method for `${RW_LOOKBACK_WINDOW}` from user variable to platform variable to improve consistency in variable management.
- Removed the logging of the health score report to streamline output during metric pushing.
Made-with: Cursor
* Enhance Karpenter health check scripts with detailed reporting
- Added a `print_report` function to various Karpenter health check scripts to provide human-readable summaries of findings upon exit.
- The report includes details on NodeClasses, NodePools, Pending Pods, Stuck NodeClaims, and webhook configurations, improving visibility into the health of Karpenter components.
- Removed redundant output messages to streamline the reporting process.
Made-with: Cursor
---------
Co-authored-by: rw-codebundle-agent[bot] <rw-codebundle-agent[bot]@users.noreply.github.com>
Co-authored-by: Shea Stewart <shea.stewart@runwhen.com>1 parent 744e3d7 commit 0c25108
67 files changed
Lines changed: 7163 additions & 0 deletions
File tree
- codebundles
- k8s-karpenter-autoscaling-health
- .runwhen
- generation-rules
- templates
- .test
- assertions
- kubernetes
- base
- crds
- fixtures
- scripts
- k8s-karpenter-control-plane-health
- .runwhen
- generation-rules
- templates
- .test
- assertions
- kubernetes
- base
- crds
- fixtures
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments