mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
for #24471 This PR adds missing support for updating a team's failing policy webhook via GitOps: * If `team_settings.webhook_settings.failing_policies_webhook` is not set, the webhook will be disabled and all settings cleared. * If `team_settings.webhook_settings.failing_policies_webhook` is set, the webhook will be configured according to the specified settings. A new test has been added to verify this functionality, and I tested it locally using the `fleetctl gitops` command. --------- Co-authored-by: Dante Catalfamo <43040593+dantecatalfamo@users.noreply.github.com>
15 lines
No EOL
365 B
YAML
15 lines
No EOL
365 B
YAML
name: "${TEST_TEAM_NAME}"
|
|
team_settings:
|
|
secrets:
|
|
- secret: "SampleSecret123-team"
|
|
- secret: "ABC-team"
|
|
webhook_settings:
|
|
host_status_webhook:
|
|
enable_host_status_webhook: true
|
|
destination_url: http://coolwebhook.biz
|
|
days_count: 1
|
|
host_percentage: 50
|
|
software:
|
|
queries:
|
|
policies:
|
|
agent_options: |