feat(recipes): backfill CRD Established=True for 6 operator-owning health checks#1919
Open
mohityadav8 wants to merge 2 commits into
Open
feat(recipes): backfill CRD Established=True for 6 operator-owning health checks#1919mohityadav8 wants to merge 2 commits into
mohityadav8 wants to merge 2 commits into
Conversation
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <ymohit799057@gmail.com>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughFive operator health checks now verify required CustomResourceDefinitions have reached Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…gative finding Signed-off-by: Mohit Yadav <ymohit799057@gmail.com>
Contributor
Author
|
@coderabbitai full review |
Contributor
✅ Action performedFull review finished. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backfills CRD
Established=Trueassertions for the 6 operator-owning health checks that PR #1245 deferred pending chart verification.Motivation / Context
PR #1245 added CRD
Established=Truechecks for 4 components whose CRD names were verifiable in-tree (gpu-operator, dynamo-platform, nodewright-operator, cert-manager). It explicitly deferred gatekeeper, kueue, kubeflow-trainer, network-operator, k8s-nim-operator, and slinky-slurm-operator because their CRD names weren't enumerated in-tree at the pinned chart version — bundling them blind risked typo'd names failing on live clusters.Related: #1245
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
Per component, in
recipes/checks/<comp>/health-check.yaml:resourceflavors/clusterqueues/localqueues.kueue.x-k8s.iorecipes/components/kueue/manifests/*.yamlalready ship CRs at this apiVersion — group is load-bearing today, not a guesstrainjobs.trainer.kubeflow.orgtests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml— asserted on a live kind clusternicclusterpolicies.mellanox.comrecipes/components/network-operator/manifests/nic-cluster-policy-aks.yamlships an actualNicClusterPolicyCR atmellanox.com/v1alpha1nimservices/nimcaches/nimpipelines.apps.nvidia.comdocs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md— livekubectl get crdsoutput from an EKS run of chart 3.1.0constrainttemplates.templates.gatekeeper.sh,configs.config.gatekeeper.shhelm template gatekeeper/gatekeeper --version 3.22.2before this is trusted at face value.crds.enabled: false(recipes/registry.yaml); all 6slinky.slurm.netCRDs are owned exclusively by the siblingslinky-slurm-operator-crdschart, already covered by its own health check. Comment added explaining the omission per #1246's acceptance criteria.For kubeflow-trainer, only
TrainJobis verified —TrainingRuntime/ClusterTrainingRuntime/JobSetfrom the issue's guess table are left out pending confirmation. Same caveat for network-operator'sMacvlanNetwork/IPoIBNetwork/HostDeviceNetwork.Testing
go test -race -count=1 ./validators/chainsaw/... python -m yamllint -c .yamllint.yaml recipes/checks/gatekeeper/health-check.yaml recipes/checks/k8s-nim-operator/health-check.yaml recipes/checks/kubeflow-trainer/health-check.yaml recipes/checks/kueue/health-check.yaml recipes/checks/network-operator/health-check.yaml recipes/checks/slinky-slurm-operator/health-check.yamlTestValidateTestReadOnly_RegistryContent: passTestRunChainsawTestInProcess_RegistryCorpusParses: passyamllint: clean, no outputRisk Assessment
Rollout notes: Per-component revert is trivial (each is an isolated
trystep). Before merge, gatekeeper'sconstrainttemplates.templates.gatekeeper.sh/configs.config.gatekeeper.shshould be confirmed viahelm templateagainst chart 3.22.2 — same live-verification gate PR #1245 used for its 4 components. Recommend @mchmarny or whoever owns cluster access for #1246 do this pass, same as #1245's agreement.Checklist
make testwith-race)make lint)TestComponentRegistry_RequiresHealthCheck+TestValidateTestReadOnly_RegistryContentlint guards already cover the registry content this PR touches, same as feat(recipes): deepen 21 chainsaw health checks; close epic #660 #1245git commit -S)