Skip to content

Commit

Permalink
OCM-2941 | fix: Adjusting help usage and ingress builder call
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbranco committed Jul 26, 2023
1 parent f8bd39d commit 743111a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/ocm/create/cluster/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ func init() {
defaultIngressRouteSelectorFlag,
"",
"Route Selector for ingress. Format should be a comma-separated list of 'key=value'. "+
"If no label is specified, all routes will be exposed on both routers.",
"If no label is specified, all routes will be exposed on both routers."+
" For legacy ingress support these are inclusion labels, otherwise they are treated as exclusion label.",
)

fs.StringVar(
Expand Down
5 changes: 3 additions & 2 deletions cmd/ocm/edit/ingress/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ func init() {
routeSelectorFlag,
"",
"Route Selector for ingress. Format should be a comma-separated list of 'key=value'. "+
"If no label is specified, all routes will be exposed on both routers.",
"If no label is specified, all routes will be exposed on both routers."+
" For legacy ingress support these are inclusion labels, otherwise they are treated as exclusion label.",
)

flags.StringVar(
Expand Down Expand Up @@ -295,7 +296,7 @@ func run(cmd *cobra.Command, argv []string) error {
if cluster.Hypershift().Enabled() {
return fmt.Errorf("Can't edit `%s` for Hosted Control Plane clusters", clusterRoutesTlsSecretRefFlag)
}
ingressBuilder = ingressBuilder.ClusterRoutesHostname(args.clusterRoutesTlsSecretRef)
ingressBuilder = ingressBuilder.ClusterRoutesTlsSecretRef(args.clusterRoutesTlsSecretRef)
}

ingress, err = ingressBuilder.Build()
Expand Down

0 comments on commit 743111a

Please sign in to comment.