Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Finalizer name used by operator Finalizer = "hazelcast.com/finalizer" // Finalizer name used by operator to stop wan replication of a map WanRepMapFinalizer = "hazelcast.com/wan-replicated-map" // LicenseDataKey is a key used in k8s secret that holds the Hazelcast license LicenseDataKey = "license-key" // LicenseKeySecret default license key secret LicenseKeySecret = "hazelcast-license-key" // ServicePerPodLabelName set to true when the service is a Service per pod ServicePerPodLabelName = "hazelcast.com/service-per-pod" ServicePerPodCountAnnotation = "hazelcast.com/service-per-pod-count" ExposeExternallyAnnotation = "hazelcast.com/expose-externally-member-access" LastAppliedSpecAnnotation = "hazelcast.com/last-applied-spec" LastSuccessfulSpecAnnotation = "hazelcast.com/last-successful-spec" CurrentHazelcastConfigForcingRestartChecksum = "hazelcast.com/current-hazelcast-config-forcing-restart-checksum" // ServiceEndpointTypeLabelName defines the name of the service referred by the HazelcastEndpoint ServiceEndpointTypeLabelName = "hazelcast.com/hazelcast-service-endpoint-type" ServiceEndpointTypeDiscoveryLabelValue = "discovery" ServiceEndpointTypeMemberLabelValue = "member" ServiceEndpointTypeWANLabelValue = "wan" // PodNameLabel label that represents the name of the pod in the StatefulSet PodNameLabel = "statefulset.kubernetes.io/pod-name" // ApplicationNameLabel label for the name of the application ApplicationNameLabel = "app.kubernetes.io/name" // ApplicationInstanceNameLabel label for a unique name identifying the instance of an application ApplicationInstanceNameLabel = "app.kubernetes.io/instance" // ApplicationManagedByLabel label for the tool being used to manage the operation of an application ApplicationManagedByLabel = "app.kubernetes.io/managed-by" LabelValueTrue = "true" LabelValueFalse = "false" OperatorName = "hazelcast-platform-operator" Hazelcast = "hazelcast" HazelcastPortName = "hazelcast" HazelcastStorageName = Hazelcast + "-storage" HazelcastMountPath = "/data/hazelcast" TmpDirVolName = "tmp-vol" // ManagementCenter MC name ManagementCenter = "management-center" // Mancenter MC short name Mancenter = "mancenter" // MancenterPort MC short name MancenterPort = Mancenter + "-port" // MancenterStorageName storage name for MC MancenterStorageName = Mancenter + "-storage" // PVCName is the name the Persistence Volume Claim used in Persistence configuration. PVCName = "persistence" CPPersistenceVolumeName = "cp-subsystem-persistence" UserCodeBucketVolumeName = "user-code-bucket" UCNVolumeName = "user-code-namespace" JetJobJarsVolumeName = "jet-job-jars-bucket" JetConfigMapNamePrefix = "jet-cm-" UserCodeURLVolumeName = "user-code-url" UserCodeConfigMapNamePrefix = "user-code-cm-" PersistenceMountPath = "/data/persistence" BaseDir = PersistenceMountPath + "/base-dir" BackupDir = "/hot-backup" TieredStorageBaseDir = "/data/tiered-storage" CPDirSuffix = "/cp-data" CPBaseDir = "/data" + CPDirSuffix SidecarAgent = "sidecar-agent" RestoreAgent = "restore-agent" InitContainer = "init-container" InitSuffix = "-init" InitConfigMap = "agent-config-volume" InitConfigDir = "/opt/data/config/" InitConfigFile = "config.yaml" MTLSCertSecretName = "hazelcast-agent-cert" MTLSCertPath = "/var/run/secrets/hazelcast" UserCodeBucketPath = "/opt/hazelcast/userCode/bucket" UserCodeURLPath = "/opt/hazelcast/userCode/urls" UserCodeConfigMapPath = "/opt/hazelcast/userCode/cm" JetJobJarsPath = "/opt/hazelcast/jetJobJars" UCNBucketPath = "/opt/hazelcast/ucn/bucket" )
Labels and label values
View Source
const ( // DefaultHzPort Hazelcast default port DefaultHzPort = 5701 // DefaultClusterSize default number of members of Hazelcast cluster DefaultClusterSize = 3 // DefaultClusterName default name of Hazelcast cluster DefaultClusterName = "dev" // HazelcastRepo image repository for Hazelcast HazelcastRepo = "docker.io/hazelcast/hazelcast" // HazelcastEERepo image repository for Hazelcast EE HazelcastEERepo = "docker.io/hazelcast/hazelcast-enterprise" // HazelcastVersion version of Hazelcast image HazelcastVersion = "5.5.0-SNAPSHOT" // HazelcastImagePullPolicy pull policy for Hazelcast Platform image HazelcastImagePullPolicy = corev1.PullIfNotPresent )
Hazelcast default configurations
View Source
const ( // MCRepo image repository for Management Center MCRepo = "docker.io/hazelcast/management-center" // MCVersion version of Management Center image MCVersion = "5.4.1" // MCImagePullPolicy pull policy for Management Center image MCImagePullPolicy = corev1.PullIfNotPresent )
Management Center default configurations
View Source
const ( DefaultMapBackupCount = int32(1) DefaultMapAsyncBackupCount = int32(0) DefaultMapTimeToLiveSeconds = int32(0) DefaultMapMaxIdleSeconds = int32(0) DefaultMapPersistenceEnabled = false DefaultMapEvictionPolicy = "NONE" DefaultMapMaxSizePolicy = "PER_NODE" DefaultMapMaxSize = int32(0) )
Map Config default values
View Source
const ( DefaultMultiMapBackupCount = int32(1) DefaultMultiMapAsyncBackupCount = int32(0) DefaultMultiMapBinary = false DefaultMultiMapCollectionType = "SET" DefaultMultiMapStatisticsEnabled = true DefaultMultiMapMergePolicy = "com.hazelcast.spi.merge.PutIfAbsentMergePolicy" DefaultMultiMapMergeBatchSize = int32(100) )
MultiMap Config default values
View Source
const ( DefaultQueueBackupCount = int32(1) DefaultQueueAsyncBackupCount = int32(0) DefaultQueueMaxSize = int32(0) DefaultQueueEmptyQueueTtl = int32(-1) DefaultQueueStatisticsEnabled = true DefaultQueueMergePolicy = "com.hazelcast.spi.merge.PutIfAbsentMergePolicy" DefaultQueueMergeBatchSize = int32(100) )
Queue Config default values
View Source
const ( DefaultCacheBackupCount = int32(1) DefaultCacheAsyncBackupCount = int32(0) DefaultCacheStatisticsEnabled = false DefaultCacheManagementEnabled = false DefaultCacheMergePolicy = "com.hazelcast.spi.merge.PutIfAbsentMergePolicy" DefaultCacheMergeBatchSize = int32(100) DefaultCacheReadThrough = false DefaultCacheWriteThrough = false DefaultCacheInMemoryFormat = "BINARY" DefaultCacheDisablePerEntryInvalidationEvents = false )
Cache Config default values
View Source
const ( DefaultReplicatedMapInMemoryFormat = "OBJECT" DefaultReplicatedMapAsyncFillup = true DefaultReplicatedMapStatisticsEnabled = true DefaultReplicatedMapMergePolicy = "com.hazelcast.spi.merge.PutIfAbsentMergePolicy" DefaultReplicatedMapMergeBatchSize = int32(100) )
ReplicatedMap Config default values
View Source
const ( DefaultSuccessfulHotBackupsHistoryLimit = int32(5) DefaultFailedHotBackupsHistoryLimit = int32(3) )
CronHotBackup Config default values
View Source
const ( DefaultTopicGlobalOrderingEnabled = false DefaultTopicMultiThreadingEnabled = false DefaultTopicStatisticsEnabled = true )
Topic Config default values
View Source
const ( PhoneHomeEnabledEnv = "PHONE_HOME_ENABLED" DeveloperModeEnabledEnv = "DEVELOPER_MODE_ENABLED" PardotIDEnv = "PARDOT_ID" OperatorVersionEnv = "OPERATOR_VERSION" NamespaceEnv = "NAMESPACE" WatchedNamespacesEnv = "WATCHED_NAMESPACES" PodNameEnv = "POD_NAME" HazelcastNodeDiscoveryEnabledEnv = "HAZELCAST_NODE_DISCOVERY_ENABLED" )
Operator Values
View Source
const ( MemberPortName = "member-port" ClientPortName = "client-port" RestPortName = "rest-port" WanDefaultPortName = "wan-port" WanPortNamePrefix = "wan-" MemberServerSocketPort = 5702 ClientServerSocketPort = 5701 RestServerSocketPort = 8081 WanDefaultPort = 5710 )
Advanced Network Constants
View Source
const (
ClusterSizeLimit = 300
)
Cluster Size Limit constants
View Source
const (
// DefaultAgentPort Backup&Restore agent default port
DefaultAgentPort = 8080
)
Backup&Restore agent default configurations
View Source
const ( // DefaultMergePolicyClassName is the default value for // merge policy in WAN reference config DefaultMergePolicyClassName = "com.hazelcast.spi.merge.PassThroughMergePolicy" )
WAN related configuration constants
View Source
const HazelcastCustomConfigKey = "hazelcast"
View Source
const HazelcastCustomConfigOverwriteAnnotation = "hazelcast.com/custom-config-overwrite"
View Source
const (
MaxBackupCount = 6
)
Jet Engine Config Constants
View Source
const (
WebhookServerPath = "/tmp/k8s-webhook-server/serving-certs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.