Skip to content

Commit

Permalink
Avoid cn-north-1d (#3920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Callisto13 committed Jul 2, 2021
1 parent afe0890 commit 8f63d95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/az/az.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ type AvailabilityZoneSelector struct {
// NewSelectorWithDefaults create a new AvailabilityZoneSelector with the
// default selection strategy and usage rules
func NewSelectorWithDefaults(ec2api ec2iface.EC2API) *AvailabilityZoneSelector {
avoidZones := map[string]bool{}
avoidZones := map[string]bool{
"cn-north-1d": true,
}

return &AvailabilityZoneSelector{
ec2api: ec2api,
Expand All @@ -105,7 +107,9 @@ func NewSelectorWithDefaults(ec2api ec2iface.EC2API) *AvailabilityZoneSelector {
// NewSelectorWithMinRequired create a new AvailabilityZoneSelector with the
// minimum required selection strategy and usage rules
func NewSelectorWithMinRequired(ec2api ec2iface.EC2API) *AvailabilityZoneSelector {
avoidZones := map[string]bool{}
avoidZones := map[string]bool{
"cn-north-1d": true,
}

return &AvailabilityZoneSelector{
ec2api: ec2api,
Expand Down

0 comments on commit 8f63d95

Please sign in to comment.