package manifest
import "github.com/docker/buildx/driver/kubernetes/manifest"
Index ¶
- Constants
- func NewDeployment(opt *DeploymentOpt) (d *appsv1.Deployment, c []*corev1.ConfigMap, err error)
- type DeploymentOpt
- type ErrReservedAnnotationPlatform
- type ErrReservedLabelApp
Constants ¶
const ( AnnotationPlatform = "buildx.docker.com/platform" LabelApp = "app" )
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 int32
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
BuildKitRootVolumeMemory string
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 []ocispecs.Platform
Env []corev1.EnvVar // injected into main buildkitd container
}
type ErrReservedAnnotationPlatform ¶
type ErrReservedAnnotationPlatform struct{}
func (ErrReservedAnnotationPlatform) Error ¶
func (ErrReservedAnnotationPlatform) Error() string
type ErrReservedLabelApp ¶
type ErrReservedLabelApp struct{}
func (ErrReservedLabelApp) Error ¶
func (ErrReservedLabelApp) Error() string
Source Files ¶
- Version
- v0.33.0 (latest)
- Published
- Mar 31, 2026
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 1 hour ago –
Tools for package owners.