Skip to content

Commit

Permalink
make the getAuthHostname function public
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto committed Jan 2, 2024
1 parent f4acedc commit d1e4deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/cloud.redhat.com/providers/web/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func setSecretVersion(cache *rc.ObjectCache, nn types.NamespacedName, desiredVer
return nil
}

func getAuthHostname(hostname string) string {
func GetAuthHostname(hostname string) string {
hostComponents := strings.Split(hostname, ".")
hostComponents[0] += "-auth"
return strings.Join(hostComponents, ".")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func makeAuthIngress(p *providers.Provider) error {
IngressClassName: &ingressClass,
Rules: []networking.IngressRule{
{
Host: getAuthHostname(p.Env.Status.Hostname),
Host: GetAuthHostname(p.Env.Status.Hostname),
IngressRuleValue: networking.IngressRuleValue{
HTTP: &networking.HTTPIngressRuleValue{
Paths: []networking.HTTPIngressPath{{
Expand Down

0 comments on commit d1e4deb

Please sign in to comment.