Skip to content

Remove dead autoClusterActivate Helm Job from the dev chart - #459

Open
boddumanohar wants to merge 1 commit into
mainfrom
remove-autoclusteractivate-job
Open

Remove dead autoClusterActivate Helm Job from the dev chart#459
boddumanohar wants to merge 1 commit into
mainfrom
remove-autoclusteractivate-job

Conversation

@boddumanohar

Copy link
Copy Markdown
Member

Summary

  • Deletes templates/job.yaml (autoClusterActivate gated Job) and its templates/mgmt-api-config-map.yaml companion ConfigMap from helm-charts/charts/simplyblock-operator.
  • Removes the now-unused autoClusterActivate value and image.mgmtAPI block from values.yaml.

Why

Cluster activation is already fully automatic and CRD-driven:

  • StorageNodeSetReconciler calls maybeActivateCluster on every reconcile once enough nodes report online/healthy (operator/internal/controller/simplyblockstoragenodeset_controller.go), self-healing across operator restarts.
  • StorageClusterOps{action: activate} provides an explicit, idempotent, GitOps-friendly path for the same operation (operator/internal/controller/storageclusterops_controller.go).

Both call the current /api/v2/clusters/{id}/activate endpoint. The Job instead ran a bundled Python script (ACTION_TYPE=cl_activate) that polled the legacy /api/v1/cluster/activate/{uuid} PUT endpoint — superseded, and disabled by default (autoClusterActivate: false).

Verified unused: checked config-israel, a live deployment of this chart — autoClusterActivate computes to its default false and no such Job exists in the cluster.

Note: a separate, unrelated autoClusterActivate flag exists in simplyBlockDeploy/aws/storagenodes-k8s.sh and csi-driver/charts/spdk-csi/latest/spdk-csi/, targeting a different, older external chart (simplyblock-csi/spdk-csi, pre-operator/CRD architecture) — intentionally left untouched here, out of scope for this dev-chart cleanup.

Test plan

  • helm lint helm-charts/charts/simplyblock-operator/
  • helm template renders cleanly with defaults
  • Confirmed no remaining references to autoClusterActivate, mgmtAPI, or the ConfigMap anywhere in the chart
  • Confirmed unused on the live config-israel cluster

🤖 Generated with Claude Code

Cluster activation is already handled automatically by
StorageNodeSetReconciler.maybeActivateCluster on every reconcile once
enough nodes are online, and explicitly via StorageClusterOps{action:
activate}. Both call the current /api/v2/clusters/{id}/activate
endpoint. The Job (default-disabled, unused on config-israel) still
called the legacy /api/v1/cluster/activate/{uuid} PUT endpoint through
a bundled Python script, superseded by the reconciler path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant