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.
2 parents 3d7d507 + 8750716 commit 14ffafaCopy full SHA for 14ffafa
azure/scope/managedmachinepool.go
@@ -310,6 +310,9 @@ func (s *ManagedMachinePoolScope) SetCAPIMachinePoolReplicas(replicas *int32) {
310
311
// SetCAPIMachinePoolAnnotation sets the specified annotation on the associated MachinePool.
312
func (s *ManagedMachinePoolScope) SetCAPIMachinePoolAnnotation(key, value string) {
313
+ if s.MachinePool.Annotations == nil {
314
+ s.MachinePool.Annotations = make(map[string]string)
315
+ }
316
s.MachinePool.Annotations[key] = value
317
}
318
0 commit comments