Skip to content

feat!: remove legacy cluster instance management commands - #290

Merged
lucamarchiori merged 1 commit into
astarte-platform:masterfrom
lucamarchiori:remove-legacy-instance-commands
Apr 14, 2026
Merged

lucamarchiori merged 1 commit into
astarte-platform:masterfrom
lucamarchiori:remove-legacy-instance-commands

Conversation

@lucamarchiori

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: The astartectl cluster show, astartectl cluster instances fetch-housekeeping-key, and astartectl cluster instances get-cluster-config commands have been permanently removed. Users must rely on standard Kubernetes tools (e.g., kubectl) to interact with the cluster.

These commands were heavily tied to directly querying the Kubernetes API to manage the Astarte Operator and instances, which is no longer aligned with the scope of astartectl (see previous commits).

Changes Included

  • Removed Commands:
    • astartectl cluster show: Removed the command used to show the existing Astarte Operator and Kubernetes cluster state.
    • astartectl cluster instances fetch-housekeeping-key: Removed the command used to fetch the Housekeeping private key directly from a Kubernetes instance.
    • astartectl cluster instances get-cluster-config: Removed the command utilized to fetch cluster configurations and update local Astarte contexts via the Kubernetes API.
  • Removed Utilities: Deleted cmd/cluster/utils.go, removing old Kubernetes API lookup helpers that are not used anymore.
  • Cleaned Dependencies: Dropped no longer needed dependencies from go.mod and go.sum.
  • Update changelog: Changelog is updated with breaking changes.

@lucamarchiori
lucamarchiori force-pushed the remove-legacy-instance-commands branch from 7ad50ef to 9def010 Compare April 9, 2026 14:02
BREAKING CHANGE: The `astartectl cluster show`, `astartectl cluster instances fetch-housekeeping-key`, and `astartectl cluster instances get-cluster-config` commands have been permanently removed. Users must rely on standard Kubernetes tools (e.g., `kubectl`) to interact with the cluster.

These commands were heavily tied to directly querying the Kubernetes API to manage the Astarte Operator and instances, which is no longer aligned with the scope of `astartectl` (see previous commits).

### Changes Included
* **Removed Commands**:
  * `astartectl cluster show`: Removed the command used to show the existing Astarte Operator and Kubernetes cluster state.
  * `astartectl cluster instances fetch-housekeeping-key`: Removed the command used to fetch the Housekeeping private key directly from a Kubernetes instance.
  * `astartectl cluster instances get-cluster-config`: Removed the command utilized to fetch cluster configurations and update local Astarte contexts via the Kubernetes API.
* **Removed Utilities**: Deleted `cmd/cluster/utils.go`, removing old Kubernetes API lookup helpers that are not used anymore.
* **Cleaned Dependencies**: Dropped no longer needed dependencies from `go.mod` and `go.sum`.
* **Update changelog**: Changelog is updated with breaking changes.



Signed-off-by: Luca Marchiori <luca.marchiori@secomind.com>
@lucamarchiori
lucamarchiori force-pushed the remove-legacy-instance-commands branch from 9def010 to fbfc918 Compare April 9, 2026 14:04

@guicrocetti guicrocetti 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.

LGTM!

@lucamarchiori
lucamarchiori merged commit 6cd16a0 into astarte-platform:master Apr 14, 2026
9 checks passed
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.

2 participants