mirror of
https://github.com/fleetdm/fleet
synced 2026-05-08 09:40:49 +00:00
For #24473 This PR allows users to add / update / remove labels from queries via Gitops. ## Testing 1. Create a few labels in the UI 1. Create a global query "foo" in the UI without labels 2. Create a global query "bar" in the UI with labels 2. Create a global query "baz" in the UI with labels 4. Use `fleetctl gitops` with a global .yml file, and under `queries:` and "foo", "bar", "baz" and "boop". * Add labels to "foo" with `labels_include_any:` * Don't add `labels_include_any:` to "bar" * Add labels to "baz" with `labels_include_any:`, but different labels than what you added in the UI * Add labels to "boop" with `labels_include_any:` The expected outcome when viewing the queries in the UI (on the "edit query" screen) * Foo, Baz and Boop should have the labels specified in gitops * Bar should have no labels |
||
|---|---|---|
| .. | ||
| gitops | ||
| convert_input.conf | ||
| convert_output.yml | ||
| expectedGetConfigAppConfigJson.json | ||
| expectedGetConfigAppConfigTeamMaintainerJson.json | ||
| expectedGetConfigAppConfigTeamMaintainerYaml.yml | ||
| expectedGetConfigAppConfigYaml.yml | ||
| expectedGetConfigIncludeServerConfigJson.json | ||
| expectedGetConfigIncludeServerConfigYaml.yml | ||
| expectedGetTeamsJson.json | ||
| expectedGetTeamsText.txt | ||
| expectedGetTeamsYaml.yml | ||
| expectedHostDetailResponseJson.json | ||
| expectedHostDetailResponseYaml.yml | ||
| expectedListHostsJson.json | ||
| expectedListHostsMDM.json | ||
| expectedListHostsYaml.yml | ||
| macosSetupExpectedAppConfigEmpty.yml | ||
| macosSetupExpectedAppConfigSet.yml | ||
| macosSetupExpectedTeam1And2Empty.yml | ||
| macosSetupExpectedTeam1And2Set.yml | ||
| macosSetupExpectedTeam1Empty.yml | ||
| macosSetupExpectedTeam1Set.yml | ||