forked from rook/rook
core: rm unused consts
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
This commit is contained in:
@@ -59,9 +59,7 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
// DefaultClusterName states the default name of the rook-cluster if not provided.
|
||||
DefaultClusterName = "rook-ceph"
|
||||
disableHotplugEnv = "ROOK_DISABLE_DEVICE_HOTPLUG"
|
||||
disableHotplugEnv = "ROOK_DISABLE_DEVICE_HOTPLUG"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -44,11 +44,10 @@ const (
|
||||
dashboardPortHTTP = 7000
|
||||
dashboardUsername = "admin"
|
||||
//nolint:gosec // because of the word `Password`
|
||||
dashboardPasswordName = "rook-ceph-dashboard-password"
|
||||
passwordLength = 20
|
||||
passwordKeyName = "password"
|
||||
certAlreadyConfiguredErrorCode = 5
|
||||
invalidArgErrorCode = int(syscall.EINVAL)
|
||||
dashboardPasswordName = "rook-ceph-dashboard-password"
|
||||
passwordLength = 20
|
||||
passwordKeyName = "password"
|
||||
invalidArgErrorCode = int(syscall.EINVAL)
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -55,8 +55,6 @@ const (
|
||||
mgrRoleLabelName = "mgr_role"
|
||||
activeMgrStatus = "active"
|
||||
standbyMgrStatus = "standby"
|
||||
monitoringPath = "/etc/ceph-monitoring/"
|
||||
serviceMonitorFile = "service-monitor.yaml"
|
||||
serviceMonitorPort = "http-metrics"
|
||||
// minimum amount of memory in MB to run the pod
|
||||
cephMgrPodMinimumMemory uint64 = 512
|
||||
|
||||
@@ -78,8 +78,6 @@ const (
|
||||
|
||||
// DefaultMonCount Default mon count for a cluster
|
||||
DefaultMonCount = 3
|
||||
// MaxMonCount Maximum allowed mon count for a cluster
|
||||
MaxMonCount = 9
|
||||
|
||||
// DefaultMsgr1Port is the default port Ceph mons use to communicate amongst themselves prior
|
||||
// to Ceph Nautilus.
|
||||
|
||||
@@ -43,8 +43,6 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
monitoringPath = "/etc/ceph-monitoring/"
|
||||
serviceMonitorFile = "exporter-service-monitor.yaml"
|
||||
sockDir = "/run/ceph"
|
||||
defaultPrioLimit = "5"
|
||||
defaultStatsPeriod = "5"
|
||||
|
||||
@@ -34,7 +34,6 @@ import (
|
||||
|
||||
const (
|
||||
crashClient = `client.crash`
|
||||
exporterClient = `client.ceph-exporter`
|
||||
crashKeyringTemplate = `
|
||||
[client.crash]
|
||||
key = %s
|
||||
|
||||
@@ -17,8 +17,6 @@ limitations under the License.
|
||||
package config
|
||||
|
||||
const (
|
||||
// Bluestore represents a bluestore OSD
|
||||
Bluestore = "bluestore"
|
||||
// WalDefaultSizeMB is the default WAL size in Megabytes for Rocksdb in Bluestore
|
||||
WalDefaultSizeMB = 576
|
||||
)
|
||||
|
||||
@@ -60,12 +60,6 @@ const (
|
||||
|
||||
// CrashType defines the crash collector DaemonType
|
||||
CrashType = "crashcollector"
|
||||
|
||||
// CephUser is the Linux Ceph username
|
||||
CephUser = "ceph"
|
||||
|
||||
// CephGroup is the Linux Ceph groupname
|
||||
CephGroup = "ceph"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -73,10 +73,6 @@ var (
|
||||
// ImmediateRetryResult Return this for a immediate retry of the reconciliation loop with the same request object.
|
||||
ImmediateRetryResult = reconcile.Result{Requeue: true}
|
||||
|
||||
// ImmediateRetryResultNoBackoff Return this for a immediate retry of the reconciliation loop with the same request object.
|
||||
// Override the exponential backoff behavior by setting the RequeueAfter time explicitly.
|
||||
ImmediateRetryResultNoBackoff = reconcile.Result{Requeue: true, RequeueAfter: time.Second}
|
||||
|
||||
// WaitForRequeueIfCephClusterNotReady waits for the CephCluster to be ready
|
||||
WaitForRequeueIfCephClusterNotReady = reconcile.Result{Requeue: true, RequeueAfter: 10 * time.Second}
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@ const (
|
||||
DaemonIDLabel = "ceph_daemon_id"
|
||||
daemonTypeLabel = "ceph_daemon_type"
|
||||
ExternalMgrAppName = "rook-ceph-mgr-external"
|
||||
ExternalCephExporterName = "rook-ceph-exporter-external"
|
||||
ServiceExternalMetricName = "http-external-metrics"
|
||||
CephUserID = int64(167)
|
||||
livenessProbeTimeoutSeconds int32 = 5
|
||||
|
||||
@@ -45,7 +45,6 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
packageName = "ceph-cosi"
|
||||
controllerName = "ceph-cosi-controller"
|
||||
CephCOSIDriverName = "ceph-cosi-driver"
|
||||
COSISideCarName = "objectstorage-provisioner-sidecar"
|
||||
|
||||
@@ -44,8 +44,6 @@ const (
|
||||
// PrivateIPEnvVar pod IP env var
|
||||
PrivateIPEnvVar = "ROOK_PRIVATE_IP"
|
||||
|
||||
// DefaultRepoPrefix repo prefix
|
||||
DefaultRepoPrefix = "rook"
|
||||
// ConfigOverrideName config override name
|
||||
ConfigOverrideName = "rook-config-override"
|
||||
// ConfigOverrideVal config override value
|
||||
|
||||
@@ -19,8 +19,6 @@ package k8sutil
|
||||
const (
|
||||
// ReadyStatus reflects the completeness of tasks for ceph related CRs
|
||||
ReadyStatus = "Ready"
|
||||
// ProcessingStatus reflects that the tasks are in progress for ceph related CRs
|
||||
ProcessingStatus = "Processing"
|
||||
// FailedStatus reflects that some task failed for ceph related CRs
|
||||
FailedStatus = "Failed"
|
||||
// ReconcilingStatus indicates the CR is reconciling
|
||||
|
||||
Reference in New Issue
Block a user