Skip to content

Commit

Permalink
v3.7.2 fix for changing config
Browse files Browse the repository at this point in the history
  • Loading branch information
Lior Nabat committed Apr 21, 2023
1 parent 157a42d commit 2dda12c
Show file tree
Hide file tree
Showing 66 changed files with 148 additions and 150 deletions.
69 changes: 34 additions & 35 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: '3'

vars:
BINARY_NAME: kubemqctl
VERSION: v3.7.1
VERSION: v3.7.2

tasks:
check_update:
Expand Down
15 changes: 12 additions & 3 deletions cmd/config/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"context"

"github.com/AlecAivazis/survey/v2"
"github.com/kubemq-io/kubemqctl/pkg/config"
"github.com/kubemq-io/kubemqctl/pkg/utils"
Expand All @@ -16,8 +17,11 @@ var connectionExamples = `
# Execute connection configuration
# kubemqctl config connection
`
var connectionLong = `Config connection command allows to set Kubemqctl connection`
var connectionShort = `Config connection command allows to set Kubemqctl connection`

var (
connectionLong = `Config connection command allows to set Kubemqctl connection`
connectionShort = `Config connection command allows to set Kubemqctl connection`
)

func NewCmdConnection(ctx context.Context, cfg *config.Config) *cobra.Command {
o := &ConnectionOptions{
Expand Down Expand Up @@ -64,7 +68,8 @@ func runConnectionSelection(cfg *config.Config) error {
Message: "Select Connection Type:",
Options: []string{
"Kubernetes cluster",
"Direct"},
"Direct",
},
Default: "Kubernetes cluster",
Help: "Select the location of Kubemq server",
}
Expand All @@ -85,6 +90,10 @@ func runConnectionSelection(cfg *config.Config) error {
if err != nil {
return err
}
cfg.GrpcPort = 50000
cfg.RestPort = 9090
cfg.ApiPort = 8080
cfg.Host = "localhost"
case "Direct":
cfg.AutoIntegrated = false
promptHost := &survey.Input{
Expand Down
2 changes: 1 addition & 1 deletion docs/kubemqctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
* [kubemqctl scale](kubemqctl_scale.md) - Executes Kubemq scale commands
* [kubemqctl set](kubemqctl_set.md) - Executes set commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ kubemqctl build

* [kubemqctl](kubemqctl.md) -

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ kubemqctl commands [flags]
* [kubemqctl commands receive](kubemqctl_commands_receive.md) - Receive a body from 'commands' channel command
* [kubemqctl commands send](kubemqctl_commands_send.md) - Send messages to 'commands' channel command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_commands_attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ kubemqctl commands attach [flags]

* [kubemqctl commands](kubemqctl_commands.md) - Execute Kubemq 'commands' RPC commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_commands_receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ kubemqctl commands receive [flags]

* [kubemqctl commands](kubemqctl_commands.md) - Execute Kubemq 'commands' RPC commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_commands_send.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ kubemqctl commands send [flags]

* [kubemqctl commands](kubemqctl_commands.md) - Execute Kubemq 'commands' RPC commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ kubemqctl config [flags]
* [kubemqctl config context](kubemqctl_config_context.md) - Config context command allows to set Kubemqctl context
* [kubemqctl config license](kubemqctl_config_license.md) - Config license command allows to set Kubemqctl license

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_config_access.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl config access [flags]

* [kubemqctl config](kubemqctl_config.md) - Run Kubemqctl configuration wizard command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_config_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl config connection [flags]

* [kubemqctl config](kubemqctl_config.md) - Run Kubemqctl configuration wizard command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_config_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl config context [flags]

* [kubemqctl config](kubemqctl_config.md) - Run Kubemqctl configuration wizard command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_config_license.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl config license [flags]

* [kubemqctl config](kubemqctl_config.md) - Run Kubemqctl configuration wizard command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ kubemqctl create [flags]

* [kubemqctl](kubemqctl.md) -

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ kubemqctl delete [flags]
* [kubemqctl delete connector](kubemqctl_delete_connector.md) - Delete Kubemq connector
* [kubemqctl delete operator](kubemqctl_delete_operator.md) - Delete Kubemq operator

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_delete_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl delete cluster [flags]

* [kubemqctl delete](kubemqctl_delete.md) - Executes delete commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_delete_components.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl delete components [flags]

* [kubemqctl delete](kubemqctl_delete.md) - Executes delete commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_delete_connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl delete connector [flags]

* [kubemqctl delete](kubemqctl_delete.md) - Executes delete commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_delete_operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ kubemqctl delete operator [flags]

* [kubemqctl delete](kubemqctl_delete.md) - Executes delete commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ kubemqctl events [flags]
* [kubemqctl events receive](kubemqctl_events_receive.md) - Receive a body from 'events' channel command
* [kubemqctl events send](kubemqctl_events_send.md) - Send messages to an 'events' channel command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ kubemqctl events attach [flags]

* [kubemqctl events](kubemqctl_events.md) - Execute Kubemq 'events' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ kubemqctl events receive [flags]

* [kubemqctl events](kubemqctl_events.md) - Execute Kubemq 'events' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_send.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ kubemqctl events send [flags]

* [kubemqctl events](kubemqctl_events.md) - Execute Kubemq 'events' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_store.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ kubemqctl events_store [flags]
* [kubemqctl events_store receive](kubemqctl_events_store_receive.md) - Receive a messages from an 'events store'
* [kubemqctl events_store send](kubemqctl_events_store_send.md) - Send messages to an 'events store' channel command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_store_attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ kubemqctl events_store attach [flags]

* [kubemqctl events_store](kubemqctl_events_store.md) - Execute Kubemq 'events_store' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_store_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ kubemqctl events_store list [flags]

* [kubemqctl events_store](kubemqctl_events_store.md) - Execute Kubemq 'events_store' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_store_receive.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ kubemqctl events_store receive [flags]

* [kubemqctl events_store](kubemqctl_events_store.md) - Execute Kubemq 'events_store' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_events_store_send.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ kubemqctl events_store send [flags]

* [kubemqctl events_store](kubemqctl_events_store.md) - Execute Kubemq 'events_store' Pub/Sub commands

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ kubemqctl generate [flags]
* [kubemqctl generate authorization](kubemqctl_generate_authorization.md) - Generate authorization policy file
* [kubemqctl generate routes](kubemqctl_generate_routes.md) - Generate KubeMQ Smart Routing file

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_generate_authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ kubemqctl generate authentication [flags]
* [kubemqctl generate authentication certs](kubemqctl_generate_authentication_certs.md) - Generate JWT certificates
* [kubemqctl generate authentication token](kubemqctl_generate_authentication_token.md) - Generate and validate JWT tokens

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_generate_authentication_certs.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ kubemqctl generate authentication certs [flags]

* [kubemqctl generate authentication](kubemqctl_generate_authentication.md) - Generate and verify Authentication certificates and tokens

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_generate_authentication_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ kubemqctl generate authentication token [flags]

* [kubemqctl generate authentication](kubemqctl_generate_authentication.md) - Generate and verify Authentication certificates and tokens

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_generate_authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl generate authorization [flags]

* [kubemqctl generate](kubemqctl_generate.md) - Generate various kubemq related artifacts

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_generate_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl generate routes [flags]

* [kubemqctl generate](kubemqctl_generate.md) - Generate various kubemq related artifacts

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ kubemqctl get [flags]
* [kubemqctl get dashboard](kubemqctl_get_dashboard.md) - Get access to KubeMQ dashboard
* [kubemqctl get operator](kubemqctl_get_operator.md) - Get Kubemq Operators List

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_get_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ kubemqctl get cluster [flags]
* [kubemqctl get cluster events](kubemqctl_get_cluster_events.md) - Show Kubemq cluster events command
* [kubemqctl get cluster logs](kubemqctl_get_cluster_logs.md) - Stream logs of Kubemq cluster pods command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_get_cluster_describe.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ kubemqctl get cluster describe [flags]

* [kubemqctl get cluster](kubemqctl_get_cluster.md) - Get information of Kubemq cluster resources

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_get_cluster_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ kubemqctl get cluster events [flags]

* [kubemqctl get cluster](kubemqctl_get_cluster.md) - Get information of Kubemq cluster resources

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_get_cluster_logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ kubemqctl get cluster logs [flags]

* [kubemqctl get cluster](kubemqctl_get_cluster.md) - Get information of Kubemq cluster resources

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
2 changes: 1 addition & 1 deletion docs/kubemqctl_get_connectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ kubemqctl get connectors [flags]
* [kubemqctl get connectors describe](kubemqctl_get_connectors_describe.md) - Describe Kubemq connector command
* [kubemqctl get connectors logs](kubemqctl_get_connectors_logs.md) - Stream logs of Kubemq connector pods command

###### Auto generated by spf13/cobra on 9-Mar-2023
###### Auto generated by spf13/cobra on 21-Apr-2023
Loading

0 comments on commit 2dda12c

Please sign in to comment.