forked from rook/rook
core: rm unused consts
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
This commit is contained in:
@@ -41,8 +41,6 @@ import (
|
||||
var logger = capnslog.NewPackageLogger("github.com/rook/rook", "cephclient")
|
||||
|
||||
const (
|
||||
// DefaultKeyringFile is the default name of the file where Ceph stores its keyring info
|
||||
DefaultKeyringFile = "keyring"
|
||||
// Msgr2port is the listening port of the messenger v2 protocol
|
||||
Msgr2port = 3300
|
||||
// Msgr1port is the listening port of the messenger v1 protocol
|
||||
|
||||
@@ -52,7 +52,6 @@ type Images struct {
|
||||
}
|
||||
|
||||
const (
|
||||
mirrorModeDisabled = "disabled"
|
||||
mirrorModeInitOnly = "init-only"
|
||||
)
|
||||
|
||||
|
||||
@@ -37,8 +37,6 @@ const (
|
||||
reallyConfirmFlag = "--yes-i-really-really-mean-it"
|
||||
targetSizeRatioProperty = "target_size_ratio"
|
||||
CompressionModeProperty = "compression_mode"
|
||||
PgAutoscaleModeProperty = "pg_autoscale_mode"
|
||||
PgAutoscaleModeOn = "on"
|
||||
)
|
||||
|
||||
// crushRuleMutex coordinates crush rule cleanup with pool reconciles. Pool
|
||||
|
||||
@@ -24,18 +24,6 @@ import (
|
||||
"github.com/rook/rook/pkg/clusterd"
|
||||
)
|
||||
|
||||
const (
|
||||
// CephHealthOK denotes the status of ceph cluster when healthy.
|
||||
CephHealthOK = "HEALTH_OK"
|
||||
|
||||
// CephHealthWarn denotes the status of ceph cluster when unhealthy but recovering.
|
||||
CephHealthWarn = "HEALTH_WARN"
|
||||
|
||||
// CephHealthErr denotes the status of ceph cluster when unhealthy but usually needs
|
||||
// manual intervention.
|
||||
CephHealthErr = "HEALTH_ERR"
|
||||
)
|
||||
|
||||
const (
|
||||
defaultPgHealthyRegex = `^active(\+(clean|deep|scrubbing|snaptrim|snaptrim_wait))+$`
|
||||
)
|
||||
|
||||
@@ -53,14 +53,13 @@ const (
|
||||
|
||||
// value not credential, just configuration keys.
|
||||
//nolint:gosec
|
||||
kmipEndpoint = "KMIP_ENDPOINT"
|
||||
kmipTLSServerName = "TLS_SERVER_NAME"
|
||||
kmipReadTimeOut = "READ_TIMEOUT"
|
||||
kmipWriteTimeOut = "WRITE_TIMEOUT"
|
||||
KmipCACert = "CA_CERT"
|
||||
KmipClientCert = "CLIENT_CERT"
|
||||
KmipClientKey = "CLIENT_KEY"
|
||||
KmipUniqueIdentifier = "UNIQUE_IDENTIFIER"
|
||||
kmipEndpoint = "KMIP_ENDPOINT"
|
||||
kmipTLSServerName = "TLS_SERVER_NAME"
|
||||
kmipReadTimeOut = "READ_TIMEOUT"
|
||||
kmipWriteTimeOut = "WRITE_TIMEOUT"
|
||||
KmipCACert = "CA_CERT"
|
||||
KmipClientCert = "CLIENT_CERT"
|
||||
KmipClientKey = "CLIENT_KEY"
|
||||
|
||||
// EtcKmipDir is kmip config dir.
|
||||
EtcKmipDir = "/etc/kmip"
|
||||
|
||||
@@ -23,12 +23,6 @@ import (
|
||||
"github.com/coreos/pkg/capnslog"
|
||||
)
|
||||
|
||||
const (
|
||||
RBDSysBusPathDefault = "/sys/bus/rbd"
|
||||
RBDDevicesDir = "devices"
|
||||
RBDDevicePathPrefix = "/dev/rbd"
|
||||
)
|
||||
|
||||
var logger = capnslog.NewPackageLogger("github.com/rook/rook", "op-ceph-util")
|
||||
|
||||
// GetIPFromEndpoint return the IP from an endpoint string (192.168.0.1:6789)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -50,8 +50,6 @@ const (
|
||||
sgdiskCmd = "sgdisk"
|
||||
// CephLVPrefix is the prefix of a LV owned by ceph-volume
|
||||
CephLVPrefix = "ceph--"
|
||||
// DeviceMapperPrefix is the prefix of a LV from the device mapper interface
|
||||
DeviceMapperPrefix = "dm-"
|
||||
)
|
||||
|
||||
// CephVolumeInventory represents the output of the ceph-volume inventory command
|
||||
|
||||
@@ -31,11 +31,6 @@ import (
|
||||
const (
|
||||
// LocalBuildTag tag for the latest manifests
|
||||
LocalBuildTag = "local-build"
|
||||
|
||||
// test suite names
|
||||
CassandraTestSuite = "cassandra"
|
||||
CephTestSuite = "ceph"
|
||||
NFSTestSuite = "nfs"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user