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 ¶
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.
Click to show internal directories.
Click to hide internal directories.