core: rm unused consts

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
This commit is contained in:
Joshua Hoblitt committed 2026-05-14 09:34:52 -07:00
1 parent a7d4c0ce88
commit 9eec9c730e
21 files changed
+12 -71

No files matched your search

-2
View File
@@ -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
-1
View File
@@ -52,7 +52,6 @@ type Images struct {
}
const (
mirrorModeDisabled = "disabled"
mirrorModeInitOnly = "init-only"
)
-2
View File
@@ -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
-12
View File
@@ -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))+$`
)
+7 -8
View File
@@ -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"
-6
View File
@@ -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)