fleet/cmd/fleetctl/fleetctl/testdata/macosSetupExpectedTeam1Empty.yml
Scott Gress 55b65e2559
Support report/fleet as spec "kinds" (#40586)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** For #39314 
**Related issue:** For #39238  

# Details

This PR allows the use of "fleet" and "report" as spec "kinds",
deprecating the use of "team" and "query".

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] 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.
n/a

## Testing

- [X] Added/updated automated tests
- [X] QA'd all new/changed functionality manually

Deprecation logs assume `--enable-log-topics=deprecated-field-names` is
used in the command

- [ ] `fleetctl apply -f /path/to/spec` should add/update a fleet when
used with a spec containing `kind: fleet`
- [ ] `fleetctl apply -f /path/to/spec` should add/update a report when
used with a spec containing `kind: report`
- [ ] `fleetctl apply -f /path/to/spec` should add/update a fleet when
used with a spec containing `kind: team`, and log a deprecation warning
- [ ] `fleetctl apply -f /path/to/spec` should add/update a report when
used with a spec containing `kind: query`, , and log a deprecation
warning
2026-02-26 13:07:21 -06:00

104 lines
2.7 KiB
YAML

---
apiVersion: v1
kind: fleet
spec:
fleet:
host_expiry_settings:
host_expiry_enabled: false
host_expiry_window: 0
features:
enable_host_users: false
enable_software_inventory: false
integrations:
google_calendar: null
conditional_access_enabled: null
mdm:
enable_disk_encryption: false
windows_require_bitlocker_pin: null
macos_settings:
custom_settings: null
android_settings:
custom_settings: null
certificates: null
macos_setup:
bootstrap_package: null
enable_end_user_authentication: false
macos_setup_assistant: null
manual_agent_install: null
require_all_software_macos: false
enable_release_device_manually: false
script: null
software: null
macos_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ios_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ipados_updates:
deadline: null
minimum_version: null
update_new_hosts: null
windows_updates:
deadline_days: null
grace_period_days: null
windows_settings:
custom_settings: null
scripts: null
secrets: null
webhook_settings:
host_status_webhook: null
failing_policies_webhook: null
name: tm1
team:
host_expiry_settings:
host_expiry_enabled: false
host_expiry_window: 0
features:
enable_host_users: false
enable_software_inventory: false
integrations:
google_calendar: null
conditional_access_enabled: null
mdm:
enable_disk_encryption: false
windows_require_bitlocker_pin: null
macos_settings:
custom_settings: null
android_settings:
custom_settings: null
certificates: null
macos_setup:
bootstrap_package: null
enable_end_user_authentication: false
macos_setup_assistant: null
manual_agent_install: null
require_all_software_macos: false
enable_release_device_manually: false
script: null
software: null
macos_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ios_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ipados_updates:
deadline: null
minimum_version: null
update_new_hosts: null
windows_updates:
deadline_days: null
grace_period_days: null
windows_settings:
custom_settings: null
scripts: null
secrets: null
webhook_settings:
host_status_webhook: null
failing_policies_webhook: null
name: tm1