constants

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CommonFinalizer        string = "kloudlite.io/finalizer"
	ForegroundFinalizer    string = "foregroundDeletion"
	BillingFinalizer       string = "finalizers.kloudlite.io/billing-watcher"
	StatusWatcherFinalizer string = "finalizers.kloudlite.io/status-watcher"

	GenericFinalizer string = "kloudlite.io/finalizer"
)
View Source
const (
	WGDeviceSeceret     string = "kloudlite.io/wg-device-sec"
	WGServerNameKey     string = "kloudlite.io/wg-server.name"
	WGDeviceNameKey     string = "kloudlite.io/wg-device.name"
	WGConnectionNameKey string = "kloudlite.io/wg-global-vpn.name"

	WGConnExposedSvcNameKey string = "kloudlite.io/conn-expose"
)

wireguard secrets

View Source
const (
	AccountRef      string = "kloudlite.io/account-ref"
	ProjectRef      string = "kloudlite.io/project-ref"
	ProviderRef     string = "kloudlite.io/provider-ref"
	EnvironmentRef  string = "kloudlite.io/environment-ref"
	ResourceRef     string = "kloudlite.io/resource-ref"
	ShouldReconcile string = "kloudlite.io/should-reconcile"

	DescriptionKey string = "kloudlite.io/description"

	KloudliteManagedNamespace string = "kloudlite.io/managed-namespace"

	ProjectNameKey               string = "kloudlite.io/project.name"
	BlueprintNameKey             string = "kloudlite.io/blueprint.name"
	MsvcNameKey                  string = "kloudlite.io/msvc.name"
	MsvcNamespaceKey             string = "kloudlite.io/msvc.namespace"
	IsMresOutput                 string = "kloudlite.io/is-mres-output"
	MresNameKey                  string = "kloudlite.io/mres.name"
	AppNameKey                   string = "kloudlite.io/app.name"
	JobNameKey                   string = "kloudlite.io/job.name"
	RouterNameKey                string = "kloudlite.io/router.name"
	LambdaNameKey                string = "kloudlite.io/lambda.name"
	AccountRouterNameKey         string = "kloudlite.io/account-router.name"
	EdgeNameKey                  string = "kloudlite.io/edge.name"
	EdgeRouterNameKey            string = "kloudlite.io/edge-router.name"
	EnvironmentNameKey           string = "kloudlite.io/environment.name"
	TargetNamespaceKey           string = "kloudlite.io/target-namespace"
	ImagePullSecretNameKey       string = "kloudlite.io/image-pull-secret.name"
	CsiDriverNameKey             string = "kloudlite.io/csi-driver.name"
	ClusterManagedServiceNameKey string = "kloudlite.io/cluster-msvc.name"

	ProjectManagedServiceNameKey string = "kloudlite.io/project-msvc.name"
	ProjectManagedServiceRefKey  string = "kloudlite.io/project-msvc-ref"

	RecordVersionKey string = "kloudlite.io/observability.record-version"

	// changes controller behaviour
	ClearStatusKey string = "kloudlite.io/operator.clear-status"
	ResetCheckKey  string = "kloudlite.io/operator.reset-check"
	RestartKey     string = "kloudlite.io/do-restart"
	DoHelmUpgrade  string = "kloudlite.io/do-helm-upgrade"

	IsBluePrintKey    string = "kloudlite.io/is-blueprint"
	MarkedAsBlueprint string = "kloudlite.io/marked-as-blueprint"

	LastAppliedKey string = "kloudlite.io/last-applied"

	GVKKey string = "kloudlite.io/group-version-kind"

	ClusterSetupType string = "kloudlite.io/cluster.setup-type"

	ObservabilityAccountNameKey string = "kloudlite.io/observability.account.name"
	ObservabilityClusterNameKey string = "kloudlite.io/observability.cluster.name"
)
View Source
const (
	ReplicationEnableKey        string = "kloudlite.io/replication.enable"
	ReplicationEnableValueTrue  string = "true"
	ReplicationEnableValueFalse string = "false"

	ReplicationFromNameKey      string = "kloudlite.io/replication.from-name"
	ReplicationFromNamespaceKey string = "kloudlite.io/replication.from-namespace"

	// it should me comma separated list of namespaces to exclude
	ReplicationExcludeNsKey string = "kloudlite.io/replication.exclude-ns"
	ReplicationIncludeNsKey string = "kloudlite.io/replication.include-ns"
)

ConfigSecretReplicator

