Skip to content

Commit

Permalink
Add Nutanix platform
Browse files Browse the repository at this point in the history
Add Nutanix endpoints to NO_PROXY set.
  • Loading branch information
thunderboltsid committed Mar 23, 2022
1 parent a7392d7 commit 7ab56e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/util/proxyconfig/no_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ func MergeUserSystemNoProxy(proxy *configv1.Proxy, infra *configv1.Infrastructur
}
}

if infra.Spec.PlatformSpec.Type == configv1.NutanixPlatformType && infra.Spec.PlatformSpec.Nutanix != nil {
// Add user's Prism Central endpoint to the set
prismCentral := infra.Spec.PlatformSpec.Nutanix.PrismCentral.Address
set.Insert(prismCentral)

// Add user's Prism Element endpoints to the set
for _, prismElement := range infra.Spec.PlatformSpec.Nutanix.PrismElements {
set.Insert(prismElement.Endpoint.Address)
}
}

if len(network.Status.ClusterNetwork) > 0 {
for _, clusterNetwork := range network.Status.ClusterNetwork {
set.Insert(clusterNetwork.CIDR)
Expand Down

0 comments on commit 7ab56e2

Please sign in to comment.