controllers

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BuilderInfoName    = "kpack-image-builder"
	ReadyConditionType = "Ready"
)
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
	Log                 logr.Logger
	ControllerConfig    *config.ControllerConfig
	RegistryAuthFetcher RegistryAuthFetcher
	RegistryCAPath      string
	ImageProcessFetcher ImageProcessFetcher
}

BuildWorkloadReconciler reconciles a BuildWorkload object

func NewBuildWorkloadReconciler added in v0.2.0

func NewBuildWorkloadReconciler(c client.Client, scheme *runtime.Scheme, log logr.Logger, config *config.ControllerConfig, registryAuthFetcher RegistryAuthFetcher, registryCAPath string, imageProcessFetcher ImageProcessFetcher) *BuildWorkloadReconciler

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 BuilderInfoReconciler added in v0.3.0

type BuilderInfoReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	Log                logr.Logger
	ClusterBuilderName string
	RootNamespaceName  string
}

BuilderInfoReconciler reconciles a BuilderInfo object

func NewBuilderInfoReconciler added in v0.3.0

func NewBuilderInfoReconciler(c client.Client, scheme *runtime.Scheme, log logr.Logger, clusterBuilderName, rootNamespaceName string) *BuilderInfoReconciler

func (*BuilderInfoReconciler) Reconcile added in v0.3.0

func (r *BuilderInfoReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the BuilderInfo object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

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

func (*BuilderInfoReconciler) SetupWithManager added in v0.3.0

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

SetupWithManager sets up the controller with the Manager.

type ImageProcessFetcher

type ImageProcessFetcher func(imageRef string, credsOption remote.Option, transport remote.Option) ([]korifiv1alpha1.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