Documentation
¶
Index ¶
Constants ¶
const EnableADPAnnotation = "agent.datadoghq.com/adp-enabled"
const EnableFineGrainedKubeletAuthz = "agent.datadoghq.com/fine-grained-kubelet-authorization-enabled"
const ProcessConfigRunInCoreAgentMinVersion = "7.60.0-0"
Variables ¶
This section is empty.
Functions ¶
func HasAgentDataPlaneAnnotation ¶ added in v1.11.0
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
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