util

package
v0.0.0-...-5fb399e Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InspectBundleDeployment

func InspectBundleDeployment(_ context.Context, conditions []metav1.Condition) *metav1.Condition

InspectBundleDeployment is responsible for inspecting an individual BD resource, and verifying whether the referenced Bundle contents has been successfully unpacked and persisted to the cluster. In the case that the BD is reporting a successful status, a nil metav1.Condition will be returned.

func InspectPlatformOperators

func InspectPlatformOperators(poList *platformv1alpha1.PlatformOperatorList) error

InspectPlatformOperators iterates over all the POs in the list and determines whether a PO is in a failing state by inspecting its status. A nil return value indicates no errors were found with the POs provided.

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 value of the defaultNamespace parameter.

func RequeueBundleDeployment

func RequeueBundleDeployment(c client.Client) handler.MapFunc

func RequeueClusterOperator

func RequeueClusterOperator(c client.Client, name string) handler.MapFunc

func RequeuePlatformOperators

func RequeuePlatformOperators(cl client.Client) handler.MapFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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