Skip to content

Commit

Permalink
Merge pull request #94 from openshift-cherrypick-robot/cherry-pick-93…
Browse files Browse the repository at this point in the history
…-to-release-4.10

[release-4.10] Bug OCPBUGS-5419: Add ApplicationSecurityGroups to InterfaceIPConfiguration
  • Loading branch information
openshift-merge-robot committed Jan 11, 2023
2 parents 143cb59 + 8312a4c commit f660e7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cloudprovider/azure.go
Expand Up @@ -102,6 +102,8 @@ func (a *Azure) AssignPrivateIP(ip net.IP, node *corev1.Node) error {
if err != nil {
return err
}
applicationSecurityGroups := (*networkInterfaces[0].IPConfigurations)[0].InterfaceIPConfigurationPropertiesFormat.ApplicationSecurityGroups

// Perform the operation against the first interface listed, which will be
// the primary interface (if it's defined as such) or the first one returned
// following the order Azure specifies.
Expand All @@ -119,6 +121,7 @@ func (a *Azure) AssignPrivateIP(ip net.IP, node *corev1.Node) error {
Subnet: (*networkInterface.IPConfigurations)[0].Subnet,
Primary: &untrue,
LoadBalancerBackendAddressPools: (*networkInterface.IPConfigurations)[0].LoadBalancerBackendAddressPools,
ApplicationSecurityGroups: applicationSecurityGroups,
},
}
ipConfigurations = append(ipConfigurations, newIPConfiguration)
Expand Down

0 comments on commit f660e7e

Please sign in to comment.