Skip to content

Commit

Permalink
Remove unused query to get obs api route-host (stolostron#1471)
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Camata <[email protected]>
Signed-off-by: Periklis Tsirakidis <[email protected]>
  • Loading branch information
douglascamata authored and periklis committed Jun 10, 2024
1 parent 0d6be4a commit a34da27
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions operators/multiclusterobservability/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,6 @@ func GetDefaultTenantName() string {
// GetObsAPIRouteHost is used to Route's host for Observatorium API. This doesn't take into consideration
// the `advanced.customObservabilityHubURL` configuration.
func GetObsAPIRouteHost(ctx context.Context, client client.Client, namespace string) (string, error) {
mco := &observabilityv1beta2.MultiClusterObservability{}
err := client.Get(ctx,
types.NamespacedName{
Name: GetMonitoringCRName(),
}, mco)
if err != nil && !errors.IsNotFound(err) {
return "", err
}
return GetRouteHost(client, obsAPIGateway, namespace)
}

Expand Down

0 comments on commit a34da27

Please sign in to comment.