system

package
v0.8.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	BuildKitName                   = "buildkitd"
	ControllerName                 = "acorn-controller"
	APIServerName                  = "acorn-api"
	BuildkitPort             int32 = 8080
	ContainerdConfigPathName       = "containerd-config-path"
	DefaultManagerAddress          = "beta.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