buildpod

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildPodable

type BuildPodable interface {
	GetName() string
	GetNamespace() string
	ServiceAccount() string
	BuilderSpec() corev1alpha1.BuildBuilderSpec
	CnbBindings() corev1alpha1.CNBBindings
	Services() buildapi.Services

	BuildPod(buildapi.BuildPodImages, buildapi.BuildContext) (*corev1.Pod, error)
}

type Generator

type Generator struct {
	BuildPodConfig            buildapi.BuildPodImages
	K8sClient                 k8sclient.Interface
	KeychainFactory           registry.KeychainFactory
	ImageFetcher              ImageFetcher
	DynamicClient             dynamic.Interface
	MaximumPlatformApiVersion *semver.Version
	InjectedSidecarSupport    bool
	SSHTrustUnknownHost       bool
}

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, build BuildPodable) (*corev1.Pod, error)

type ImageFetcher

type ImageFetcher interface {
	Fetch(keychain authn.Keychain, repoName string) (ggcrv1.Image, string, error)
}

Jump to

Keyboard shortcuts

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