Skip to content

[Addon] migrate cloudshell to native helmchart - #789

Merged
briankane merged 1 commit into
kubevela:masterfrom
preko-p:preko-p/cloudshell-native-helmchart-787
Nov 22, 2026
Merged

briankane merged 1 commit into
kubevela:masterfrom
preko-p:preko-p/cloudshell-native-helmchart-787

Conversation

@preko-p

@preko-p preko-p commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Description of your changes

Migrates the cloudshell addon from the FluxCD-backed helm component to the native KubeVela helmchart component as a scoped worked example for:

Refs #787

This keeps the existing chart, chart version, release name, release namespace, and values:

  • chart source: cloudtty
  • chart repo: https://cloudtty.github.io/cloudtty
  • chart version: 0.3.0
  • release name: cloudshell-operator
  • release namespace: vela-system

It also bumps the addon metadata version from 0.0.10 to 0.0.11 and removes the now-unused fluxcd dependency.

Special review notes:

  • This PR intentionally changes only one addon so maintainers can validate the migration shape before broader addon changes.
  • The native helmchart schema was checked against current KubeVela core sources/docs for chart.source, repoURL, version, release, and top-level values.
  • cloudtty 0.3.0 does not ship a Helm crds/ directory; its CRD is rendered through a normal chart template gated by the existing installCRDs: true default value, so I did not add options.includeCRDs.
  • Existing live installs may still need maintainer review for Flux-to-native takeover/upgrade behavior, because native helmchart does not exactly replicate Flux upgradeCRD semantics.

How has this code been tested?

Ran locally:

  • make check-addon-semver
  • git diff --check
  • rg -n "fluxcd|GitRepository|Kustomization|Bucket|OCIRepository|HelmRepository|type:\s*helm$" addons/cloudshell

The final grep returned no residual FluxCD or exact old type: helm references under addons/cloudshell.

Not run locally:

  • vela render/install validation
  • helm validation
  • cue validation
  • cluster/e2e addon install validation

Those tools were not available in my local runner environment.

Checklist

I have:

  • Title of the PR starts with type (e.g. [Addon] , [example] or [Doc]).
  • Updated/Added any relevant documentation and examples. Not applicable; this updates an existing addon implementation only.
  • New addon should be put in experimental. Not applicable; this updates an existing addon.
  • Update addon should modify the version in metadata.yaml to generate a new version.

Verified Addon promotion rules

This PR does not promote an experimental addon to verified.


Summary by cubic

Migrates the cloudshell addon from Flux-backed helm to native KubeVela helmchart for simpler management and no fluxcd dependency. Fixes #787.

Refactors

  • Switch component to helmchart (chart cloudtty, repo https://cloudtty.github.io/cloudtty, version 0.5.0).
  • Set release.name cloudshell-operator and release.namespace vela-system; keep existing values.
  • Remove fluxcd from dependencies; require vela >= v1.11.0 and bump addon version to 0.0.12.
  • Note: CRDs are rendered by the chart (installCRDs: true); no options.includeCRDs added.

Written for commit fea87aa. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 2 files

Re-trigger cubic

@preko-p

preko-p commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

I dug into the failing Addon-test rather than pushing a workaround.

The failure looks like a CI/core baseline mismatch, not a catalog-local template error:

  • the workflow installs KubeVela CLI/core v1.10.1
  • the addon test then runs vela addon enable addons/cloudshell
  • the updated CloudShell template uses native type: helmchart
  • that test cluster does not have WorkloadDefinition.core.oam.dev/helmchart, so the admission webhook rejects the Application

I checked this repo for an existing native helmchart definition to reuse and only found FluxCD HelmChart CRDs/definitions, not a native KubeVela workload definition. A catalog-local fix would either reintroduce FluxCD, which defeats the purpose of #787, or vendor a global native helmchart capability into the CloudShell addon, which feels like unsafe scope creep.

So I think this needs maintainer direction: should the catalog CI/core baseline be updated to a KubeVela version that includes native helmchart, or should this PR be deferred until that baseline is available?

@briankane briankane added type/feature New feature or request area/cloudshell cloudshell addon labels Nov 22, 2026
Installs the cloudtty chart with vela-core's helmchart component instead
of fluxcd, so cloudshell no longer needs the fluxcd addon. Needs
vela-core v1.11.0 or later, which ships helmchart.

Refs kubevela#787

Signed-off-by: Brian Kane <briankane1@gmail.com>
@briankane
briankane force-pushed the preko-p/cloudshell-native-helmchart-787 branch from 2db7ff7 to fea87aa Compare November 22, 2026 18:11
@briankane
briankane self-requested a review as a code owner November 22, 2026 18:11
@briankane

Copy link
Copy Markdown
Member

Thanks @preko-p, and sorry your question went unanswered. Native helmchart ships with vela-core v1.11.0 and the addon e2e runs on v1.11.0 now (#802). Master had moved under this (#798 put cloudshell on cloudtty 0.5.0, where the chart and operator image move together), so I rebased it onto that, bumped to 0.0.12 and added system: vela: ">=v1.11.0". Tested a fresh enable and an upgrade from the fluxcd-based version on k3d. Changed Fixes #787 to Refs #787, since #787 covers the other fluxcd-backed addons too.

@briankane
briankane merged commit ceab0ee into kubevela:master Nov 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cloudshell cloudshell addon type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate FluxCD-backed addons to the native helmchart component

2 participants