Skip to content

Commit

Permalink
fix: configuration for bkiam version, issue #567
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperJim committed Oct 27, 2020
1 parent 50d401c commit 5989222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bcs-services/bcs-api/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ type AuthOption struct {
RemoteCheck bool `json:"remote_check" value:"false" usage:"check auth in remote host or not" mapstructure:"remote_check"`
SkipNoneToken bool `json:"skip_none_token" value:"false" usage:"skip auth check when token no specified" mapstructure:"skip_none_token"`

Version string `json:"version" value:"3" usage:"bkiam version, " mapstructure:"version"`
Version string `json:"version" value:"3" usage:"bkiam version, 2 or 3." mapstructure:"version"`

ApiGwRsaFile string `json:"apigw_rsa_file" value:"" usage:"apigw rsa public key file" mapstructure:"apigw_rsa_file"`

Expand Down
1 change: 1 addition & 0 deletions install/conf/bcs-services/bcs-api/bcs-api.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"local_ip": "${localIp}",
"bkiam_auth": {
"auth": false,
"version": "${bkiamAuthVersion}",
"bkiam_auth_host": "${bkiamAuthHost}"
},
"bke": {
Expand Down

0 comments on commit 5989222

Please sign in to comment.