We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ac065 commit 4e286d4Copy full SHA for 4e286d4
azure/scope/managedmachinepool.go
@@ -309,6 +309,9 @@ func (s *ManagedMachinePoolScope) SetCAPIMachinePoolReplicas(replicas *int32) {
309
310
// SetCAPIMachinePoolAnnotation sets the specified annotation on the associated MachinePool.
311
func (s *ManagedMachinePoolScope) SetCAPIMachinePoolAnnotation(key, value string) {
312
+ if s.MachinePool.Annotations == nil {
313
+ s.MachinePool.Annotations = make(map[string]string)
314
+ }
315
s.MachinePool.Annotations[key] = value
316
}
317
0 commit comments