View Source
const (
	CacheNameKey                      string = "kloudlite.io/cache-key"
	BuildNameKey                      string = "kloudlite.io/build.name"
	AnnotationReconcileScheduledAfter string = "kloudlite.io/reconcile.scheduled-after"
)

distribution constants

View Source
const (
	ClusterNameKey      string = "kloudlite.io/cluster.name"
	ClusterNamespaceKey string = "kloudlite.io/cluster.namespace"
	AccountNameKey      string = "kloudlite.io/account.name"

	RegionKey string = "kloudlite.io/region"

	NodePoolNameKey string = "kloudlite.io/nodepool.name"
	NodeNameKey     string = "kloudlite.io/node.name"

	IsNodeControllerJob string = "kloudlite.io/is-nodectrl-job"
	ForceDeleteKey      string = "kloudlite.io/force-delete"
	RecheckClusterKey   string = "kloudlite.io/recheck-cluster"
	PublicIpKey         string = "kloudlite.io/public-ip"

	NodesInfosKey string = "kloudlite.io/nodes-info"
)

cluster management label constants

View Source
const (
	ManagedClusterSetup   = "managed"
	PrimaryClusterSetup   = "primary"
	SecondaryClusterSetup = "secondary"
)

ClusterSetupTypes

View Source
const (
	DefaultIngressClass  = "nginx"
	DefaultClusterIssuer = "kl-cert-issuer"
)
View Source
const (
	DefaultWgGatewayImage = "ghcr.io/kloudlite/operator/components/multi-cluster-gateway:v1.0.5-nightly"
	DefaultWgAgentImage   = "ghcr.io/kloudlite/operator/components/multi-cluster-agent:v1.0.5-nightly"

	DefaultCoreDNSImage = "ghcr.io/kloudlite/operator/components/coredns:v1.0.5-nightly"

	DefaultKeepAliveImage = "ghcr.io/kloudlite/operator/components/multi-cluster-keep-alive:v1.0.5-nightly"

	GVPNExposeNamespaceKey = "kloudlite.io/global-vpn.expose"
)
View Source
const (
	KloudliteNamespaceForEnvironment           = "kloudlite.io/namespace.for.environment"
	KloudliteNamespaceForClusterManagedService = "kloudlite.io/namespace.for.cmsvc"
	KloudliteNamespaceForGateway               = "kloudlite.io/namespace.for.gateway"
)
View Source
const (
	KloudliteOperatorResourceReadyAnnotation = "kloudlite.io/operator.resource.ready"
	KloudliteOperatorChecksAnnotation        = "kloudlite.io/operator.checks"
)
View Source
const (
	BuildRunNameKey string = "kloudlite.io/build-run.name"
)
View Source
const (
	KloudliteDNSHostname = "kloudlite.io/dns.hostname"
)
View Source
const KloudliteGatewayEnabledLabel = "kloudlite.io/gateway.enabled"
View Source
const KloudliteLabelPrefix = "kloudlite.io"
View Source
const (
	KloudliteLifecycleRetry = "kloudlite.io/lifecycle.retry"
)
View Source
const (
	KloudliteServiceBindingReservation = "kloudlite.io/servicebinding.reservation"
)

ServiceBinding constants

View Source
const MsvcApiVersion = "msvc.kloudlite.io/v1"

Variables

