Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
builder: include endpoint-addr in server cert (#66)
Browse files Browse the repository at this point in the history
Include the endpoint address override as domain/ip when creating the
server cert.

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
  • Loading branch information
dweomer authored Jul 14, 2021
1 parent cd4c925 commit 1d7e0d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/client/builder/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ func (a *Install) Secrets(_ context.Context, k *client.Interface) error {
domains := []string{
fmt.Sprintf("builder.%s.svc", k.Namespace),
}
if endpointIP := net.ParseIP(a.EndpointAddr); endpointIP != nil {
ips = append(ips, endpointIP)
} else if a.EndpointAddr != "" {
domains = append(domains, a.EndpointAddr)
}
for _, node := range nodeList.Items {
for _, addr := range node.Status.Addresses {
switch addr.Type {
Expand Down

0 comments on commit 1d7e0d4

Please sign in to comment.