diff --git a/go-chaos/cmd/root.go b/go-chaos/cmd/root.go index bbae0608b..0a945ea89 100644 --- a/go-chaos/cmd/root.go +++ b/go-chaos/cmd/root.go @@ -18,7 +18,6 @@ import ( "fmt" "os" - "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "github.com/rs/zerolog/log" "github.com/spf13/cobra" @@ -70,9 +69,6 @@ var Commit = "HEAD" var Verbose bool var KubeConfigPath string var Namespace string -var ClientId string -var ClientSecret string -var Audience string var JsonLogging bool func NewCmd() *cobra.Command { @@ -91,13 +87,6 @@ func NewCmd() *cobra.Command { } internal.Namespace = Namespace internal.KubeConfigPath = KubeConfigPath - if ClientId != "" && ClientSecret != "" { - internal.ZeebeClientCredential, _ = zbc.NewOAuthCredentialsProvider(&zbc.OAuthProviderConfig{ - ClientID: ClientId, - ClientSecret: ClientSecret, - Audience: Audience, - }) - } }, } @@ -105,9 +94,6 @@ func NewCmd() *cobra.Command { rootCmd.PersistentFlags().BoolVarP(&JsonLogging, "jsonLogging", "", false, "json logging output") rootCmd.PersistentFlags().StringVar(&KubeConfigPath, "kubeconfig", "", "path the the kube config that will be used") rootCmd.PersistentFlags().StringVarP(&Namespace, "namespace", "n", "", "connect to the given namespace") - rootCmd.PersistentFlags().StringVarP(&ClientId, "clientId", "c", "", "connect using the given clientId") - rootCmd.PersistentFlags().StringVar(&ClientSecret, "clientSecret", "", "connect using the given client secret") - rootCmd.PersistentFlags().StringVar(&Audience, "audience", "", "connect using the given client secret") AddBackupCommand(rootCmd, flags) AddBrokersCommand(rootCmd) diff --git a/go-chaos/internal/flags.go b/go-chaos/internal/flags.go index d054c7e8e..4f1ff483e 100644 --- a/go-chaos/internal/flags.go +++ b/go-chaos/internal/flags.go @@ -15,21 +15,18 @@ package internal import ( - "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "github.com/rs/zerolog" ) -// defines whether the functions should print verbose output +// Verbosity defines whether the functions should print verbose output var Verbosity = false -// defines if a custom kube config should be used instead of the default one found by k8s +// KubeConfigPath defines if a custom kube config should be used instead of the default one found by k8s var KubeConfigPath string -// sets the namespace to be used instead of the namespace from the current kube context +// Namespace sets the namespace to be used instead of the namespace from the current kube context var Namespace string -var ZeebeClientCredential zbc.CredentialsProvider - -// defines whether the logging should be structured json logging +// JsonLogging defines whether the logging should be structured json logging var JsonLogging bool var JsonLogger zerolog.Logger