Skip to content

Commit

Permalink
Merge pull request #3072 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…3063-to-release-1.6

[release-1.6] Fixing panic on AzureMachinePool creation with auto-scale
  • Loading branch information
k8s-ci-robot authored Jan 21, 2023
2 parents 1c1091e + fb11535 commit 2bc4999
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure/scope/managedmachinepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ func (s *ManagedMachinePoolScope) SetCAPIMachinePoolReplicas(replicas *int32) {

// SetCAPIMachinePoolAnnotation sets the specified annotation on the associated MachinePool.
func (s *ManagedMachinePoolScope) SetCAPIMachinePoolAnnotation(key, value string) {
if s.MachinePool.Annotations == nil {
s.MachinePool.Annotations = make(map[string]string)
}
s.MachinePool.Annotations[key] = value
}

Expand Down

0 comments on commit 2bc4999

Please sign in to comment.