зеркало из https://github.com/Azure/ARO-RP.git
ensure API Server public IP is added to DependsOn
This commit is contained in:
Родитель
e6816b8fa6
Коммит
24d7966271
|
@ -553,9 +553,15 @@ func (m *manager) networkPublicLoadBalancer(azureRegion string, outboundIPs []ap
|
|||
APIVersion: azureclient.APIVersion("Microsoft.Network"),
|
||||
DependsOn: []string{},
|
||||
}
|
||||
|
||||
if m.doc.OpenShiftCluster.Properties.NetworkProfile.LoadBalancerProfile.ManagedOutboundIPs == nil && m.doc.OpenShiftCluster.Properties.APIServerProfile.Visibility == api.VisibilityPublic {
|
||||
armResource.DependsOn = append(armResource.DependsOn, "Microsoft.Network/publicIPAddresses/"+m.doc.OpenShiftCluster.Properties.InfraID+"-pip-v4")
|
||||
}
|
||||
|
||||
for _, ip := range outboundIPs {
|
||||
ipName := stringutils.LastTokenByte(ip.ID, '/')
|
||||
armResource.DependsOn = append(armResource.DependsOn, "Microsoft.Network/publicIPAddresses/"+ipName)
|
||||
}
|
||||
|
||||
return armResource
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче