labels

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

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"
	AcornFunctionName                      = Prefix + "function-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"
	AcornContainerResolvedOfferings        = Prefix + "container-resolved-offerings"

	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 ExcludeAcornKey

func ExcludeAcornKey(input map[string]string) map[string]string

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.

func Managed

func Managed(appInstance *v1.AppInstance, kv ...string) map[string]string

func ManagedByApp

func ManagedByApp(appNamespace, appName string, kv ...string) map[string]string

func Merge

func Merge(base, overlay map[string]string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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