utils

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NotFoundString = "404 Not Found"

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(list []string, s string) bool

ContainsString checks if a slice contains a specific string

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

GetDatadogAgentResourceNamespace 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 GetDatadogTokenResourceName added in v1.0.0

func GetDatadogTokenResourceName(dda metav1.Object) string

GetDatadogTokenResourceName returns the name of the ConfigMap used by the cluster agent to store token

func RemoveString

func RemoveString(list []string, s string) []string

RemoveString removes a specific string from a slice

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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