Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions api/datadoghq/v2alpha1/datadogagent_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ type DatadogFeatures struct {
HelmCheck *HelmCheckFeatureConfig `json:"helmCheck,omitempty"`
// ControlPlaneMonitoring configuration.
ControlPlaneMonitoring *ControlPlaneMonitoringFeatureConfig `json:"controlPlaneMonitoring,omitempty"`
// KubeActions configuration.
KubeActions *KubeActionsFeatureConfig `json:"kubeActions,omitempty"`
}

// KubeActionsFeatureConfig allows configuration of the Kubernetes Actions feature.
// When enabled, the Cluster Agent is granted RBAC to perform remediation actions
// (deleting pods, restarting deployments) driven by the Datadog Kubernetes Actions product.
// +k8s:openapi-gen=true
type KubeActionsFeatureConfig struct {
// Enabled enables the Kubernetes Actions feature on the Cluster Agent.
// Default: false
// +optional
Enabled *bool `json:"enabled,omitempty"`
}

// Configuration structs for each feature in DatadogFeatures. All parameters are optional and have default values when necessary.
Expand Down
25 changes: 25 additions & 0 deletions api/datadoghq/v2alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion api/datadoghq/v2alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions config/crd/bases/v1/datadoghq.com_datadogagentinternals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,15 @@ spec:
Default: {}
type: object
type: object
kubeActions:
description: KubeActions configuration.
properties:
enabled:
description: |-
Enabled enables the Kubernetes Actions feature on the Cluster Agent.
Default: false
type: boolean
type: object
kubeStateMetricsCore:
description: KubeStateMetricsCore check configuration.
properties:
Expand Down Expand Up @@ -10428,6 +10437,15 @@ spec:
Default: {}
type: object
type: object
kubeActions:
description: KubeActions configuration.
properties:
enabled:
description: |-
Enabled enables the Kubernetes Actions feature on the Cluster Agent.
Default: false
type: boolean
type: object
kubeStateMetricsCore:
description: KubeStateMetricsCore check configuration.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,17 @@
},
"type": "object"
},
"kubeActions": {
"additionalProperties": false,
"description": "KubeActions configuration.",
"properties": {
"enabled": {
"description": "Enabled enables the Kubernetes Actions feature on the Cluster Agent.\nDefault: false",
"type": "boolean"
}
},
"type": "object"
},
"kubeStateMetricsCore": {
"additionalProperties": false,
"description": "KubeStateMetricsCore check configuration.",
Expand Down Expand Up @@ -10149,6 +10160,17 @@
},
"type": "object"
},
"kubeActions": {
"additionalProperties": false,
"description": "KubeActions configuration.",
"properties": {
"enabled": {
"description": "Enabled enables the Kubernetes Actions feature on the Cluster Agent.\nDefault: false",
"type": "boolean"
}
},
"type": "object"
},
"kubeStateMetricsCore": {
"additionalProperties": false,
"description": "KubeStateMetricsCore check configuration.",
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,15 @@ spec:
Default: {}
type: object
type: object
kubeActions:
description: KubeActions configuration.
properties:
enabled:
description: |-
Enabled enables the Kubernetes Actions feature on the Cluster Agent.
Default: false
type: boolean
type: object
kubeStateMetricsCore:
description: KubeStateMetricsCore check configuration.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,17 @@
},
"type": "object"
},
"kubeActions": {
"additionalProperties": false,
"description": "KubeActions configuration.",
"properties": {
"enabled": {
"description": "Enabled enables the Kubernetes Actions feature on the Cluster Agent.\nDefault: false",
"type": "boolean"
}
},
"type": "object"
},
"kubeStateMetricsCore": {
"additionalProperties": false,
"description": "KubeStateMetricsCore check configuration.",
Expand Down
18 changes: 18 additions & 0 deletions config/crd/bases/v1/datadoghq.com_datadogagents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,15 @@ spec:
Default: {}
type: object
type: object
kubeActions:
description: KubeActions configuration.
properties:
enabled:
description: |-
Enabled enables the Kubernetes Actions feature on the Cluster Agent.
Default: false
type: boolean
type: object
kubeStateMetricsCore:
description: KubeStateMetricsCore check configuration.
properties:
Expand Down Expand Up @@ -10521,6 +10530,15 @@ spec:
Default: {}
type: object
type: object
kubeActions:
description: KubeActions configuration.
properties:
enabled:
description: |-
Enabled enables the Kubernetes Actions feature on the Cluster Agent.
Default: false
type: boolean
type: object
kubeStateMetricsCore:
description: KubeStateMetricsCore check configuration.
properties:
Expand Down
22 changes: 22 additions & 0 deletions config/crd/bases/v1/datadoghq.com_datadogagents_v2alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,17 @@
},
"type": "object"
},
"kubeActions": {
"additionalProperties": false,
"description": "KubeActions configuration.",
"properties": {
"enabled": {
"description": "Enabled enables the Kubernetes Actions feature on the Cluster Agent.\nDefault: false",
"type": "boolean"
}
},
"type": "object"
},
"kubeStateMetricsCore": {
"additionalProperties": false,
"description": "KubeStateMetricsCore check configuration.",
Expand Down Expand Up @@ -10248,6 +10259,17 @@
},
"type": "object"
},
"kubeActions": {
"additionalProperties": false,
"description": "KubeActions configuration.",
"properties": {
"enabled": {
"description": "Enabled enables the Kubernetes Actions feature on the Cluster Agent.\nDefault: false",
"type": "boolean"
}
},
"type": "object"
},
"kubeStateMetricsCore": {
"additionalProperties": false,
"description": "KubeStateMetricsCore check configuration.",
Expand Down
1 change: 1 addition & 0 deletions docs/configuration.v2alpha1.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ spec:
| features.helmCheck.collectEvents | CollectEvents set to `true` enables event collection in the Helm check (Requires Agent 7.36.0+ and Cluster Agent 1.20.0+) Default: false |
| features.helmCheck.enabled | Enables the Helm check. Default: false |
| features.helmCheck.valuesAsTags | ValuesAsTags collects Helm values from a release and uses them as tags (Requires Agent and Cluster Agent 7.40.0+). Default: {} |
| features.kubeActions.enabled | Enables the Kubernetes Actions feature on the Cluster Agent. Default: false |
| features.kubeStateMetricsCore.collectCrMetrics | `CollectCrMetrics` defines custom resources for the kube-state-metrics core check to collect. The datadog agent uses the same logic as upstream `kube-state-metrics`. So is its configuration. The exact structure and existing fields of each item in this list can be found in: https://github.com/kubernetes/kube-state-metrics/blob/main/docs/metrics/extend/customresourcestate-metrics.md |
| features.kubeStateMetricsCore.conf.configData | ConfigData corresponds to the configuration file content. |
| features.kubeStateMetricsCore.conf.configMap.items | Maps a ConfigMap data `key` to a file `path` mount. |
Expand Down
Loading
Loading