utils

package
v1.21.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EnableADPAnnotation = "agent.datadoghq.com/adp-enabled"
View Source
const EnableFineGrainedKubeletAuthz = "agent.datadoghq.com/fine-grained-kubelet-authorization-enabled"
View Source
const ProcessConfigRunInCoreAgentMinVersion = "7.60.0-0"

Variables

This section is empty.

Functions

func HasAgentDataPlaneAnnotation added in v1.11.0

func HasAgentDataPlaneAnnotation(dda metav1.Object) bool

HasAgentDataPlaneAnnotation returns true if the Agent Data Plane is enabled via the dedicated `agent.datadoghq.com/adp-enabled` annotation

func HasFineGrainedKubeletAuthz added in v1.20.0

func HasFineGrainedKubeletAuthz(dda metav1.Object) bool

HasFineGrainedKubeletAuthz returns true if the feature is enabled via the dedicated `agent.datadoghq.com/fine-grained-kubelet-authorization-enabled` annotation

func ShouldRunProcessChecksInCoreAgent

func ShouldRunProcessChecksInCoreAgent(ddaSpec *v2alpha1.DatadogAgentSpec) bool

ShouldRunProcessChecksInCoreAgent determines whether allow process checks to run in core agent based on environment variables and the agent version.

Types

type RBACBuilder

type RBACBuilder struct {
	// contains filtered or unexported fields
}

RBACBuilder provides a simple builder for creating RBAC policy rules for custom resources

func NewRBACBuilder

func NewRBACBuilder(verbs ...string) *RBACBuilder

NewRBACBuilder creates a new RBACBuilder instance with the specified verbs

func (*RBACBuilder) AddGroupKind

func (rb *RBACBuilder) AddGroupKind(group, resource string, verbs ...string) *RBACBuilder

AddGroupKind adds a custom resource by group and resource name with optional verbs If no verbs are provided, uses the default verbs from NewRBACBuilder

func (*RBACBuilder) Build

func (rb *RBACBuilder) Build() []rbacv1.PolicyRule

Build creates the final RBAC policy rules

Jump to

Keyboard shortcuts

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