Documentation ¶
Index ¶
- func FailuresFrom(obj *unstructured.Unstructured) (string, string, error)
- func Get(ctx context.Context, c client.Client, ref *corev1.ObjectReference, ...) (*unstructured.Unstructured, error)
- func GetObjectReference(obj *unstructured.Unstructured) *corev1.ObjectReference
- func IsInitialized(obj *unstructured.Unstructured) (bool, error)
- func IsReady(obj *unstructured.Unstructured) (bool, error)
- type ObjectTracker
- type ReconcileOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailuresFrom ¶
func FailuresFrom(obj *unstructured.Unstructured) (string, string, error)
FailuresFrom returns the FailureReason and FailureMessage fields from the external object status.
func Get ¶
func Get(ctx context.Context, c client.Client, ref *corev1.ObjectReference, namespace string) (*unstructured.Unstructured, error)
Get uses the client and reference to get an external, unstructured object.
func GetObjectReference ¶
func GetObjectReference(obj *unstructured.Unstructured) *corev1.ObjectReference
GetObjectReference converts an unstructured into object reference.
func IsInitialized ¶
func IsInitialized(obj *unstructured.Unstructured) (bool, error)
IsInitialized returns true if the Status.Initialized field on an external object is true.
func IsReady ¶
func IsReady(obj *unstructured.Unstructured) (bool, error)
IsReady returns true if the Status.Ready field on an external object is true.
Types ¶
type ObjectTracker ¶
type ObjectTracker struct { Controller controller.Controller // contains filtered or unexported fields }
ObjectTracker is a helper struct to deal when watching external unstructured objects.
func (*ObjectTracker) Watch ¶
func (o *ObjectTracker) Watch(log logr.Logger, obj runtime.Object, handler handler.EventHandler) error
Watch uses the controller to issue a Watch only if the object hasn't been seen before.
type ReconcileOutput ¶
type ReconcileOutput struct { // Details of the referenced external object. // +optional Result *unstructured.Unstructured // Indicates if the external object is paused. // +optional Paused bool }
ReconcileOutput is a return type of the external reconciliation of referenced objects