View Source
var (
	K8sConfigType = metav1.TypeMeta{
		Kind:       "ConfigMap",
		APIVersion: "v1",
	}

	K8sSecretType = metav1.TypeMeta{
		Kind:       "Secret",
		APIVersion: "v1",
	}
)
View Source
var (
	HelmMongoDBType = metav1.TypeMeta{
		APIVersion: MsvcApiVersion,
		Kind:       "HelmMongoDB",
	}

	HelmRedisType = metav1.TypeMeta{
		APIVersion: MsvcApiVersion,
		Kind:       "HelmRedis",
	}

	HelmMysqlType = metav1.TypeMeta{
		APIVersion: MsvcApiVersion,
		Kind:       "HelmMySqlDB",
	}

	HelmElasticType = metav1.TypeMeta{
		Kind:       "HelmElasticSearch",
		APIVersion: MsvcApiVersion,
	}

	HelmKibanaType = metav1.TypeMeta{
		Kind:       "HelmKibana",
		APIVersion: MsvcApiVersion,
	}

	HelmOpenSearchType = metav1.TypeMeta{
		Kind:       "HelmOpenSearch",
		APIVersion: MsvcApiVersion,
	}

	HelmZookeeperType = metav1.TypeMeta{
		Kind:       "HelmZookeeper",
		APIVersion: MsvcApiVersion,
	}

	HelmInfluxDBType = metav1.TypeMeta{
		Kind:       "HelmInfluxDB",
		APIVersion: MsvcApiVersion,
	}

	RedpandaClusterType = metav1.TypeMeta{
		Kind:       "Cluster",
		APIVersion: "redpanda.vectorized.io/v1alpha1",
	}

	HelmNeo4JStandaloneType = metav1.TypeMeta{
		Kind:       "HelmNeo4jStandalone",
		APIVersion: MsvcApiVersion,
	}

	DeviceType = metav1.TypeMeta{
		Kind:       "Device",
		APIVersion: "management.kloudlite.io/v1",
	}

	HelmAwsEbsCsiKind = metav1.TypeMeta{
		Kind:       "AwsEbsCsiDriver",
		APIVersion: "csi.helm.kloudlite.io/v1",
	}
	HelmDigitaloceanCsiKind = metav1.TypeMeta{
		Kind:       "DigitaloceanCSIDriver",
		APIVersion: "csi.helm.kloudlite.io/v1",
	}

	// infra types
	EdgeInfraType = metav1.TypeMeta{
		Kind:       "Edge",
		APIVersion: "infra.kloudlite.io/v1",
	}
	CloudProviderType = metav1.TypeMeta{
		Kind:       "CloudProvider",
		APIVersion: "infra.kloudlite.io/v1",
	}

	NodePoolType = metav1.TypeMeta{
		Kind:       "NodePool",
		APIVersion: "infra.kloudlite.io/v1",
	}

	WorkerNodeType = metav1.TypeMeta{
		Kind:       "WorkerNode",
		APIVersion: "infra.kloudlite.io/v1",
	}

	// cluster management types
	ClusterType = metav1.TypeMeta{
		Kind:       "Cluster",
		APIVersion: "cmgr.kloudlite.io/v1",
	}
	MasterNodeType = metav1.TypeMeta{
		Kind:       "MasterNode",
		APIVersion: "cmgr.kloudlite.io/v1",
	}
)
View Source
var (
	HelmIngressNginx = metav1.TypeMeta{
		Kind:       "Nginx",
		APIVersion: "ingress.kloudlite.io/v1",
	}

	TektonPipelineRunKind = metav1.TypeMeta{
		Kind:       "PipelineRun",
		APIVersion: "tekton.dev/v1beta1",
	}
)
View Source
var (
	KnativeServiceType = metav1.TypeMeta{
		Kind:       "Service",
		APIVersion: "serving.knative.dev/v1",
	}

	ClusterIssuerType = metav1.TypeMeta{
		Kind:       "ClusterIssuer",
		APIVersion: "cert-manager.io/v1",
	}

	StorageClassType = metav1.TypeMeta{
		APIVersion: "storage.k8s.io/v1",
		Kind:       "StorageClass",
	}
)
View Source
var AnnotationKeys = struct {
	AccountRef       string
	ProjectRef       string
	ResourceRef      string
	BillingPlan      string
	BillableQuantity string
	GroupVersionKind string
	IsShared         string

	Restart string
}{
	AccountRef:       "kloudlite.io/account-ref",
	ProjectRef:       "kloudlite.io/project-ref",
	ResourceRef:      "kloudlite.io/resource-ref",
	BillingPlan:      "kloudlite.io/billing-watcher-plan",
	BillableQuantity: "kloudlite.io/billable-quantity",
	GroupVersionKind: "kloudlite.io/group-version-kind",
	IsShared:         "kloudlite.io/is-shared",

	Restart: "kloudlite.io/do-restart",
}
View Source
var K8sMasterNodeSelector = map[string]string{
	"node-role.kubernetes.io/master": "true",
}
View Source
var KloudliteAccountType = metav1.TypeMeta{
	Kind:       "Account",
	APIVersion: "management.kloudlite.io/v1",
}
View Source
var LabelKeys = struct {
	HarborProjectRef string
	Freeze           string
	IsIntercepted    string
	DeviceRef        string
	ProjectName      string
	AppName          string
	CsiForEdge       string
}{
	HarborProjectRef: "artifacts.kloudlite.io/harbor-project-ref",
	Freeze:           "kloudlite.io/freeze",
	IsIntercepted:    "kloudlite.io/is-intercepted",
	DeviceRef:        "kloudlite.io/intercept.device-ref",

	ProjectName: "kloudlite.io/project.name",
	AppName:     "kloudlite.io/app.name",
	CsiForEdge:  "kloudlite.io/csi-for-edge",
}

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