Skip to content

Commit

Permalink
Add legacy node affinities to PV
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyers committed Jun 2, 2021
1 parent 13ac85d commit abcb542
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/driver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,11 @@ func newCreateVolumeResponse(disk *cloud.Disk) *csi.CreateVolumeResponse {
}
}

segments := map[string]string{TopologyKey: disk.AvailabilityZone}
segments := map[string]string{
TopologyKey: disk.AvailabilityZone,
"failure-domain.beta.kubernetes.io/zone": disk.AvailabilityZone,
"failure-domain.beta.kubernetes.io/region": disk.AvailabilityZone[0 : len(disk.AvailabilityZone)-1],
}

arn, err := arn.Parse(disk.OutpostArn)

Expand Down

0 comments on commit abcb542

Please sign in to comment.