From b461dcc0b7d8935ae817c392ea31cf94985362aa Mon Sep 17 00:00:00 2001 From: Ratnakar Date: Thu, 3 Aug 2023 13:26:54 -0400 Subject: [PATCH] Let console handle auth_scheme (#125) https://github.com/hyperledger-labs/fabric-operator/issues/124 Signed-off-by: asararatnakar --- definitions/console/console-configmap.yaml | 1 - pkg/apis/console/v1/console.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/definitions/console/console-configmap.yaml b/definitions/console/console-configmap.yaml index d57684bb..851ddf6b 100644 --- a/definitions/console/console-configmap.yaml +++ b/definitions/console/console-configmap.yaml @@ -24,7 +24,6 @@ data: settings.yaml: | version: "v2.0" initial_admin: "xyz@ibm.com" - auth_scheme: "couchdb" configtxlator: "http://localhost:8083" deployer_url: "http://dev:dev123@localhost:8080" deployer_timeout: 60000 diff --git a/pkg/apis/console/v1/console.go b/pkg/apis/console/v1/console.go index d218ab3d..d160f2c0 100644 --- a/pkg/apis/console/v1/console.go +++ b/pkg/apis/console/v1/console.go @@ -93,7 +93,7 @@ type CRN struct { type ConsoleSettingsConfig struct { Version string `json:"version"` Email string `json:"initial_admin"` - AuthScheme string `json:"auth_scheme"` + AuthScheme string `json:"auth_scheme,omitempty"` AllowDefaultPassword bool `json:"allow_default_password"` Configtxlator string `json:"configtxlator"` DeployerURL string `json:"deployer_url"`