builder

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReconcilerName = "Builders"
)

Variables

This section is empty.

Functions

func NewController

func NewController(
	ctx context.Context,
	opt reconciler.Options,
	builderInformer buildinformers.BuilderInformer,
	builderCreator BuilderCreator,
	keychainFactory registry.KeychainFactory,
	clusterStoreInformer buildinformers.ClusterStoreInformer,
	buildpackInformer buildinformers.BuildpackInformer,
	clusterBuildpackInformer buildinformers.ClusterBuildpackInformer,
	clusterStackInformer buildinformers.ClusterStackInformer,
	secretFetcher Fetcher,
) (*controller.Impl, func())

Types

type BuilderCreator

type BuilderCreator interface {
	CreateBuilder(
		ctx context.Context,
		builderKeychain authn.Keychain,
		keychain authn.Keychain,
		fetcher cnb.RemoteBuildpackFetcher,
		clusterStack *buildapi.ClusterStack,
		spec buildapi.BuilderSpec,
		serviceAccountSecrets []*corev1.Secret,
		resolvedBuilderRef string,
	) (buildapi.BuilderRecord, error)
}

type Fetcher added in v0.13.0

type Fetcher interface {
	SecretsForServiceAccount(context.Context, string, string) ([]*corev1.Secret, error)
}

type Reconciler

type Reconciler struct {
	Client                 versioned.Interface
	BuilderLister          buildlisters.BuilderLister
	BuilderCreator         BuilderCreator
	KeychainFactory        registry.KeychainFactory
	Tracker                reconciler.Tracker
	ClusterStoreLister     buildlisters.ClusterStoreLister
	BuildpackLister        buildlisters.BuildpackLister
	ClusterBuildpackLister buildlisters.ClusterBuildpackLister
	ClusterStackLister     buildlisters.ClusterStackLister
	SecretFetcher          Fetcher
}

func (*Reconciler) Reconcile

func (c *Reconciler) Reconcile(ctx context.Context, key string) error

Jump to

Keyboard shortcuts

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