Skip to content

Commit ccb12bf

Browse files
Daniil Stepanenkolibmonsoon-dev
Daniil Stepanenko
authored andcommitted
exposed shell operator metric storage
Signed-off-by: Daniil Stepanenko <[email protected]>
1 parent 70f54e6 commit ccb12bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/addon-operator/operator.go

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"github.com/flant/shell-operator/pkg/hook/controller"
3434
htypes "github.com/flant/shell-operator/pkg/hook/types"
3535
"github.com/flant/shell-operator/pkg/kube_events_manager/types"
36+
"github.com/flant/shell-operator/pkg/metric_storage"
3637
shell_operator "github.com/flant/shell-operator/pkg/shell-operator"
3738
sh_task "github.com/flant/shell-operator/pkg/task"
3839
"github.com/flant/shell-operator/pkg/task/queue"
@@ -69,6 +70,8 @@ type AddonOperator struct {
6970

7071
// AdmissionServer handles validation and mutation admission webhooks
7172
AdmissionServer *AdmissionServer
73+
74+
MetricStorage *metric_storage.MetricStorage
7275
}
7376

7477
func NewAddonOperator(ctx context.Context) *AddonOperator {
@@ -100,6 +103,7 @@ func NewAddonOperator(ctx context.Context) *AddonOperator {
100103
engine: so,
101104
ConvergeState: converge.NewConvergeState(),
102105
runtimeConfig: rc,
106+
MetricStorage: so.MetricStorage,
103107
}
104108

105109
ao.AdmissionServer = NewAdmissionServer(app.AdmissionServerListenPort, app.AdmissionServerCertsDir)

0 commit comments

Comments
 (0)