Skip to content

Commit

Permalink
update agent policy schema to include overrides functionality
Browse files Browse the repository at this point in the history
You can use this setting to override custom settings which aren't available in fleet UI.
For eg. https://www.elastic.co/guide/en/fleet/current/enable-custom-policy-settings.html and https://support.elastic.dev/knowledge/view/06b69893

This will make things much easier for elastic/elastic-agent#5648
  • Loading branch information
VihasMakwana authored Oct 4, 2024
1 parent d95aa61 commit 35bb90d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kibana/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type AgentPolicy struct {
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
Overrides []map[string]interface{} `json:"overrides,omitempty"`
IsProtected bool `json:"is_protected"`
}

Expand Down Expand Up @@ -110,6 +111,7 @@ type AgentPolicyUpdateRequest struct {
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
Overrides []map[string]interface{} `json:"overrides,omitempty"`
IsProtected *bool `json:"is_protected,omitempty"` // Optional bool for compatibility with the older pre 8.9.0 stack
}

Expand Down

0 comments on commit 35bb90d

Please sign in to comment.