utils

package
v1.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 3 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 GetDatadogAgentResourceNamespace added in v1.4.0

func GetDatadogAgentResourceNamespace(dda metav1.Object) string

GetDatadogAgentResourceNamespace returns the namespace 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