constants

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FinalizerName = "interoperator.servicefabrik.io"
	// Core objects need finalizer to be in specific format.
	// So introducing additional finalizer
	InteroperatorFinalizerName            = "interoperator.servicefabrik.io/finalizer"
	SFServiceInstanceCounterFinalizerName = "sfserviceinstancecounter.servicefabrik.io"
	ErrorCountKey                         = "interoperator.servicefabrik.io/error"
	LastOperationKey                      = "interoperator.servicefabrik.io/lastoperation"
	PrimaryClusterKey                     = "interoperator.servicefabrik.io/primarycluster"
	PlanHashKey                           = "interoperator.servicefabrik.io/planhash"
	ErrorThreshold                        = 10
	PlanDeleteAttempts                    = "interoperator.servicefabrik.io/deleteattempts"

	ConfigMapName           = "interoperator-config"
	ConfigMapKey            = "config"
	ProvisionerName         = "provisioner"
	ProvisionerTemplateName = "provisioner-template"

	NamespaceEnvKey    = "POD_NAMESPACE"
	OwnClusterIDEnvKey = "CLUSTER_ID"

	NamespaceLabelKey = "OWNER_INTEROPERATOR_NAMESPACE"

	MultiClusterWatchTimeout = 86400 // 24 hours in seconds

	DefaultInstanceWorkerCount    = 10
	DefaultBindingWorkerCount     = 20
	DefaultSchedulerWorkerCount   = 10
	DefaultProvisionerWorkerCount = 10
	DefaultPrimaryClusterID       = "1"

	GoTemplateType = "gotemplate"

	PlanWatchDrainTimeout           = time.Second * 2
	DefaultClusterReconcileInterval = "20m"

	ListPaginationLimit = 100
)

Constants used by interoperator

View Source
const (
	LeaderElectionID = "interoperator-leader-election-helper"
)

Default values of Constants used by interoperator which are build specific

Variables

View Source
var (
	InteroperatorNamespace = "default"
	OwnClusterID           = "1"   // "1" is the DefaultMasterClusterID
	K8SDeployment          = false // Set to true when POD_NAMESPACE env is set

	// used only in multiclusterdeploy build
	ReplicaCount = 1
)

Configs initialized at startup

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