bundle

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBundleForOwner

func EnsureBundleForOwner(ctx context.Context, client ctrlruntimeclient.Client, scheme *runtime.Scheme, owner ctrlruntimeclient.Object) (*operatorv1alpha1.Bundle, error)

EnsureBundleForOwner ensures that a Bundle object exists for the given owner if it has the bundle annotation. If the annotation is present and no Bundle exists, it creates one owned by the object. Returns the Bundle object if it exists/was created, or nil if no bundle annotation is present.

func GetBundleObjectsForTarget

func GetBundleObjectsForTarget(target operatorv1alpha1.BundleTarget, namespace string, shard *operatorv1alpha1.Shard, rootShard *operatorv1alpha1.RootShard, frontProxy *operatorv1alpha1.FrontProxy) []operatorv1alpha1.BundleObject

GetBundleObjectsForTarget returns the list of objects required for a Bundle based on the target

func GetBundleReadyCondition

func GetBundleReadyCondition(ctx context.Context, client ctrlruntimeclient.Client, owner ctrlruntimeclient.Object, generation int64) metav1.Condition

GetBundleReadyCondition checks if the Bundle associated with the owner is ready. Returns a condition that can be added to the owner's status.

Types

type BundleObjectSpec

type BundleObjectSpec struct {
	// TargetKind is the kind of the target object (RootShard, Shard, FrontProxy)
	TargetKind string
	// Objects is the list of objects that should be included in the bundle
	Objects []operatorv1alpha1.BundleObject
}

BundleObjectSpec defines the required objects for a specific target type

type BundleReconciler

type BundleReconciler struct {
	ctrlruntimeclient.Client
	Scheme *runtime.Scheme
}

BundleReconciler reconciles a Bundle object

func (*BundleReconciler) Reconcile

func (r *BundleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, recErr error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*BundleReconciler) SetupWithManager

func (r *BundleReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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