-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathdefaults.go
64 lines (62 loc) · 3.61 KB
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Package defaults contains the default values for various configurable
// options of a StorageCluster and constants on StorageConsumer
package defaults
const (
// NodeAffinityKey is the node label to determine which nodes belong
// to a storage cluster
NodeAffinityKey = "cluster.ocs.openshift.io/openshift-storage"
// NodeTolerationKey is the taint all OCS Pods should tolerate
NodeTolerationKey = "node.ocs.openshift.io/storage"
// RackTopologyKey is the node label used to distribute storage nodes
// when there are not enough AZs presnet across the nodes
RackTopologyKey = "topology.rook.io/rack"
// ODFResourceProfileKey is the label key used to identify the resource profile of the pod
ODFResourceProfileKey = "odf-resource-profile"
// KubeMajorTopologySpreadConstraints is the minimum major kube version to support TSC
// used along with KubeMinorTSC for version comparison
KubeMajorTopologySpreadConstraints = "1"
// KubeMinorTopologySpreadConstraints is the minimum minor kube version to support TSC
// used along with KubeMajorTSC for version comparison
KubeMinorTopologySpreadConstraints = "19"
// This annotation is used by both StorageCluster and StorageClass to specify whether
// the key rotation feature is enabled. Users can add this annotation to StorageCluster
// with a value of "false" to disable key rotation. When present, this annotation is then
// propagated to the associated StorageClasses.
KeyRotationEnableAnnotation = "keyrotation.csiaddons.openshift.io/enable"
// Identifies storageconsumer is serving local or remote remote client
StorageConsumerTypeAnnotation = "ocs.openshift.io/storageconsumer-type"
StorageConsumerTypeLocal = "local"
StorageConsumerTypeRemote = "remote"
)
var (
// DefaultMgrCount is the default number of Ceph Manager Pods
DefaultMgrCount = 2
// ArbiterModeMgrCount is the number of Ceph Manager pods in arbiter mode
ArbiterModeMgrCount = 2
// DefaultMonCount is the number of monitors to be configured for the CephCluster
DefaultMonCount = 3
// ArbiterModeMonCount is the number of monitors to be configured for the CephCluster in arbiter mode
ArbiterModeMonCount = 5
// DeviceSetReplica is the default number of Rook-Ceph
// StorageClassDeviceSets per StorageCluster StorageDeviceSet
// This is equal to the default number of failure domains for OSDs
DeviceSetReplica = 3
// CephFSActiveMetadataServerCount is the default number of active CephFS metadata servers
CephFSActiveMetadataServers = 1
// CephObjectStoreGatewayInstances is the default number of RGW instances to create
CephObjectStoreGatewayInstances = 1
// ArbiterCephObjectStoreGatewayInstances is the default number of RGW instances to create when arbiter is enabled
ArbiterCephObjectStoreGatewayInstances = 2
// IsUnsupportedCephVersionAllowed is a string that determines if the CephCluster should allow unsupported ceph version image
IsUnsupportedCephVersionAllowed = ""
// ArbiterModeDeviceSetReplica is the default number of Rook-Ceph
// StorageClassDeviceSets per StorageCluster StorageDeviceSet when arbiter is enabled
// This is equal to the default number of failure domains for OSDs when arbiter is enabled
ArbiterModeDeviceSetReplica = 2
// ReplicasPerFailureDomain is the default replica count in the failure domain
// This maps to the ReplicasPerFailureDomain in the CephReplicatedSpec when creating the CephBlockPools
ReplicasPerFailureDomain = 1
// ArbiterReplicasPerFailureDomain is the default replica count in the failure domain when arbiter is enabled
// This maps to the ReplicasPerFailureDomain in the CephReplicatedSpec when creating the CephBlockPools
ArbiterReplicasPerFailureDomain = 2
)