controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildWorkloadLabelKey = "korifi.cloudfoundry.org/build-workload-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildWorkloadReconciler

type BuildWorkloadReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	ControllerConfig *config.ControllerConfig
	Log              logr.Logger

	RegistryAuthFetcher RegistryAuthFetcher
	ImageProcessFetcher ImageProcessFetcher
}

BuildWorkloadReconciler reconciles a BuildWorkload object

func (*BuildWorkloadReconciler) Reconcile

func (r *BuildWorkloadReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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.

For more details, check Reconcile and its Result here: - https://pkg.golang.ir/sigs.k8s.io/[email protected]/pkg/reconcile

func (*BuildWorkloadReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ImageProcessFetcher

type ImageProcessFetcher func(imageRef string, credsOption remote.Option) ([]v1alpha1.ProcessType, []int32, error)

type RegistryAuthFetcher

type RegistryAuthFetcher func(ctx context.Context, namespace string) (remote.Option, error)

func NewRegistryAuthFetcher

func NewRegistryAuthFetcher(privilegedK8sClient k8sclient.Interface) RegistryAuthFetcher

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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