File tree 1 file changed +7
-2
lines changed
pkg/bootstrap/docker/openshift
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,11 @@ func (h *Helper) InstallRouter(kubeClient kclientset.Interface, f *clientcmd.Fac
110
110
return errors .NewError ("cannot update privileged SCC" ).WithCause (err ).WithDetails (h .OriginLog ())
111
111
}
112
112
113
+ routingSuffix := h .routingSuffix
114
+ if len (routingSuffix ) == 0 {
115
+ routingSuffix = fmt .Sprintf ("%s.nip.io" , hostIP )
116
+ }
117
+
113
118
// Create router cert
114
119
cmdOutput := & bytes.Buffer {}
115
120
createCertOptions := & admin.CreateServerCertOptions {
@@ -120,10 +125,10 @@ func (h *Helper) InstallRouter(kubeClient kclientset.Interface, f *clientcmd.Fac
120
125
},
121
126
Overwrite : true ,
122
127
Hostnames : []string {
123
- fmt . Sprintf ( "%s.nip.io" , hostIP ) ,
128
+ routingSuffix ,
124
129
// This will ensure that routes using edge termination and the default
125
130
// certs will use certs valid for their arbitrary subdomain names.
126
- fmt .Sprintf ("*.%s.nip.io " , hostIP ),
131
+ fmt .Sprintf ("*.%s" , routingSuffix ),
127
132
},
128
133
CertFile : filepath .Join (masterDir , "router.crt" ),
129
134
KeyFile : filepath .Join (masterDir , "router.key" ),
You can’t perform that action at this time.
0 commit comments