Documentation
¶
Index ¶
Constants ¶
View Source
const ( Domain = "dana-team.io" Hostname = "custom-capp" DefaultZone = "dana-dev.com" Rcs = "rcs" )
View Source
const ( CappRevisionNamespace = TestName + "-capp-revision-ns" CappRevisionName = TestName + "-capp-revision" CapprevisionsKey = "capprevisions" )
View Source
const ( SecretsKey = "secrets" SecretNameKey = "secretName" SecretDataKey = "test-key" SecretDataValue = "fake" SecretDataNewValue = "faker" InvalidSecretType = "invalid" SecretName = TestName + "-secret" SecretDataValueEncoded = "ZmFrZQ==" SecretNamespace = SecretName + "-ns" KeyField = "key" ValueField = "value" TokenName = "token" TokenNamespace = TokenName + "-ns" )
View Source
const ( TestName = "test" TestNamespace = TestName + "-ns" NonExistentSuffix = "-non-existent" )
View Source
const ( ConfigmapsKey = "configmaps" ConfigMapDataKey = "key" ConfigMapDataValue = "value" )
View Source
const ( ServiceAccountsKey = "serviceAccounts" TokenKey = "token" ExpirationTimestampKey = "expirationTimestamp" Secret = "Secret" V1 = "v1" Value = "value" )
View Source
const ( RoleKey = "role" AdminKey = "admin" ViewerKey = "viewer" RoleBindingsKey = "rolebindings" UsersKey = "users" RoleBindingsGroupKey = "rbac.authorization.k8s.io" CappUserPrefix = "capp-user-" )
View Source
const ( LabelSelectorKey = "labelSelector" LabelKey = "key" LabelValue = "value" InvalidLabelSelector = ":--" )
View Source
const ( NameKey = "name" NamespaceKey = "namespaces" NamespaceNameKey = "namespaceName" IdKey = "id" ReasonKey = "reason" ErrorKey = "error" MessageKey = "message" TypeKey = "type" KubeSystem = "kube-system" )
View Source
const ( MetadataKey = "metadata" LabelsKey = "labels" AnnotationsKey = "annotations" SpecKey = "spec" StatusKey = "status" CountKey = "count" DataKey = "data" )
View Source
const ( ContentType = "Content-Type" ApplicationJson = "application/json" )
View Source
const ( CappName = TestName + "-capp" EnvironmentName = TestName + "-environment" RegionName = TestName + "-region" PlacementName = TestName + "-placement" SiteName = TestName + "-site" PlacementEnvironmentKey = "environment" PlacementRegionKey = "region" CappsKey = "capps" RecordsKey = "records" CappNamespace = TestNamespace + "-" + CappsKey CappImage = "ghcr.io/dana-team/capp-gin-app:v0.2.0" ContainerName = "capp-container" StateKey = "state" DisabledState = "disabled" EnabledState = "enabled" LastCreatedRevision = "lastCreatedRevision" LastReadyRevision = "lastReadyRevision" NoRevision = "No revision available" Available = "available" Unknown = "unknown" )
View Source
const ( ServiceAccountName = TestName + "-serviceAccount" ServiceAccountAnnotation = "kubernetes.io/service-account.name" )
View Source
const ( ContainersKey = "containers" ContainerNameKey = "containerName" TestContainerName = "test-container" Image = "nginx" )
View Source
const ( PodsKey = "pods" PodNameKey = "podName" PodName = TestName + "-pod" )
View Source
const ( Timeout = 360 * time.Second Interval = 10 * time.Second DefaultEventually = 2 * time.Second )
View Source
const ( ReasonNotFound = "NotFound" ReasonBadRequest = "BadRequest" ReasonAlreadyExists = "AlreadyExists" )
View Source
const ( ServiceAccountParam = "serviceaccounts" ExpirationSecondsParam = "expirationSeconds" TokenRequestSuffix = "token-request" )
Variables ¶
View Source
var ( ManagedLabel = cappAPIGroup + "/managed" ManagedByLabel = cappAPIGroup + "/managed-by" )
View Source
var ( ParentCappLabel = cappAPIGroup + "/parent-capp" ParentCappNSLabel = cappAPIGroup + "/parent-capp-ns" LastUpdatedCappLabel = cappAPIGroup + "/last-updated-by" HasPlacementLabel = cappAPIGroup + "/has-placement" LabelCappName = cappAPIGroup + "/cappName" )
View Source
var ( PlacementRegionLabelKey = cappAPIGroup + "/region" PlacementEnvironmentLabelKey = cappAPIGroup + "/environment" )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.