controllers

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildWorkloadLabelKey = "korifi.cloudfoundry.org/build-workload-name"
	ImageGenerationKey    = "korifi.cloudfoundry.org/kpack-image-generation"
	KpackReconcilerName   = "kpack-image-builder"
)
View Source
const (
	BuilderInfoName = "kpack-image-builder"
)
View Source
const KpackBuildFinalizer string = "korifi.cloudfoundry.org/kpackBuild"

Variables

This section is empty.

Functions

func ComputeBuilderName added in v0.8.0

func ComputeBuilderName(bps []string) string

func GetBuildResources added in v0.8.0

func GetBuildResources(diskMB, memoryMB int64) corev1.ResourceRequirements

func NewBuildWorkloadReconciler added in v0.2.0

func NewBuildWorkloadReconciler(
	c client.Client,
	scheme *runtime.Scheme,
	log logr.Logger,
	config *config.ControllerConfig,
	imageConfigGetter ImageConfigGetter,
	imageRepoPrefix string,
	imageRepoCreator RepositoryCreator,
	builderReadinessTimeout time.Duration,
) *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[korifiv1alpha1.BuilderInfo, *korifiv1alpha1.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
}

func (*BuilderInfoReconciler) ReconcileResource added in v0.4.0

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

func (*BuilderInfoReconciler) SetupWithManager added in v0.3.0

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

type ImageConfigGetter added in v0.7.0

type ImageConfigGetter interface {
	Config(ctx context.Context, creds image.Creds, imageRef string) (image.Config, error)
}

type ImageDeleter added in v0.7.0

type ImageDeleter interface {
	Delete(context.Context, image.Creds, string, ...string) error
}

type KpackBuildController added in v0.7.0

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

func NewKpackBuildController added in v0.7.0

func NewKpackBuildController(
	k8sClient client.Client,
	log logr.Logger,
	imageDeleter ImageDeleter,
	registryServiceAccount string,
) *KpackBuildController

func (*KpackBuildController) Reconcile added in v0.13.0

func (*KpackBuildController) SetupWithManager added in v0.7.0

func (c *KpackBuildController) SetupWithManager(mgr manager.Manager) error

type RepositoryCreator added in v0.5.0

type RepositoryCreator interface {
	CreateRepository(ctx context.Context, name string) error
}

Directories

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

Jump to

Keyboard shortcuts

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