Documentation ¶
Index ¶
- Constants
- func ExcludeAcornKey(input map[string]string) map[string]string
- func FilterUserDefined(appInstance *v1.AppInstance, ...) *v1.AppInstance
- func GatherScoped(resourceName, resourceType string, ...) map[string]string
- func Managed(appInstance *v1.AppInstance, kv ...string) map[string]string
- func ManagedByApp(appNamespace, appName string, kv ...string) map[string]string
- func Merge(base, overlay map[string]string) map[string]string
Constants ¶
View Source
const ( Prefix = "acorn.io/" AcornAccountID = Prefix + "account-id" AcornAppGeneration = Prefix + "app-generation" AcornAppNamespace = Prefix + "app-namespace" AcornAppName = Prefix + "app-name" AcornParentAcornName = Prefix + "parent-acorn-name" AcornAppPublicName = Prefix + "app-public-name" AcornPublicName = Prefix + "public-name" AcornAcornName = Prefix + "acorn-name" AcornServiceName = Prefix + "service-name" AcornServicePublish = Prefix + "service-publish" AcornServiceNamePrefix = "service-name." + Prefix AcornDepNames = Prefix + "dep-names" AcornAppUID = Prefix + "app-uid" AcornVolumeName = Prefix + "volume-name" AcornVolumeClass = Prefix + "volume-class" AcornSecretName = Prefix + "secret-name" AcornSecretSourceNamespace = Prefix + "secret-source-namespace" AcornSecretSourceName = Prefix + "secret-source-name" AcornSecretGenerated = Prefix + "secret-generated" AcornContainerName = Prefix + "container-name" AcornRouterName = Prefix + "router-name" AcornJobName = Prefix + "job-name" AcornAppImage = Prefix + "app-image" AcornAppDevHash = Prefix + "app-dev-hash" AcornManaged = Prefix + "managed" AcornContainerSpec = Prefix + "container-spec" AcornImageMapping = Prefix + "image-mapping" AcornOriginalImage = Prefix + "original-image" AcornPortNumberPrefix = "port-number." + Prefix AcornCredential = Prefix + "credential" AcornPullSecret = Prefix + "pull-secret" AcornSecretRevPrefix = "secret-rev." + Prefix AcornPublishURL = Prefix + "publish-url" AcornTargets = Prefix + "targets" AcornDNSHash = Prefix + "dns-hash" AcornLinkName = Prefix + "link-name" AcornDNSState = Prefix + "applied-dns-state" AcornDomain = Prefix + "domain" AcornCertNotValidBefore = Prefix + "cert-not-valid-before" AcornCertNotValidAfter = Prefix + "cert-not-valid-after" AcornLetsEncryptSettingsHash = Prefix + "le-hash" AcornProject = Prefix + "project" AcornProjectName = Prefix + "project-name" AcornProjectDefaultRegion = Prefix + "project-default-region" AcornProjectSupportedRegions = Prefix + "project-supported-regions" AcornCalculatedProjectDefaultRegion = Prefix + "calculated-project-default-region" AcornCalculatedProjectSupportedRegions = Prefix + "calculated-project-supported-regions" ProjectEnforcedQuotaAnnotation = Prefix + "enforced-quota" AcornPermissions = Prefix + "permissions" AcornConfigHashAnnotation = Prefix + "config-hash" IdentityPrefix = "identity." + Prefix AcornIdentityAccountServerURL = IdentityPrefix + "account-server-url" DevPrefix = "dev." + Prefix DevDeleteAfter = DevPrefix + "delete-after" DevCredentialName = DevPrefix + "credential-name" DevImageName = DevPrefix + "image-name" PrometheusScrape = "prometheus.io/scrape" PrometheusPath = "prometheus.io/path" PrometheusPort = "prometheus.io/port" )
Variables ¶
This section is empty.
Functions ¶
func FilterUserDefined ¶
func FilterUserDefined(appInstance *v1.AppInstance, allowedLabels, allowedAnnotations, allowedNamespaces []string) *v1.AppInstance
func GatherScoped ¶
func GatherScoped(resourceName, resourceType string, globalLabels, resourceLabels map[string]string, scoped []v1.ScopedLabel) map[string]string
GatherScoped takes in labels (or annotations) from the various places they can appear in an acorn app and sifts through them to build a map of the ones that apply to the resource specified by the supplied resourceName and resourceType. `globalLabels` would be labels defined at top of an Acornfile, as sibling to containers. These apply to all resources, thus "global." `resourceLabels` come from the specific resource in the Acornfile. We know all of these apply to the resource, by definition. `scoped` generally live on appInstance.Status.AppSpec and ultimately come from the user launching the acorn in the form of command line flags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.