Update gofmt for go1.11
This commit is contained in:
@@ -702,7 +702,7 @@ func (az *Cloud) reconcileLoadBalancer(clusterName string, service *v1.Service,
|
||||
|
||||
newConfigs = append(newConfigs,
|
||||
network.FrontendIPConfiguration{
|
||||
Name: to.StringPtr(lbFrontendIPConfigName),
|
||||
Name: to.StringPtr(lbFrontendIPConfigName),
|
||||
FrontendIPConfigurationPropertiesFormat: fipConfigurationProperties,
|
||||
})
|
||||
glog.V(10).Infof("reconcileLoadBalancer for service (%s)(%t): lb frontendconfig(%s) - adding", serviceName, wantLb, lbFrontendIPConfigName)
|
||||
@@ -1025,8 +1025,8 @@ func (az *Cloud) reconcileSecurityGroup(clusterName string, service *v1.Service,
|
||||
DestinationPortRange: to.StringPtr(strconv.Itoa(int(port.Port))),
|
||||
SourceAddressPrefix: to.StringPtr(sourceAddressPrefixes[j]),
|
||||
DestinationAddressPrefix: to.StringPtr(destinationIPAddress),
|
||||
Access: network.SecurityRuleAccessAllow,
|
||||
Direction: network.SecurityRuleDirectionInbound,
|
||||
Access: network.SecurityRuleAccessAllow,
|
||||
Direction: network.SecurityRuleDirectionInbound,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1226,8 +1226,8 @@ func makeConsolidatable(rule network.SecurityRule) network.SecurityRule {
|
||||
SourceAddressPrefix: rule.SourceAddressPrefix,
|
||||
SourceAddressPrefixes: rule.SourceAddressPrefixes,
|
||||
DestinationAddressPrefixes: collectionOrSingle(rule.DestinationAddressPrefixes, rule.DestinationAddressPrefix),
|
||||
Access: rule.Access,
|
||||
Direction: rule.Direction,
|
||||
Access: rule.Access,
|
||||
Direction: rule.Direction,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1248,8 +1248,8 @@ func consolidate(existingRule network.SecurityRule, newRule network.SecurityRule
|
||||
SourceAddressPrefix: existingRule.SourceAddressPrefix,
|
||||
SourceAddressPrefixes: existingRule.SourceAddressPrefixes,
|
||||
DestinationAddressPrefixes: destinations,
|
||||
Access: existingRule.Access,
|
||||
Direction: existingRule.Direction,
|
||||
Access: existingRule.Access,
|
||||
Direction: existingRule.Direction,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user