Documentation ¶
Index ¶
- Variables
- func Annotations(instance v1beta1.OpenTelemetryCollector, filterAnnotations []string) (map[string]string, error)
- func GetConfigMapSHA(config v1beta1.Config) (string, error)
- func GetDNSPolicy(hostNetwork bool, dnsConfig corev1.PodDNSConfig) corev1.DNSPolicy
- func IsFilteredSet(sourceSet string, filterSet []string) bool
- func Labels(instance metav1.ObjectMeta, name string, image string, component string, ...) map[string]string
- func PodAnnotations(instance v1beta1.OpenTelemetryCollector, filterAnnotations []string) (map[string]string, error)
- func SelectorLabels(instance metav1.ObjectMeta, component string) map[string]string
- func TASelectorLabels(instance v1alpha1.TargetAllocator, component string) map[string]string
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 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 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.
Click to show internal directories.
Click to hide internal directories.