-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read params via environment instead of cli flags
Instead of reading the parameters to the docker-quobyte-plugin service via cli flags they are now read directly from the environment. This prevents credential leakage for the API password. A tenant_id is now provided via the configuration (not via cli param).
- Loading branch information
1 parent
7a29f50
commit 862ce88
Showing
5 changed files
with
83 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
QUOBYTE_API_USER=admin | ||
QUOBYTE_API_PASSWORD=quobyte | ||
# Maximum number of filesystem checks when a Volume is created before returning an error | ||
MAX_FS_CHECKS=5 | ||
# Maximum wait time for filesystem checks to complete when a Volume is created before returning an error | ||
MAX_WAIT_TIME=30 | ||
# Group to create the unix socket | ||
SOCKET_GROUP=root | ||
QUOBYTE_API_URL=http://localhost:7860 | ||
QUOBYTE_API_PASSWORD=quobyte | ||
QUOBYTE_API_USER=admin | ||
QUOBYTE_MOUNT_PATH=/run/docker/quobyte/mnt | ||
QUOBYTE_MOUNT_OPTIONS=-o user_xattr | ||
QUOBYTE_REGISTRY=localhost:7861 | ||
# ID of the Quobyte tenant in whose domain volumes are managed by this plugin | ||
QUOBYTE_TENANT_ID=replace_me | ||
# Default volume config for new volumes, can be overridden via --opt flag 'configuration_name' | ||
QUOBYTE_VOLUME_CONFIG_NAME=BASE |