Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7d765c4

Browse files
author
Daniil Stepanenko
committedFeb 20, 2024·
exposed shell operator metric storage
Signed-off-by: Daniil Stepanenko <[email protected]>
1 parent 176cc94 commit 7d765c4

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
@@ -32,6 +32,7 @@ import (
3232
"github.com/flant/shell-operator/pkg/hook/controller"
3333
htypes "github.com/flant/shell-operator/pkg/hook/types"
3434
"github.com/flant/shell-operator/pkg/kube_events_manager/types"
35+
"github.com/flant/shell-operator/pkg/metric_storage"
3536
shell_operator "github.com/flant/shell-operator/pkg/shell-operator"
3637
sh_task "github.com/flant/shell-operator/pkg/task"
3738
"github.com/flant/shell-operator/pkg/task/queue"
@@ -68,6 +69,8 @@ type AddonOperator struct {
6869

6970
// AdmissionServer handles validation and mutation admission webhooks
7071
AdmissionServer *AdmissionServer
72+
73+
MetricStorage *metric_storage.MetricStorage
7174
}
7275

7376
func NewAddonOperator(ctx context.Context) *AddonOperator {
@@ -99,6 +102,7 @@ func NewAddonOperator(ctx context.Context) *AddonOperator {
99102
engine: so,
100103
ConvergeState: NewConvergeState(),
101104
runtimeConfig: rc,
105+
MetricStorage: so.MetricStorage,
102106
}
103107

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

0 commit comments

Comments
 (0)
Please sign in to comment.