Skip to content

Commit

Permalink
OCM-3510 | fix: allow clusters to edit ingresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbranco committed Sep 12, 2023
1 parent 7039596 commit 4dad47f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/ocm/edit/ingress/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@ func run(cmd *cobra.Command, argv []string) error {
return fmt.Errorf("Failed to get cluster '%s': %v", clusterKey, err)
}

if cluster.CloudProvider().ID() != "aws" {
return fmt.Errorf(
"Editing ingresses is not supported for cloud provider '%s'", cluster.CloudProvider().ID())
}

if cluster.State() != cmv1.ClusterStateReady {
return fmt.Errorf("Cluster '%s' is not yet ready", clusterKey)
}
Expand Down

0 comments on commit 4dad47f

Please sign in to comment.