diff --git a/cmd/teardown.go b/cmd/teardown.go index 0b5c09d..37f01b9 100644 --- a/cmd/teardown.go +++ b/cmd/teardown.go @@ -19,8 +19,8 @@ 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).`, - ValidArgs: []string{"central", "secured-cluster", "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, } 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