Skip to content

Commit

Permalink
controlplane: remove deprecated endpoint controller
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jan 17, 2025
1 parent 1947216 commit 238f5c9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 120 deletions.
1 change: 0 additions & 1 deletion pkg/controller/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package all

import (
// register all controllers
_ "github.com/AliyunContainerService/terway/pkg/controller/endpoint"
_ "github.com/AliyunContainerService/terway/pkg/controller/multi-ip/node"
_ "github.com/AliyunContainerService/terway/pkg/controller/multi-ip/pod"
_ "github.com/AliyunContainerService/terway/pkg/controller/node"
Expand Down
114 changes: 0 additions & 114 deletions pkg/controller/endpoint/endpoint.go

This file was deleted.

4 changes: 0 additions & 4 deletions types/controlplane/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ func ParseAndValidate(configFilePath, credentialFilePath string) (*Config, error
}
}

if c.RegisterEndpoint {
c.Controllers = append(c.Controllers, "endpoint")
}

err = validator.New().Struct(&c)
if err != nil {
return nil, err
Expand Down
1 change: 0 additions & 1 deletion types/controlplane/config_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type Config struct {
WebhookPort int `json:"webhookPort" validate:"gt=0,lte=65535" mod:"default=4443"`
CertDir string `json:"certDir" validate:"required" mod:"default=/var/run/webhook-cert"`
LeaderElection bool `json:"leaderElection"`
RegisterEndpoint bool `json:"registerEndpoint"` // deprecated
EnableTrace bool `json:"enableTrace"`

PodMaxConcurrent int `json:"podMaxConcurrent" validate:"gt=0,lte=10000" mod:"default=10"`
Expand Down

0 comments on commit 238f5c9

Please sign in to comment.