gitops changes for team labels (#37801)

**Related issue:** Resolves #36759

Allow users to manage team labels via gitops.
This commit is contained in:
Juan Fernandez
2026-01-06 17:47:30 -04:00
committed by GitHub
parent 0be34ff45f
commit b2df8596bc
9 changed files with 903 additions and 160 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ func main() {
labelSpecSubset := *labelSpec
labelSpecSubset.Hosts = batch
printf("Applying label %s to %d hosts...\n", labelSpecSubset.Name, len(labelSpecSubset.Hosts))
if err := apiClient.ApplyLabels([]*fleet.LabelSpec{&labelSpecSubset}); err != nil {
if err := apiClient.ApplyLabels([]*fleet.LabelSpec{&labelSpecSubset}, nil, nil); err != nil {
panic(err)
}
printf("Applied label %s to %d hosts\n", labelSpecSubset.Name, len(labelSpecSubset.Hosts))