Skip to content

Commit

Permalink
exposed shell operator metric storage (#452)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Stepanenko <[email protected]>
Co-authored-by: Daniil Stepanenko <[email protected]>
Co-authored-by: Yuriy Losev <[email protected]>
  • Loading branch information
3 people authored Mar 5, 2024
1 parent 4bd99b7 commit fda2511
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/addon-operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/flant/shell-operator/pkg/hook/controller"
htypes "github.com/flant/shell-operator/pkg/hook/types"
"github.com/flant/shell-operator/pkg/kube_events_manager/types"
"github.com/flant/shell-operator/pkg/metric_storage"
shell_operator "github.com/flant/shell-operator/pkg/shell-operator"
sh_task "github.com/flant/shell-operator/pkg/task"
"github.com/flant/shell-operator/pkg/task/queue"
Expand Down Expand Up @@ -71,6 +72,9 @@ type AddonOperator struct {
// AdmissionServer handles validation and mutation admission webhooks
AdmissionServer *AdmissionServer


MetricStorage *metric_storage.MetricStorage

// LeaderElector represents leaderelection client for HA mode
LeaderElector *leaderelection.LeaderElector
}
Expand Down Expand Up @@ -104,6 +108,7 @@ func NewAddonOperator(ctx context.Context) *AddonOperator {
engine: so,
ConvergeState: converge.NewConvergeState(),
runtimeConfig: rc,
MetricStorage: so.MetricStorage,
}

ao.AdmissionServer = NewAdmissionServer(app.AdmissionServerListenPort, app.AdmissionServerCertsDir)
Expand Down

0 comments on commit fda2511

Please sign in to comment.