manifestutils

package
v0.106.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorDNSPolicy = errors.New("when a dnsPolicy is set to None, the dnsConfig field has to be specified")

Functions

func Annotations added in v0.96.0

func Annotations(instance v1beta1.OpenTelemetryCollector, filterAnnotations []string) (map[string]string, error)

Annotations return the annotations for OpenTelemetryCollector resources.

func GetConfigMapSHA added in v0.101.0

func GetConfigMapSHA(config v1beta1.Config) (string, error)

func GetDNSPolicy added in v0.103.0

func GetDNSPolicy(hostNetwork bool, dnsConfig corev1.PodDNSConfig) corev1.DNSPolicy

Get the Pod DNS Policy depending on whether we're using a host network.

func IsFilteredSet added in v0.96.0

func IsFilteredSet(sourceSet string, filterSet []string) bool

func Labels

func Labels(instance metav1.ObjectMeta, name string, image string, component string, filterLabels []string) map[string]string

Labels return the common labels to all objects that are part of a managed CR.

func PodAnnotations added in v0.96.0

func PodAnnotations(instance v1beta1.OpenTelemetryCollector, filterAnnotations []string) (map[string]string, error)

PodAnnotations return the spec annotations for OpenTelemetryCollector pod.

func SelectorLabels

func SelectorLabels(instance metav1.ObjectMeta, component string) map[string]string

SelectorLabels return the common labels to all objects that are part of a managed CR to use as selector. Selector labels are immutable for Deployment, StatefulSet and DaemonSet, therefore, no labels in selector should be expected to be modified for the lifetime of the object.

func TASelectorLabels added in v0.96.0

func TASelectorLabels(instance v1alpha1.TargetAllocator, component string) map[string]string

SelectorLabels return the selector labels for Target Allocator Pods.

Types

This section is empty.

Jump to

Keyboard shortcuts

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