controller

package
v0.0.0-...-e456fe6 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenShiftBuildReconciler

type OpenShiftBuildReconciler struct {
	APIReader      client.Reader
	Client         client.Client
	Scheme         *apiruntime.Scheme
	Logger         logr.Logger
	SharedResource *sharedresource.SharedResource
	Shipwright     *shipwrightbuild.ShipwrightBuild
	NetworkPolicy  *networkpolicy.NetworkPolicy
}

OpenShiftBuildReconciler reconciles a OpenShiftBuild object

func (*OpenShiftBuildReconciler) BootstrapOpenShiftBuild

func (r *OpenShiftBuildReconciler) BootstrapOpenShiftBuild(ctx context.Context, client client.Client) error

BootstrapOpenShiftBuild creates the default OpenShiftBuild instance ("cluster") if it is not present on the cluster.

func (*OpenShiftBuildReconciler) CleanupRoleBindings

func (r *OpenShiftBuildReconciler) CleanupRoleBindings(ctx context.Context, client client.Client) error

CleanupRoleBindings is a temporary method to clean up the redundant role binding created from incorrect configuration. TODO: remove this from builds version 1.10

func (*OpenShiftBuildReconciler) CreateOrUpdate

CreateOrUpdate will create or update v1alpha1.OpenShiftBuild resource

func (*OpenShiftBuildReconciler) HandleDeletion

HandleDeletion deletes objects created by the controller

func (*OpenShiftBuildReconciler) Reconcile

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 (*OpenShiftBuildReconciler) ReconcileNetworkPolicy

func (r *OpenShiftBuildReconciler) ReconcileNetworkPolicy(ctx context.Context, openshiftBuild *openshiftv1alpha1.OpenShiftBuild) error

ReconcileNetworkPolicy reconciles NetworkPolicy resources

func (*OpenShiftBuildReconciler) ReconcileSharedResource

func (r *OpenShiftBuildReconciler) ReconcileSharedResource(ctx context.Context, openshiftBuild *openshiftv1alpha1.OpenShiftBuild) error

ReconcileSharedResource creates and updates SharedResource objects

func (*OpenShiftBuildReconciler) ReconcileShipwrightBuild

func (r *OpenShiftBuildReconciler) ReconcileShipwrightBuild(ctx context.Context, owner *openshiftv1alpha1.OpenShiftBuild) error

ReconcileShipwrightBuild creates or deletes ShipwrightBuild object

func (*OpenShiftBuildReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ShipwrightBuildReconciler

type ShipwrightBuildReconciler shipwrightoperator.ShipwrightBuildReconciler

func (*ShipwrightBuildReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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