Skip to content

Commit 4795dba

Browse files
authored
Remove ops-address port (#518)
1 parent e95b151 commit 4795dba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/options.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ type ExtraOptions struct {
2121
MaxNumRequeues int
2222
NumThreads int
2323
ScratchDir string
24-
OpsAddress string
2524
QPS float64
2625
Burst int
2726
ResyncPeriod time.Duration
@@ -34,15 +33,13 @@ func NewExtraOptions() *ExtraOptions {
3433
MaxNumRequeues: 5,
3534
NumThreads: 2,
3635
ScratchDir: "/tmp",
37-
OpsAddress: ":56790",
3836
QPS: 100,
3937
Burst: 100,
4038
ResyncPeriod: 10 * time.Minute,
4139
}
4240
}
4341

4442
func (s *ExtraOptions) AddGoFlags(fs *flag.FlagSet) {
45-
fs.StringVar(&s.OpsAddress, "ops-address", s.OpsAddress, "Address to listen on for web interface and telemetry.")
4643
fs.BoolVar(&s.EnableRBAC, "rbac", s.EnableRBAC, "Enable RBAC for operator")
4744
fs.StringVar(&s.ScratchDir, "scratch-dir", s.ScratchDir, "Directory used to store temporary files. Use an `emptyDir` in Kubernetes.")
4845
fs.StringVar(&s.StashImageTag, "image-tag", s.StashImageTag, "Image tag for sidecar, init-container, check-job and recovery-job")
@@ -67,7 +64,6 @@ func (s *ExtraOptions) ApplyTo(cfg *controller.Config) error {
6764
cfg.DockerRegistry = s.DockerRegistry
6865
cfg.MaxNumRequeues = s.MaxNumRequeues
6966
cfg.NumThreads = s.NumThreads
70-
cfg.OpsAddress = s.OpsAddress
7167
cfg.ResyncPeriod = s.ResyncPeriod
7268

7369
cfg.ClientConfig.QPS = float32(s.QPS)

0 commit comments

Comments
 (0)