Skip to content
Closed
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 @@ -118,6 +118,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.

31 changes: 29 additions & 2 deletions api/datadoghq/v2alpha1/zz_generated.openapi.go

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

20 changes: 19 additions & 1 deletion config/crd/bases/v1/datadoghq.com_datadogagentinternals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.3
controller-gen.kubebuilder.io/version: v0.16.3
name: datadogagentinternals.datadoghq.com
spec:
group: datadoghq.com
Expand Down 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 @@ -10440,6 +10449,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 @@ -10164,6 +10175,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
11 changes: 10 additions & 1 deletion config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.3
controller-gen.kubebuilder.io/version: v0.16.3
name: datadogagentprofiles.datadoghq.com
spec:
group: datadoghq.com
Expand Down 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
20 changes: 19 additions & 1 deletion config/crd/bases/v1/datadoghq.com_datadogagents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.3
controller-gen.kubebuilder.io/version: v0.16.3
name: datadogagents.datadoghq.com
spec:
group: datadoghq.com
Expand Down 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 @@ -10533,6 +10542,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 @@ -10263,6 +10274,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
Loading
Loading