agent

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DDContainerImageEnabled = "DD_CONTAINER_IMAGE_ENABLED"
)

Variables

This section is empty.

Functions

func DefaultCapabilitiesForSystemProbe

func DefaultCapabilitiesForSystemProbe() []corev1.Capability

DefaultCapabilitiesForSystemProbe returns the default Security Context Capabilities for the System Probe container

func DefaultSeccompConfigDataForSystemProbe added in v1.15.0

func DefaultSeccompConfigDataForSystemProbe() map[string]string

DefaultSeccompConfigDataForSystemProbe returns configmap data for the default seccomp profile

func GetAgentRoleName

func GetAgentRoleName(dda metav1.Object) string

GetAgentRoleName returns the name of the role for the Agent

func GetDefaultAgentClusterRolePolicyRules added in v1.15.0

func GetDefaultAgentClusterRolePolicyRules(excludeNonResourceRules bool) []rbacv1.PolicyRule

GetDefaultAgentClusterRolePolicyRules returns the default policy rules for the Agent cluster role

func NewDaemonset

func NewDaemonset(owner metav1.Object, edsOptions *ExtendedDaemonsetOptions, componentKind, componentName, version string, selector *metav1.LabelSelector, instanceName string) *appsv1.DaemonSet

NewDaemonset use to generate the skeleton of a new daemonset based on few information

func NewDefaultAgentDaemonset

func NewDefaultAgentDaemonset(dda metav1.Object, edsOptions *ExtendedDaemonsetOptions, agentComponent feature.RequiredComponent, instanceName string) *appsv1.DaemonSet

NewDefaultAgentDaemonset return a new default agent DaemonSet TODO: remove instanceName once v2 reconcile is removed

func NewDefaultAgentExtendedDaemonset

func NewDefaultAgentExtendedDaemonset(dda metav1.Object, edsOptions *ExtendedDaemonsetOptions, agentComponent feature.RequiredComponent) *edsv1alpha1.ExtendedDaemonSet

NewDefaultAgentExtendedDaemonset return a new default agent DaemonSet

func NewDefaultAgentPodTemplateSpec

func NewDefaultAgentPodTemplateSpec(dda metav1.Object, agentComponent feature.RequiredComponent, labels map[string]string) *corev1.PodTemplateSpec

NewDefaultAgentPodTemplateSpec returns a defaulted node agent PodTemplateSpec with a single multi-process container or multiple single-process containers

func NewExtendedDaemonset

func NewExtendedDaemonset(owner metav1.Object, edsOptions *ExtendedDaemonsetOptions, componentKind, componentName, version string, selector *metav1.LabelSelector) *edsv1alpha1.ExtendedDaemonSet

NewExtendedDaemonset use to generate the skeleton of a new extended daemonset based on few information

Types

type ExtendedDaemonsetOptions

type ExtendedDaemonsetOptions struct {
	Enabled bool

	MaxPodUnavailable         string
	MaxPodSchedulerFailure    string
	SlowStartAdditiveIncrease string

	CanaryDuration                      time.Duration
	CanaryReplicas                      string
	CanaryAutoPauseEnabled              bool
	CanaryAutoPauseMaxRestarts          int32
	CanaryAutoFailEnabled               bool
	CanaryAutoFailMaxRestarts           int32
	CanaryAutoPauseMaxSlowStartDuration time.Duration
}

ExtendedDaemonsetOptions defines ExtendedDaemonset options

Jump to

Keyboard shortcuts

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