Skip to content

Commit 6597806

Browse files
authored
Manifest - add new agentless fields (#21)
Add agentless.{resources,is_default} fields.
1 parent 5a9fd3f commit 6597806

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

fleetpkg.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,22 @@ type DeploymentModes struct {
288288

289289
// Options specific to the Agentless deployment mode. This mode is used in offerings where the Elastic Agents running these policies are fully managed for the user.
290290
Agentless struct {
291-
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
292-
Organization string `json:"organization,omitempty" yaml:"organization,omitempty"` // The responsible organization of the integration. This is used to tag the agentless agent deployments for monitoring.
293-
Division string `json:"division,omitempty" yaml:"division,omitempty"` // The division responsible for the integration. This is used to tag the agentless agent deployments for monitoring.
294-
Team string `json:"team,omitempty" yaml:"team,omitempty"` // The team responsible for the integration. This is used to tag the agentless agent deployments for monitoring.
291+
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
292+
IsDefault *bool `json:"is_default,omitempty" yaml:"is_default,omitempty"` // On policy templates that support multiple deployment modes, this setting can be set to true to use agentless mode by default.
293+
Organization string `json:"organization,omitempty" yaml:"organization,omitempty"` // The responsible organization of the integration. This is used to tag the agentless agent deployments for monitoring.
294+
Division string `json:"division,omitempty" yaml:"division,omitempty"` // The division responsible for the integration. This is used to tag the agentless agent deployments for monitoring.
295+
Team string `json:"team,omitempty" yaml:"team,omitempty"` // The team responsible for the integration. This is used to tag the agentless agent deployments for monitoring.
296+
Resources *AgentlessResources `json:"resources,omitempty" yaml:"resources,omitempty"` // The computing resources specifications for the Agentless deployment.
295297
} `json:"agentless,omitempty" yaml:"agentless,omitempty"`
296298
}
297299

300+
type AgentlessResources struct {
301+
Requests struct {
302+
Memory string `json:"memory,omitempty" yaml:"memory,omitempty"` // The amount of memory that the Agentless deployment will be initially allocated.
303+
CPU string `json:"cpu,omitempty" yaml:"cpu,omitempty"` // The amount of CPUs that the Agentless deployment will be initially allocated.
304+
} `json:"requests,omitempty" yaml:"requests,omitempty"` // The computing resources that the Agentless deployment will be initially allocated.
305+
}
306+
298307
type Owner struct {
299308
Github string `json:"github,omitempty" yaml:"github,omitempty"`
300309
Type string `json:"type,omitempty" yaml:"type,omitempty"` // Describes who owns the package and the level of support that is provided. Value may be elastic, partner, or community.

0 commit comments

Comments
 (0)