consts

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout                         = 240 * time.Second
	TimeoutCapp                     = 90 * time.Second
	Interval                        = 2 * time.Second
	DefaultEventually               = 2 * time.Second
	DefaultConsistently             = 10 * time.Second
	RetryOnConflictSteps            = 10
	ClientListLimit                 = 100
	CappKey                         = "capp"
	Charset                         = "abcdefghijklmnopqrstuvwxyz0123456789"
	RandStrLength                   = 10
	EnabledState                    = "enabled"
	DisabledState                   = "disabled"
	KnativeMetricAnnotation         = "autoscaling.knative.dev/metric"
	ImageExample                    = "danateam/autoscale-go"
	ExampleAppName                  = "new-app-name"
	NewSecretKey                    = "username"
	TestContainerName               = "capp-test-container"
	FirstRevisionSuffix             = "-00001"
	TestIndex                       = "test"
	TestLabelKey                    = "e2e-test"
	CappConfigName                  = "capp-config"
	CappName                        = "capp-test"
	NSName                          = "capp-e2e-tests"
	RPSScaleMetric                  = "rps"
	CPUScaleMetric                  = "cpu"
	MemoryScaleMetric               = "memory"
	ConcurrencyScaleMetric          = "concurrency"
	SecretKey                       = "extra"
	SecretValue                     = "YmFyCg=="
	ControllerNS                    = "container-app-operator-system"
	ZoneValue                       = "capp-zone.com."
	CappBaseImage                   = "ghcr.io/dana-team/capp-gin-app:v0.2.0"
	PassEnvName                     = "PASSWORD"
	ElasticHost                     = "1.2.3.4"
	ElasticDataStreamURL            = "https://" + ElasticHost + "/" + MainIndex + "/_bulk"
	MainIndex                       = "main"
	ElasticUserName                 = "elastic"
	ElasticSecretName               = "credentials"
	Server                          = "nfs-server"
	Path                            = "/nfs-path"
	Capacity                        = "1Gi"
	RouteHostname                   = "test.dev"
	RouteTLSSecret                  = "https-capp-secret"
	ServiceAccountNameFormat        = "system:serviceaccount:%s:%s"
	ServiceAccountName              = "test-user"
	ExcludedServiceAccountName      = "excluded-sa"
	ExcludedServiceAccountNamespace = "container-app-operator-system"
)

Variables

View Source
var (
	CappAPIGroup               = cappv1alpha1.GroupVersion.Group
	CappNamespaceKey           = CappAPIGroup + "/parent-capp-ns"
	CappResourceKey            = CappAPIGroup + "/parent-capp"
	ManagedByLabelKey          = CappAPIGroup + "/managed-by"
	LastUpdatedByAnnotationKey = CappAPIGroup + "/last-updated-by"
	CappNameLabelKey           = CappAPIGroup + "/cappName"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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