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 310fb1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/util/proxyconfig/no_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ func MergeUserSystemNoProxy(proxy *configv1.Proxy, infra *configv1.Infrastructur
// From https://cloud.google.com/vpc/docs/special-configurations add GCP metadata.
// "metadata.google.internal." added due to https://bugzilla.redhat.com/show_bug.cgi?id=1754049
set.Insert("metadata", "metadata.google.internal", "metadata.google.internal.")
case configv1.NutanixPlatformType:
// 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)
}
}
}

Expand Down

0 comments on commit 310fb1f

Please sign in to comment.