manifest

package
v0.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationPlatform = "buildx.docker.com/platform"
	LabelApp           = "app"
)

Variables

This section is empty.

Functions

func NewDeployment

func NewDeployment(opt *DeploymentOpt) (d *appsv1.Deployment, c []*corev1.ConfigMap, err error)

Types

type DeploymentOpt

type DeploymentOpt struct {
	Namespace          string
	Name               string
	Image              string
	Replicas           int
	ServiceAccountName string
	SchedulerName      string

	// Qemu
	Qemu struct {
		// when true, will install binfmt
		Install bool
		Image   string
	}

	BuildkitFlags []string
	// files mounted at /etc/buildkitd
	ConfigFiles map[string][]byte

	Rootless                 bool
	NodeSelector             map[string]string
	CustomAnnotations        map[string]string
	CustomLabels             map[string]string
	Tolerations              []corev1.Toleration
	RequestsCPU              string
	RequestsMemory           string
	RequestsEphemeralStorage string
	LimitsCPU                string
	LimitsMemory             string
	LimitsEphemeralStorage   string
	Platforms                []v1.Platform
}

type ErrReservedAnnotationPlatform added in v0.12.0

type ErrReservedAnnotationPlatform struct{}

func (ErrReservedAnnotationPlatform) Error added in v0.17.0

type ErrReservedLabelApp added in v0.12.0

type ErrReservedLabelApp struct{}

func (ErrReservedLabelApp) Error added in v0.17.0

func (ErrReservedLabelApp) Error() string

Jump to

Keyboard shortcuts

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