From f732dd7935f22e3049870a8624c6e7072902ddbe Mon Sep 17 00:00:00 2001 From: LJ <110393214+ukff@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:31:29 +0200 Subject: [PATCH] Globalaccounts tool - fix config (#1293) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Kyma Binding with Gardener's Adminkubeconfig (#1160) * Gardener Admin Kubeconfig Generation as a Default Binding Provider * Linter & Default Service Account Correction * Build Correction * Added Missing Scheme Registration for shoot Package * Linter * Removed Empty Test * Removed Debug Lines * Review Remarks * Review Remarks * Removed Unnecessary Import * Linter * Review Remarks * Review Remarks * Linter * Review Remarks * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.6 (#1181) * Extend binding create endpoint (#1180) * Extend binding create endpoint * Apply suggestions * Remove necessary comment * Bump sec-scanners-config.yaml, KEB images and Chart to 1.10.7 (#1183) * Remove avs (#1182) * Remove AvS code * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip --------- Co-authored-by: Wojciech Wrzalik <74771103+ralikio@users.noreply.github.com> Co-authored-by: Kyma gopher bot <123084774+kyma-gopher-bot@users.noreply.github.com> Co-authored-by: KsaweryZietara <91937141+KsaweryZietara@users.noreply.github.com> Co-authored-by: Piotr Miƛkiewicz --- internal/globalaccounts/config.go | 2 +- internal/globalaccounts/globalaccounts.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/globalaccounts/config.go b/internal/globalaccounts/config.go index 4403369220..834759b076 100644 --- a/internal/globalaccounts/config.go +++ b/internal/globalaccounts/config.go @@ -9,6 +9,6 @@ type Config struct { DryRun bool `envconfig:"default=true"` ServiceID string `envconfig:"default=account-service-id"` ServiceSecret string `envconfig:"default=account-service-secret"` - ServiceAuth string `envconfig:"default=url"` + AuthURL string `envconfig:"default=url"` ServiceURL string `envconfig:"default=url"` } diff --git a/internal/globalaccounts/globalaccounts.go b/internal/globalaccounts/globalaccounts.go index 71d01653e9..6eebbd3837 100644 --- a/internal/globalaccounts/globalaccounts.go +++ b/internal/globalaccounts/globalaccounts.go @@ -67,7 +67,7 @@ func initAll(ctx context.Context, cfg Config, logs *logrus.Logger) (*http.Client oauthConfig := clientcredentials.Config{ ClientID: cfg.ServiceID, ClientSecret: cfg.ServiceSecret, - TokenURL: cfg.ServiceAuth, + TokenURL: cfg.AuthURL, } db, connection, err := storage.NewFromConfig(