Skip to content

feat(kaito): add setup-kaito target to install KAITO operator#306

Merged
robert-cronin merged 5 commits into
kaito-project:mainfrom
surajssd:worktree-setup-kaito
Jun 2, 2026
Merged

feat(kaito): add setup-kaito target to install KAITO operator#306
robert-cronin merged 5 commits into
kaito-project:mainfrom
surajssd:worktree-setup-kaito

Conversation

@surajssd

@surajssd surajssd commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a one-command, version-pinned way to install the KAITO workspace operator for the kaito provider, mirroring the dynamo provider's existing setup-dynamo flow. Previously, installing KAITO required manually copy-pasting a block of helm repo add / helm upgrade --install / kubectl wait commands from a test script. This wires that into make -C providers/kaito setup-kaito, with the chart version pinned in the repo's single source of truth (versions.env) and guarded against drift by make verify-versions.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📚 Documentation update
  • 🎨 UI/UX improvement
  • ♻️ Refactoring (no functional changes)
  • 🧪 Test update
  • 🔧 Build/CI configuration

Changes Made

  • Added setup-kaito and cleanup-kaito targets to providers/kaito/Makefile that install/uninstall the kaito/workspace Helm chart, mirroring providers/dynamo/Makefile's setup-dynamo. setup-kaito runs helm repo add --force-update + helm repo update kaito (idempotent on re-runs), then helm upgrade --install with the same --set flags as providers/kaito/config.go (featureGates.disableNodeAutoProvisioning=true, nvidiaDevicePlugin.enabled=false, localCSIDriver.useLocalCSIDriver=false, gpu-feature-discovery.gfd.enabled=false, gpu-feature-discovery.nfd.master.deploy=false, gpu-feature-discovery.nfd.worker.deploy=false), and relies on helm --wait --timeout=5m to block until the operator is ready.
  • Made the target configurable via KAITO_NAMESPACE, KAITO_RELEASE, and KAITO_REPO_URL (?= so callers can override; defaults to the kaito-workspace namespace/release).
  • Pinned KAITO_VERSION=0.10.0 in versions.env as the single source of truth, added include ../../versions.env + export to the kaito Makefile so the version flows through to --version $(KAITO_VERSION), and regenerated shared/types/versions.generated.ts to export KAITO_VERSION.
  • Extended the root Makefile verify-versions guard with two KAITO checks: the HelmChart.Version field and the install Command --version argument in providers/kaito/config.go must both match KAITO_VERSION (renumbered the generated-TS check accordingly). Wired a delegating verify-versions prerequisite into the kaito Makefile (guarded by VERIFIED_VERSIONS) so setup-kaito validates version sync before running.
  • Extended hack/test-verify-versions.sh with mutation cases for both new KAITO checks so the drift guard is protected from regression.

Testing

  • Unit tests pass (bun run test)
  • Manual testing performed
  • Tested with a Kubernetes cluster

make verify-versions passes with the new KAITO_VERSION, make test-verify-versions confirms all six drift cases (including both new KAITO mutations) correctly fail, and make -C providers/kaito setup-kaito -n (dry run) emits the expected, version-pinned helm commands. Not yet run against a live cluster.

Checklist

  • My code follows the project's style guidelines
  • I have run bun run lint
  • I have added tests that prove my fix/feature works
  • New and existing unit tests pass locally
  • I have updated documentation if needed
  • My changes generate no new warnings

Additional Notes

  • A root-Makefile verify-versions guard was added for KAITO: it asserts both the HelmChart.Version field and the install Command --version argument in providers/kaito/config.go match KAITO_VERSION from versions.env, in addition to the regenerated-TS diff check. hack/test-verify-versions.sh was extended with matching mutation cases so the guard is protected from regression.
  • Unlike setup-dynamo, setup-kaito intentionally omits the pre-deployment check and GAIE manifest apply — the original KAITO install steps did neither.

@surajssd surajssd requested a review from a team as a code owner June 1, 2026 18:36
Copilot AI review requested due to automatic review settings June 1, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a version-pinned, one-command install/uninstall flow for the KAITO workspace operator (Helm chart) via make -C providers/kaito setup-kaito, aligning KAITO provider setup with the repository’s existing version-drift guard approach (versions.env + generated TS).

Changes:

  • Add KAITO_VERSION=0.10.0 to versions.env and regenerate shared/types/versions.generated.ts.
  • Add setup-kaito / cleanup-kaito Make targets in providers/kaito/Makefile with a delegated verify-versions prerequisite.
  • Introduce KAITO_NAMESPACE / KAITO_RELEASE (and intended KAITO_REPO_URL) knobs for setup customization.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
