func()

in pkg/azure/client.go [211:225]


func (az *azClient) updateIpGroup(sourceAddress []*string, ipGroupsName string) *runtime.Poller[a.IPGroupsClientCreateOrUpdateResponse] {
	poller, err := az.ipGroupClient.BeginCreateOrUpdate(az.ctx, az.resourceGroupName, ipGroupsName, a.IPGroup{
		Location: to.StringPtr(az.firewallPolicyLoc),
		Tags:     map[string]*string{},
		Properties: &a.IPGroupPropertiesFormat{
			IPAddresses: sourceAddress,
		},
	}, nil)
	if err != nil {
		klog.Error("Error updating the Ip Group: ", err)
	}
	klog.Info("Updating Ip Group: ", ipGroupsName)

	return poller
}