system

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace            = "acorn-system"
	ImagesNamespace      = "acorn-image-system"
	ConfigName           = "acorn-config"
	DevConfigName        = "acorn-config-dev"
	TLSSecretName        = "acorn-tls"
	LEAccountSecretName  = "acorn-le-account"
	DefaultUserNamespace = "acorn"
	DNSSecretName        = "acorn-dns"
	DNSIngressName       = "acorn-dns-ingress"
	DNSServiceName       = "acorn-dns-service"

	CustomCABundleSecretName = "cabundle"
	CustomCABundleSecretVolumeName
	CustomCABundleDir      = "/etc/ssl/certs"
	CustomCABundleCertName = "ca-certificates.crt"

	AcornPriorityClass = "system-cluster-critical"
)

Variables

View Source
var (
	RegistryName                     = "registry"
	RegistryPVCSize                  = "10Gi"
	RegistryPort                     = 5000
	RegistryServiceAccountName       = "acorn-image-system"
	BuildKitName                     = "buildkitd"
	ControllerName                   = "acorn-controller"
	APIServerName                    = "acorn-api"
	BuildkitPort               int32 = 8080
	ContainerdConfigPathName         = "containerd-config-path"
	DefaultManagerAddress            = "acorn.io"
)
View Source
var (
	InstallImage  = "ghcr.io/acorn-io/runtime"
	DefaultBranch = "main"
)
View Source
var ErrInvalidResourceSpecification = fmt.Errorf("invalid resource specification")

Functions

func DefaultImage

func DefaultImage() string

func IsRunningAsPod

func IsRunningAsPod() bool

func ResourceRequirementsFor

func ResourceRequirementsFor(memory, cpu string) corev1.ResourceRequirements

ResourceRequirementsFor is used by components to create a ResourceRequirements struct based on strings found in the apiv1.Config struct.

func ValidateResources

func ValidateResources(resources ...string) error

ValidateResources is used by the CLI to validate that the values passed can be parsed as a resource.Quantity and that the request is not higher than the limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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