Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/03_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ data:
operator-config.yaml: |
apiVersion: operator.openshift.io/v1alpha1
kind: GenericOperatorConfig
servingInfo:
bindNetwork: "tcp"
2 changes: 1 addition & 1 deletion pkg/operator2/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (c *authOperator) handleOAuthConfig(
ServingInfo: configv1.HTTPServingInfo{
ServingInfo: configv1.ServingInfo{
BindAddress: fmt.Sprintf("0.0.0.0:%d", 6443),
BindNetwork: "tcp4",
BindNetwork: "tcp",
// we have valid serving certs provided by service-ca
// this is our main server cert which is used if SNI does not match
CertInfo: configv1.CertInfo{
Expand Down
3 changes: 2 additions & 1 deletion pkg/operator2/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"reflect"
Expand Down Expand Up @@ -557,7 +558,7 @@ func (c *authOperator) getAPIServerIPs() ([]string, error) {

ips := make([]string, 0, len(subset.Addresses))
for _, address := range subset.Addresses {
ips = append(ips, fmt.Sprintf("%s:%d", address.IP, targetPort))
Comment thread
russellb marked this conversation as resolved.
ips = append(ips, net.JoinHostPort(address.IP, strconv.Itoa(targetPort)))
}
return ips, nil
}
Expand Down