Documentation ¶
Index ¶
- func BundleInstanceProvisionerFilter(provisionerClassName string) predicate.Predicate
- func BundleLabels(bundleName string) map[string]string
- func BundleProvisionerFilter(provisionerClassName string) predicate.Predicate
- func ConfigMapsEqual(a, b corev1.ConfigMap) bool
- func CreateOrRecreate(ctx context.Context, cl client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
- func CreateOrUpdateCRD(ctx context.Context, cl client.Client, ...) (controllerutil.OperationResult, error)
- func MapBundleToBundleInstanceHandler(cl client.Client, log logr.Logger) handler.MapFunc
- func MergeMaps(maps ...map[string]string) map[string]string
- func MetadataConfigMapName(bundleName string) string
- func NewBundleLabelSelector(bundle *rukpakv1alpha1.Bundle) labels.Selector
- func PodName(provisionerName, bundleName string) string
- func PodNamespace(defaultNamespace string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BundleLabels ¶
func BundleProvisionerFilter ¶
func ConfigMapsEqual ¶
func CreateOrRecreate ¶
func CreateOrRecreate(ctx context.Context, cl client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
func CreateOrUpdateCRD ¶
func CreateOrUpdateCRD(ctx context.Context, cl client.Client, crd *apiextensionsv1.CustomResourceDefinition) (controllerutil.OperationResult, error)
func MetadataConfigMapName ¶
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 PodNamespace ¶
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.
Click to show internal directories.
Click to hide internal directories.