mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
UniStore: Remove leftover references to unifiedStorage
feature toggle (#92685)
it got removed on https://github.com/grafana/grafana/pull/92192 Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
parent
f4249c2141
commit
2b3d2e5b40
@ -90,7 +90,7 @@ type DualWriterMode int
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Mode0 represents writing to and reading from solely LegacyStorage. This mode is enabled when the
|
// Mode0 represents writing to and reading from solely LegacyStorage. This mode is enabled when the
|
||||||
// `unifiedStorage` feature flag is not set. All reads and writes are made to LegacyStorage. None are made to Storage.
|
// Unified Storage is disabled. All reads and writes are made to LegacyStorage. None are made to Storage.
|
||||||
Mode0 DualWriterMode = iota
|
Mode0 DualWriterMode = iota
|
||||||
// Mode1 represents writing to and reading from LegacyStorage for all primary functionality while additionally
|
// Mode1 represents writing to and reading from LegacyStorage for all primary functionality while additionally
|
||||||
// reading and writing to Storage on a best effort basis for the sake of collecting metrics.
|
// reading and writing to Storage on a best effort basis for the sake of collecting metrics.
|
||||||
@ -116,7 +116,7 @@ func NewDualWriter(
|
|||||||
metrics.init(reg)
|
metrics.init(reg)
|
||||||
switch mode {
|
switch mode {
|
||||||
// It is not possible to initialize a mode 0 dual writer. Mode 0 represents
|
// It is not possible to initialize a mode 0 dual writer. Mode 0 represents
|
||||||
// writing to legacy storage without `unifiedStorage` enabled.
|
// writing to legacy storage without Unified Storage enabled.
|
||||||
case Mode1:
|
case Mode1:
|
||||||
// read and write only from legacy storage
|
// read and write only from legacy storage
|
||||||
return newDualWriterMode1(legacy, storage, metrics, resource)
|
return newDualWriterMode1(legacy, storage, metrics, resource)
|
||||||
@ -179,7 +179,7 @@ func SetDualWritingMode(
|
|||||||
|
|
||||||
toMode := map[string]DualWriterMode{
|
toMode := map[string]DualWriterMode{
|
||||||
// It is not possible to initialize a mode 0 dual writer. Mode 0 represents
|
// It is not possible to initialize a mode 0 dual writer. Mode 0 represents
|
||||||
// writing to legacy storage without `unifiedStorage` enabled.
|
// writing to legacy storage without Unified Storage enabled.
|
||||||
"1": Mode1,
|
"1": Mode1,
|
||||||
"2": Mode2,
|
"2": Mode2,
|
||||||
"3": Mode3,
|
"3": Mode3,
|
||||||
|
@ -26,8 +26,6 @@ target = all
|
|||||||
protocol = https
|
protocol = https
|
||||||
|
|
||||||
[feature_toggles]
|
[feature_toggles]
|
||||||
; enable unified storage
|
|
||||||
unifiedStorage = true
|
|
||||||
; enable k8s apiserver
|
; enable k8s apiserver
|
||||||
grafanaAPIServer = true
|
grafanaAPIServer = true
|
||||||
; store playlists in k8s
|
; store playlists in k8s
|
||||||
|
Loading…
Reference in New Issue
Block a user