core: rm unused consts
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
This commit is contained in:
1 parent
a7d4c0ce88
commit
9eec9c730e
21 files changed
+12
-71
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user