canonical / gomaasclient

Go MAAS client
Apache License 2.0
23 stars 28 forks source link

feat: support for adding, removing, updating machines/devices Workload Annotations #45

Closed sachin120 closed 11 months ago

sachin120 commented 11 months ago

For Issue: https://github.com/maas/gomaasclient/issues/44#issue-2065801385

What does this implement

add, remove or update Machine/Device workload annotations

Sovietaced commented 11 months ago

It would also be helpful to read workload annotations from machines/devices. This would be required for the terraform provider to work correctly with this feature.

sachin120 commented 11 months ago

It would also be helpful to read workload annotations from machines/devices. This would be required for the terraform provider to work correctly with this feature.

I have added the WorkloadAnnotation Field in both structs Machine/Device. This should fix getting values from the Machine/Device. Is this correct ??

@Sovietaced I am not able to fix Go-Lint errors. Can you pls guide me?