From 76315f1b0434823248fcf9e3a0db452b04882a44 Mon Sep 17 00:00:00 2001 From: Moritz Clasmeier Date: Tue, 27 Oct 2026 11:52:54 +0100 Subject: [PATCH 1/2] Support operator teardown --- cmd/teardown.go | 2 +- internal/deployer/deployer.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/teardown.go b/cmd/teardown.go index 0b5c09d..2bf0da4 100644 --- a/cmd/teardown.go +++ b/cmd/teardown.go @@ -20,7 +20,7 @@ func newTeardownCmd(settings *deployer.Config) *cobra.Command { Use: "teardown [component]", Short: "Teardown ACS components", Long: `Teardown ACS components (central, secured-cluster, or both).`, - ValidArgs: []string{"central", "secured-cluster", "both"}, + ValidArgs: []string{"central", "secured-cluster", "both", "all", "operator"}, Args: cobra.MaximumNArgs(1), RunE: runTeardown, } diff --git a/internal/deployer/deployer.go b/internal/deployer/deployer.go index 84dab48..9c9ad1a 100644 --- a/internal/deployer/deployer.go +++ b/internal/deployer/deployer.go @@ -458,6 +458,8 @@ func (d *Deployer) Teardown(ctx context.Context, components component.Component) return d.teardownCentral(ctx) case component.SecuredCluster: return d.teardownSecuredCluster(ctx) + case component.Operator: + return d.teardownOperator(ctx) case component.Both, component.All: // Tear down components in parallel for better performance var wg sync.WaitGroup From f426ed9e4810428affb0945e6c624d222b2c2569 Mon Sep 17 00:00:00 2001 From: Moritz Clasmeier Date: Tue, 27 Oct 2026 11:59:44 +0100 Subject: [PATCH 2/2] Update Long help --- cmd/teardown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/teardown.go b/cmd/teardown.go index 2bf0da4..37f01b9 100644 --- a/cmd/teardown.go +++ b/cmd/teardown.go @@ -19,7 +19,7 @@ func newTeardownCmd(settings *deployer.Config) *cobra.Command { cmd := &cobra.Command{ Use: "teardown [component]", Short: "Teardown ACS components", - Long: `Teardown ACS components (central, secured-cluster, or both).`, + Long: `Teardown ACS components (central, secured-cluster, both, all or operator).`, ValidArgs: []string{"central", "secured-cluster", "both", "all", "operator"}, Args: cobra.MaximumNArgs(1), RunE: runTeardown,