Skip to content

Commit

Permalink
Return empty path for termination passthrough (#773)
Browse files Browse the repository at this point in the history
* Return empty path for temrination passthrough

* Use openshift api liberary

Co-authored-by: Hubert Stefanski <35736504+HubertStefanski@users.noreply.github.com>
  • Loading branch information
mosuke5 and HubertStefanski committed Jun 12, 2022
1 parent 3fe7486 commit bf86d76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/model/grafanaRoute.go
Expand Up @@ -21,6 +21,10 @@ func GetPath(cr *v1alpha1.Grafana) string {
return "/"
}

if cr.Spec.Ingress.Termination == v1.TLSTerminationPassthrough {
return ""
}

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

0 comments on commit bf86d76

Please sign in to comment.