canonical / gomaasclient

Go MAAS client
Apache License 2.0
19 stars 27 forks source link

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

Closed sachin120 closed 8 months ago

sachin120 commented 8 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 8 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 8 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?