Skip to content

Commit

Permalink
OCM-3047 | fix: allow supplying empty values to reset component routes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbranco authored and ciaranRoche committed Aug 9, 2023
1 parent e55ccc9 commit f62c731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/edit/ingress/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,11 +492,11 @@ func run(cmd *cobra.Command, argv []string) {
cmv1.NamespaceOwnershipPolicy(*namespaceOwnershipPolicy))
}

if clusterRoutesHostname != nil && *clusterRoutesHostname != "" {
if clusterRoutesHostname != nil {
ingressBuilder = ingressBuilder.ClusterRoutesHostname(*clusterRoutesHostname)
}

if clusterRoutesTlsSecretRef != nil && *clusterRoutesTlsSecretRef != "" {
if clusterRoutesTlsSecretRef != nil {
ingressBuilder = ingressBuilder.ClusterRoutesTlsSecretRef(*clusterRoutesTlsSecretRef)
}

Expand Down

0 comments on commit f62c731

Please sign in to comment.