utils

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 10 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 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 added in v1.21.0

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 added in v1.21.0

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

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

func NewRBACBuilder added in v1.21.0

func NewRBACBuilder(verbs ...string) *RBACBuilder

NewRBACBuilder creates a new RBACBuilder instance with the specified verbs

func (*RBACBuilder) AddGroupKind added in v1.21.0

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 added in v1.21.0

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