mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
for #32014 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [X] Added/updated automated tests - [X] Where appropriate, [automated tests simulate multiple hosts and test for host isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing) (updates to one hosts's records do not affect another) - [X] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - GitOps manual labels can now reference hosts by Fleet host ID in addition to hostname, hardware serial, or UUID. - GitOps YAML/JSON accepts integers for host IDs; numeric IDs are handled seamlessly alongside strings. - Validation - Stronger input validation for label hosts: only strings or integers are allowed. - Clear error returned for invalid types (e.g., floats) in hosts lists. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
10 lines
284 B
YAML
10 lines
284 B
YAML
- name: Global label numero uno
|
|
description: A cool global label
|
|
query: SELECT 1 FROM osquery_info
|
|
label_membership_type: dynamic
|
|
- name: Global label numero dos
|
|
description: A fly global label
|
|
hosts:
|
|
- host1
|
|
- 2
|
|
label_membership_type: manual
|