versions.env Adds pinned KAITO_VERSION as the repo’s source of truth.
shared/types/versions.generated.ts Regenerates version exports to include KAITO_VERSION.
providers/kaito/Makefile Adds version-guarded setup-kaito / cleanup-kaito Helm install/uninstall targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread providers/kaito/Makefile Outdated
Comment thread providers/kaito/Makefile Outdated
Comment thread providers/kaito/Makefile Outdated
Copilot AI review requested due to automatic review settings June 1, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread providers/kaito/Makefile Outdated
Comment thread providers/kaito/Makefile Outdated
Comment thread providers/kaito/Makefile Outdated
Comment thread versions.env
Comment on lines +25 to +26
# KAITO workspace operator Helm chart version (kaito/workspace chart).
KAITO_VERSION=0.10.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will address this separately in a new PR.

Copilot AI review requested due to automatic review settings June 1, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread providers/kaito/Makefile
Comment thread providers/kaito/Makefile Outdated
Comment thread providers/kaito/Makefile
Comment thread providers/kaito/Makefile Outdated
Copilot AI review requested due to automatic review settings June 1, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

Comment thread providers/kaito/Makefile
Comment thread providers/kaito/Makefile Outdated
Comment thread versions.env
Comment thread providers/kaito/Makefile
Comment thread providers/kaito/Makefile Outdated
Comment thread versions.env
Copilot AI review requested due to automatic review settings June 1, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

- Add `setup-kaito` and `cleanup-kaito` Makefile targets that install and
  uninstall the `kaito/workspace` Helm chart, mirroring the dynamo provider's
  `setup-dynamo`
- Pin `KAITO_VERSION=0.10.0` in `versions.env` as the single source of truth and
  include it in the kaito Makefile
- Regenerate `shared/types/versions.generated.ts` to export `KAITO_VERSION`
- Wire up a delegating `verify-versions` target in the kaito Makefile

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
@surajssd surajssd force-pushed the worktree-setup-kaito branch from 3abcded to ab34042 Compare June 1, 2026 18:59
- Use `helm repo add --force-update` instead of `2>/dev/null || true` in
  `providers/kaito/Makefile` so real failures surface and `KAITO_REPO_URL`
  overrides take effect
- Add a `verify-versions` guard in the root `Makefile` asserting the chart
  `Version` literal in `providers/kaito/config.go` matches `KAITO_VERSION`,
  making `versions.env` the single source of truth
- Extend `hack/test-verify-versions.sh` with a `providers/kaito/config.go`
  mutation case to protect the new guard from regression

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Copilot AI review requested due to automatic review settings June 1, 2026 19:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread providers/kaito/Makefile Outdated
Comment thread Makefile
Comment thread Makefile
- Add a `verify-versions` check (step 5) asserting the `--version` argument in
  the `providers/kaito/config.go` install `Command` string matches
  `KAITO_VERSION`, not just the `HelmChart.Version` field, and renumber the
  generated-TS check to step 6
- Extend `hack/test-verify-versions.sh` with a dedicated mutation case for the
  install `Command` `--version` arg so the new guard is protected from
  regression

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Comment thread providers/kaito/Makefile Outdated
Comment thread providers/kaito/Makefile
- Drop redundant `kubectl wait` in `setup-kaito`; rely on helm `--wait
  --timeout=5m` to block until ready
- Scope documented repo refresh to `helm repo update kaito` in `config.go`

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Copilot AI review requested due to automatic review settings June 2, 2026 16:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread providers/kaito/Makefile
Comment thread providers/kaito/config.go
@surajssd surajssd requested a review from robert-cronin June 2, 2026 16:42
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
Copilot AI review requested due to automatic review settings June 2, 2026 20:59
@surajssd surajssd force-pushed the worktree-setup-kaito branch from ed1686f to 412471f Compare June 2, 2026 20:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread providers/kaito/Makefile
Comment thread providers/kaito/Makefile
Comment thread providers/kaito/config.go
@robert-cronin robert-cronin merged commit 92dd7fb into kaito-project:main Jun 2, 2026
11 checks passed
@surajssd surajssd deleted the worktree-setup-kaito branch June 3, 2026 17:29
@surajssd surajssd added this to the 0.7.0 milestone Jun 10, 2026
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.

3 participants