Skip to content

Allow reading API token from file#53

Merged
srueg merged 2 commits intomasterfrom
allow-api-token-from-file
Mar 9, 2020
Merged

Allow reading API token from file#53
srueg merged 2 commits intomasterfrom
allow-api-token-from-file

Conversation

@simu
Copy link
Copy Markdown
Member

@simu simu commented Mar 9, 2020

This commit changes Commodore to optionally read the API token from a
file. If the API token argument (command line or environment variable)
exists as a file, Commodore will read the file contents and use them as
the API token. Otherwise the value of the argument is used as the API
token. This allows using the service account's token when running
Commodore on Kubernetes.

Relates: SYN-21

@simu simu requested a review from srueg March 9, 2020 12:57
simu added 2 commits March 9, 2020 14:01
This commit changes Commodore to optionally read the API token from a
file. If the API token argument (command line or environment variable)
exists as a file, Commodore will read the file contents and use them as
the API token. Otherwise the value of the argument is used as the API
token. This allows using the service account's token when running
Commodore on Kubernetes.

Relates: SYN-21
@simu simu force-pushed the allow-api-token-from-file branch from 31b6d76 to a84cf51 Compare March 9, 2020 13:01
Comment thread commodore/config.py
@srueg srueg merged commit 5670666 into master Mar 9, 2020
@srueg srueg deleted the allow-api-token-from-file branch March 9, 2020 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants