controllers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 31 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

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,
) *k8s.PatchingReconciler[korifiv1alpha1.BuildWorkload, *korifiv1alpha1.BuildWorkload]

func NewBuilderInfoReconciler added in v0.3.0

func NewBuilderInfoReconciler(
	c client.Client,
	scheme *runtime.Scheme,
	log logr.Logger,
	clusterBuilderName string,
	rootNamespaceName string,
) *k8s.PatchingReconciler[v1alpha1.BuilderInfo, *v1alpha1.BuilderInfo]

Types

type BuildWorkloadReconciler

type BuildWorkloadReconciler struct {
	// contains filtered or unexported fields
}

BuildWorkloadReconciler reconciles a BuildWorkload object

func (*BuildWorkloadReconciler) ReconcileResource added in v0.4.0

func (r *BuildWorkloadReconciler) ReconcileResource(ctx context.Context, buildWorkload *korifiv1alpha1.BuildWorkload) (ctrl.Result, error)

func (*BuildWorkloadReconciler) SetupWithManager

func (r *BuildWorkloadReconciler) SetupWithManager(mgr ctrl.Manager) *builder.Builder

type BuilderInfoReconciler added in v0.3.0

type BuilderInfoReconciler struct {
	// contains filtered or unexported fields
}

BuilderInfoReconciler reconciles a BuilderInfo object

func (*BuilderInfoReconciler) ReconcileResource added in v0.4.0

func (r *BuilderInfoReconciler) ReconcileResource(ctx context.Context, info *v1alpha1.BuilderInfo) (ctrl.Result, error)

func (*BuilderInfoReconciler) SetupWithManager added in v0.3.0

func (r *BuilderInfoReconciler) SetupWithManager(mgr ctrl.Manager) *builder.Builder

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