You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b8ccb24
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(controller): render the release CRDs from the controller chart
The nvke-crds chart existed so the NVKE controller and Cluster Service could
share one set of CRDs. They no longer do: the controller owns MachineImage,
ClusterRelease and NodePoolRelease in internal.nvke.nvidia.com and
management-engine owns its own in service.nvke.nvidia.com. What the split
still cost was a local chart dependency, which has to be built before the
controller chart can be linted, rendered or packaged, and it was only ever
published bundled inside nvke-controller.
Fold the CRDs back into the controller chart:
- controller-gen writes them to controller/files/crds, one file per kind.
- templates/crds.yaml renders them when releaseCRDs.install is true, with the
same retention annotations as before (helm.sh/resource-policy: keep and the
Argo CD sync-wave and Prune=false options). They stay in templates/ rather
than Helm's crds/ directory, so a schema change still upgrades. A chart with
no CRD files fails to render instead of installing without them.
- Remove the nvke-crds chart, the Chart.yaml dependency and Chart.lock.
Drop what only the dependency needed: chart-deps and its six prerequisite
targets, the unused chart-crds target, the helm dependency build step in both
chart publish workflows, the file:// carve-out in nvke-deploy.sh, the special
case and narrowed go:embed in charts.Extract, Tilt's build_dependencies and the
watch_settings workaround for the redeploy loop it caused, and the two
.gitignore entries. Tilt applies the CRD files directly with kubectl.
The rendered CRDs and the rest of the chart are unchanged: the CRD files are
renamed without edits, and helm template output is identical to main for the
default values and for releaseCRDs.install=false, apart from one fewer
comment-only block. releaseCRDs.install keeps its meaning.
Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
Copy file name to clipboardExpand all lines: .claude/skills/regenerate/SKILL.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,8 @@ source + output together.
14
14
|`controller/api/openapi.yaml`|`make generate` in `controller/`| spec + `api/*.gen.go`|
15
15
|`agent/pkg/agent/proto/node_agent.proto`|`make protos` in `agent/`|`.proto` + `*.pb.go`|
16
16
| CAPI types/markers in `cluster-api-provider-provisioned/`|`make generate manifests` there | types + deepcopy, CRDs, `config/rbac/role.yaml`|
17
-
|`MachineImage`, `ClusterRelease` or `NodePoolRelease` types/markers in `controller/k8s-apis/v1/`|`make -C controller/k8s-apis generate manifests`, then `make chart-crds-check` at the root | types + `zz_generated.deepcopy.go` + the `nvke-crds` chart's `bases/*.yaml`|
17
+
|`MachineImage`, `ClusterRelease` or `NodePoolRelease` types/markers in `controller/k8s-apis/v1/`|`make -C controller/k8s-apis generate manifests`, then `make chart-crds-check` at the root | types + `zz_generated.deepcopy.go` + the controller chart's `files/crds/*.yaml`|
18
18
|`NVKECluster`, `ControlPlaneClass`, `ClusterReleaseChannel`, `MachineImage`, `ClusterRelease` or `NodePoolRelease` types/markers in `management-engine/apis/v1/`|`make -C management-engine manifests-state`| types + `zz_generated.deepcopy.go` + `config/crd/bases`|
19
-
|`controller/deploy/release-crds/kustomization.yaml`|`make chart-crds` at the root | overlay + `files/crds.yaml`|
20
19
| any module `go.mod`/`go.sum`|`make work-sync`, then `make notices`, at the root |`go.work` + `go.work.sum` + every changed `THIRD_PARTY_NOTICES.md`|
0 commit comments