util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundleInstanceProvisionerFilter

func BundleInstanceProvisionerFilter(provisionerClassName string) predicate.Predicate

func BundleLabels

func BundleLabels(bundleName string) map[string]string

func BundleProvisionerFilter

func BundleProvisionerFilter(provisionerClassName string) predicate.Predicate

func ConfigMapsEqual

func ConfigMapsEqual(a, b corev1.ConfigMap) bool

func MapBundleToBundleInstanceHandler

func MapBundleToBundleInstanceHandler(cl client.Client, log logr.Logger) handler.MapFunc

func MergeMaps

func MergeMaps(maps ...map[string]string) map[string]string

func MetadataConfigMapName

func MetadataConfigMapName(bundleName string) string

func NewBundleLabelSelector

func NewBundleLabelSelector(bundle *rukpakv1alpha1.Bundle) labels.Selector

NewBundleLabelSelector is responsible for constructing a label.Selector for any underlying resources that are associated with the Bundle parameter.

func PodName

func PodName(provisionerName, bundleName string) string

func PodNamespace

func PodNamespace(defaultNamespace string) string

GetPodNamespace checks whether the controller is running in a Pod vs. being run locally by inspecting the namespace file that gets mounted automatically for Pods at runtime. If that file doesn't exist, then return the @defaultNamespace namespace parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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