utils

package
v1.32.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 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 NotFoundString = "404 Not Found"

Variables

This section is empty.

Functions

func GetDatadogAgentResourceCreationTime added in v1.6.0

func GetDatadogAgentResourceCreationTime(dda metav1.Object) string

GetDatadogAgentResourceCreationTime returns the creation timestamp of the Datadog Agent Resource

func GetDatadogAgentResourceNamespace added in v1.4.0

func GetDatadogAgentResourceNamespace(dda metav1.Object) string

GetDatadogAgentResourceNamespace returns the namespace of the Datadog Agent Resource

func GetDatadogAgentResourceUID added in v1.6.0

func GetDatadogAgentResourceUID(dda metav1.Object) string

GetDatadogAgentResourceUID returns the UID of the Datadog Agent Resource

func GetDatadogLeaderElectionResourceName added in v1.0.0

func GetDatadogLeaderElectionResourceName(dda metav1.Object) string

GetDatadogLeaderElectionResourceName return the nome of the Resource managing the leader election token info.

func IsPermanentAPIError added in v1.31.0

func IsPermanentAPIError(err error) bool

IsPermanentAPIError reports whether err is a 4xx (client-side, non-retryable) error, excluding 429 which is worth retrying after a backoff.

func NewAPIError added in v1.31.0

func NewAPIError(err error, httpResp *http.Response) error

NewAPIError wraps err with httpResp's status code, if any. Returns nil if err is nil.

func ShouldReturn added in v0.8.0

func ShouldReturn(result reconcile.Result, err error) bool

ShouldReturn returns if we should stop the reconcile loop based on result

func UseCustomSeccompConfigData added in v1.19.0

func UseCustomSeccompConfigData(seccompConfig *v2alpha1.SeccompConfig) bool

UseCustomSeccompConfigData returns true if a custom Seccomp profile configData is configured and configMap is *not* configured

func UseCustomSeccompConfigMap added in v1.19.0

func UseCustomSeccompConfigMap(seccompConfig *v2alpha1.SeccompConfig) bool

UseCustomSeccompConfigMap returns true if a custom Seccomp profile configMap is configured

Types

type APIError added in v1.31.0

type APIError struct {
	StatusCode int
	// contains filtered or unexported fields
}

APIError wraps a Datadog API client error with its HTTP status code. StatusCode is 0 if no response was received (e.g. a network failure).

func (*APIError) Error added in v1.31.0

func (e *APIError) Error() string

func (*APIError) Unwrap added in v1.31.0

func (e *APIError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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