clusterchecksrunner

package
v1.33.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DDClcRunnerEnabled         = "DD_CLC_RUNNER_ENABLED"
	DDClcRunnerHost            = "DD_CLC_RUNNER_HOST"
	DDClcRunnerID              = "DD_CLC_RUNNER_ID"
	DDEnableMetadataCollection = "DD_ENABLE_METADATA_COLLECTION"
)
View Source
const ClusterChecksRunnerGroupLabelKey = "agent.datadoghq.com/clusterchecksrunner-group"

ClusterChecksRunnerGroupLabelKey labels a runner group's Deployment and pods with the group name.

View Source
const CoreGroupName = "core"

CoreGroupName is the built-in core group's name; a user group with this name replaces it.

Variables

This section is empty.

Functions

func DefaultAffinity

func DefaultAffinity() *corev1.Affinity

DefaultAffinity returns the pod anti affinity of the cluster checks runners The default anti affinity prefers scheduling the runners on different nodes if possible for better checks stability in case of node failure.

func GetCCRRbacResourcesName added in v1.15.0

func GetCCRRbacResourcesName(dda metav1.Object) string

GetCCRRbacResourcesName returns the Cluster Checks Runner RBAC resource name

func GetClusterChecksRunnerGroupName

func GetClusterChecksRunnerGroupName(dda metav1.Object, groupName string) string

GetClusterChecksRunnerGroupName returns a runner group's Deployment name.

func GetClusterChecksRunnerName

func GetClusterChecksRunnerName(dda metav1.Object) string

GetClusterChecksRunnerName return the Cluster-Checks-Runner name based on the DatadogAgent name

func GetClusterChecksRunnerPodDisruptionBudget added in v1.11.0

func GetClusterChecksRunnerPodDisruptionBudget(dda metav1.Object, useV1BetaPDB bool) client.Object

func GetClusterChecksRunnerPodDisruptionBudgetName added in v1.11.0

func GetClusterChecksRunnerPodDisruptionBudgetName(dda metav1.Object) string

func GetDefaultClusterChecksRunnerClusterRolePolicyRules added in v1.15.0

func GetDefaultClusterChecksRunnerClusterRolePolicyRules(dda metav1.Object, excludeNonResourceRules bool) []rbacv1.PolicyRule

GetDefaultClusterChecksRunnerClusterRolePolicyRules returns the default Cluster Role Policy Rules for the Cluster Checks Runner

func NewClusterChecksRunnerGroupDeployment

func NewClusterChecksRunnerGroupDeployment(dda metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec, groupName string) *appsv1.Deployment

NewClusterChecksRunnerGroupDeployment returns a runner group's Deployment. Its selector includes the group label so it never overlaps the default Cluster Checks Runner or other groups.

func NewDefaultClusterChecksRunnerDeployment

func NewDefaultClusterChecksRunnerDeployment(dda metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec) *appsv1.Deployment

NewDefaultClusterChecksRunnerDeployment return a new default cluster-checks-runner deployment

func NewDefaultClusterChecksRunnerPodTemplateSpec

func NewDefaultClusterChecksRunnerPodTemplateSpec(dda metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec) *corev1.PodTemplateSpec

NewDefaultClusterChecksRunnerPodTemplateSpec returns a default cluster-checks-runner for the cluster-agent deployment

func RunnerVersion

func RunnerVersion(obj metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec, checkName string) string

RunnerVersion returns the Agent version of the runners that run a check: its runner group's image when a group claims it, else the default Cluster Checks Runners' image.

func RunnersRequired

func RunnersRequired(obj metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec) bool

RunnersRequired returns whether the DDA needs the default Cluster Checks Runners or runner groups.

func RunsOnRunners

func RunsOnRunners(obj metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec, checkName string) bool

RunsOnRunners returns whether a cluster check runs on the default Cluster Checks Runners or on its runner group.

Types

type Group

type Group struct {
	Name     string                                  `json:"name"`
	Checks   []string                                `json:"checks"`
	Override *v2alpha1.DatadogAgentComponentOverride `json:"override,omitempty"`
}

Group is an experimental runner group: a dedicated Cluster Checks Runner Deployment that runs only the checks it claims.

func Groups

func Groups(obj metav1.Object, ddaSpec *v2alpha1.DatadogAgentSpec) ([]Group, error)

Groups returns the runner groups to deploy. There are none when cluster checks, the Cluster Agent or the Cluster Checks Runner component are disabled, or when the Cluster Agent is older than 7.86. Each group is otherwise checked on its own (see declaredGroups). A version the Operator cannot parse is assumed recent enough. The error reports what was left out.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL