Skip to content

Commit

Permalink
rrsa: improve cluster type check
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Jan 9, 2024
1 parent 5c8586c commit 78aa394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/ctl/rrsa/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func AllowRRSAFeatureOrDie(ctx context.Context, clusterId string, client *openap
if c.State != types.ClusterStateRunning {
common.ExitByError(fmt.Sprintf("cluster state is not running: %s", c.State))
}
if c.ClusterType != types.ClusterTypeManagedKubernetes {
common.ExitByError("only support managed cluster")
}
//if c.ClusterType != types.ClusterTypeManagedKubernetes {
// common.ExitByError("only support managed cluster")
//}
return c
}

Expand Down

0 comments on commit 78aa394

Please sign in to comment.