Project

General

Profile

Actions

Bug #9343

closed

[Keep] MakeArvadosClient is asking for extra unneded environment variables

Added by Nico César over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Keep
Target version:
Story points:
0.5

Description

b002129afda08bbb4fdbed6e629858a5c298c068 added

+// NewClientFromEnv creates a new Client that uses the default HTTP
+// client with the API endpoint and credentials given by the
+// ARVADOS_API_* environment variables.
+func NewClientFromEnv() *Client {
+       return &Client{
+               APIHost:   os.Getenv("ARVADOS_API_HOST"),
+               AuthToken: os.Getenv("ARVADOS_API_TOKEN"),
+               Insecure:  os.Getenv("ARVADOS_API_HOST_INSECURE") != "",
+       }
+}
+

that causes the keepstore server to ask for those variables or fail:

2016-06-02_20:22:10.20202 Starting keepstore0 from /etc/sv/keepstore0
2016-06-02_20:22:10.28620 2016/06/02 20:22:10 keepstore starting, pid 10049
2016-06-02_20:22:10.28623 2016/06/02 20:22:10 Using volume s3-bucket:"4xphq-keep" (writable=true)
2016-06-02_20:22:10.28625 2016/06/02 20:22:10 -max-requests <1 or not specified; defaulting to maxBuffers * 2 == 256
2016-06-02_20:22:10.30418 2016/06/02 20:22:10 MakeArvadosClient: Missing required environment variable ARVADOS_API_HOST
2016-06-02_20:22:10.31998 Stopping keepstore0
Actions

Also available in: Atom PDF