Documentation
¶
Index ¶
- Constants
- func GetDatadogAgentResourceCreationTime(dda metav1.Object) string
- func GetDatadogAgentResourceNamespace(dda metav1.Object) string
- func GetDatadogAgentResourceUID(dda metav1.Object) string
- func GetDatadogLeaderElectionResourceName(dda metav1.Object) string
- func IsPermanentAPIError(err error) bool
- func NewAPIError(err error, httpResp *http.Response) error
- func ShouldReturn(result reconcile.Result, err error) bool
- func UseCustomSeccompConfigData(seccompConfig *v2alpha1.SeccompConfig) bool
- func UseCustomSeccompConfigMap(seccompConfig *v2alpha1.SeccompConfig) bool
- type APIError
Constants ¶
const NotFoundString = "404 Not Found"
Variables ¶
This section is empty.
Functions ¶
func GetDatadogAgentResourceCreationTime ¶ added in v1.6.0
GetDatadogAgentResourceCreationTime returns the creation timestamp of the Datadog Agent Resource
func GetDatadogAgentResourceNamespace ¶ added in v1.4.0
GetDatadogAgentResourceNamespace returns the namespace of the Datadog Agent Resource
func GetDatadogAgentResourceUID ¶ added in v1.6.0
GetDatadogAgentResourceUID returns the UID of the Datadog Agent Resource
func GetDatadogLeaderElectionResourceName ¶ added in v1.0.0
GetDatadogLeaderElectionResourceName return the nome of the Resource managing the leader election token info.
func IsPermanentAPIError ¶ added in v1.31.0
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
NewAPIError wraps err with httpResp's status code, if any. Returns nil if err is nil.
func ShouldReturn ¶ added in v0.8.0
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