Skip to content

Commit

Permalink
Merge pull request grafana#539 from vmanley/set-default-ingress-path
Browse files Browse the repository at this point in the history
Issue grafana#487: set default ingress path
  • Loading branch information
pb82 authored Sep 21, 2021
2 parents 0425e69 + ab5d3fc commit c29ac84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/model/grafanaRoute.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ func GetPath(cr *v1alpha1.Grafana) string {
if cr.Spec.Ingress == nil {
return "/"
}

if cr.Spec.Ingress.Path == "" {
return "/"
}

return cr.Spec.Ingress.Path
}

Expand Down

0 comments on commit c29ac84

Please sign in to comment.