utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 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