Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
config - move configuration option to plugin/api
Browse files Browse the repository at this point in the history
Signed-off-by: Wayne Witzel III <[email protected]>
  • Loading branch information
wwitzel3 committed Jul 13, 2021
1 parent affb1e5 commit 9a2de8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/2610-wwitzel3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export config.Dash and related interfaces to allow easier usage of Octant as a library
3 changes: 2 additions & 1 deletion internal/commands/dash.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/vmware-tanzu/octant/internal/log"
"github.com/vmware-tanzu/octant/pkg/config"
"github.com/vmware-tanzu/octant/pkg/dash"
papi "github.com/vmware-tanzu/octant/pkg/plugin/api"
)

func newOctantCmd(version string, gitCommit string, buildTime string) *cobra.Command {
Expand Down Expand Up @@ -160,7 +161,7 @@ func newOctantCmd(version string, gitCommit string, buildTime string) *cobra.Com
octantCmd.Flags().StringSlice("namespace-list", []string{}, "a list of namespaces to use on start")
octantCmd.Flags().StringP("plugin-path", "", "", "plugin path")
octantCmd.Flags().BoolP("verbose", "v", false, "turn on debug logging")
octantCmd.Flags().IntP("client-max-recv-msg-size", "", config.MaxMessageSize, "client max receiver message size")
octantCmd.Flags().IntP("client-max-recv-msg-size", "", papi.MaxMessageSize, "client max receiver message size")

octantCmd.Flags().StringP("accepted-hosts", "", "", "accepted hosts list [DEV]")
octantCmd.Flags().Float32P("client-qps", "", 200, "maximum QPS for client [DEV]")
Expand Down
9 changes: 0 additions & 9 deletions pkg/config/config.go

This file was deleted.

0 comments on commit 9a2de8b

Please sign in to comment.