Documentation ¶
Index ¶
- func InspectBundleDeployment(_ context.Context, conditions []metav1.Condition) *metav1.Condition
- func InspectPlatformOperators(poList *platformv1alpha1.PlatformOperatorList) error
- func IsAPIAvailable(c discovery.DiscoveryInterface, gv schema.GroupVersion) (bool, error)
- func PodNamespace(defaultNamespace string) string
- func RequeueBundleDeployment(c client.Client) handler.MapFunc
- func RequeueClusterOperator(c client.Client, name string) handler.MapFunc
- func RequeueOperators(cl client.Client) handler.MapFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InspectBundleDeployment ¶
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 IsAPIAvailable ¶
func IsAPIAvailable(c discovery.DiscoveryInterface, gv schema.GroupVersion) (bool, error)
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 value of the defaultNamespace parameter.
func RequeueClusterOperator ¶
Types ¶
This section is empty.