Skip to content

Commit

Permalink
[chore] remove some function only support for management cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Jun 4, 2024
1 parent ed75943 commit 4f6d879
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 121 deletions.
6 changes: 0 additions & 6 deletions cmd/vngcloud-blockstorage-csi-driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ type ServerOptions struct {
EnableOtelTracing bool
TagKeyLength int
TagValueLength int
CacheUri string
AlertChannel string
AlertChannelSize int
}

func (s *ServerOptions) AddFlags(fs *lflag.FlagSet) {
Expand All @@ -112,9 +109,6 @@ func (s *ServerOptions) AddFlags(fs *lflag.FlagSet) {
fs.StringVar(&s.ClusterID, "cluster-id", "", "The unique ID of the cluster. This is used to identify the cluster in the logs.")
fs.IntVar(&s.TagKeyLength, "tag-key-length", 15, "The maximum length of the tag key.")
fs.IntVar(&s.TagValueLength, "tag-value-length", 255, "The maximum length of the tag value.")
fs.StringVar(&s.CacheUri, "cache-uri", "", "The URI of the cache server.")
fs.StringVar(&s.AlertChannel, "alert-channel", "", "The alert channel to send alerts to.")
fs.IntVar(&s.AlertChannelSize, "alert-channel-size", 100, "The size of the alert channel.")
}

type ControllerOptions struct {
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ require (
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/emicklei/go-restful/v3 v3.12.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
Expand Down Expand Up @@ -83,7 +82,6 @@ require (
github.com/prometheus/common v0.53.0 // indirect
github.com/prometheus/procfs v0.14.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/technoweenie/multipartstreamer v1.0.1 // indirect
go.opentelemetry.io/otel/metric v1.26.0 // indirect
go.opentelemetry.io/otel/trace v1.26.0 // indirect
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
Expand Down
Loading

0 comments on commit 4f6d879

Please sign in to comment.