https://github.com/linbit/linstor-wait-until
https://github.com/linbit/linstor-wait-until
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/linbit/linstor-wait-until
- Owner: LINBIT
- License: apache-2.0
- Created: 2022-02-02T13:13:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-11T13:35:16.000Z (over 1 year ago)
- Last Synced: 2025-04-02T19:21:27.605Z (about 1 year ago)
- Language: Go
- Size: 47.9 KB
- Stars: 2
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# linstor-wait-until

Waits until a specific component of LINSTOR is online and usable.
## Usage
The program will continuously loop until the condition is true. Currently implemented:
* `linstor-wait-until api-online` waits until the LINSTOR API is online, i.e. you can start sending client commands
* `linstor-wait-until satellite-online ` waits until a satellite's status is ONLINE.
## Configuration
`linstor-wait-until` uses the environment variables specified in the [`golinstor` library](https://pkg.go.dev/github.com/LINBIT/golinstor/client#NewClient)
for configuration.
| Variable | Description |
|------------------------|------------------------------------------------------------------------|
| `LS_CONTROLLERS` | A comma-separated list of LINSTOR controller URLs to connect to. |
| `LS_USERNAME` | Username to use for HTTP basic auth. |
| `LS_PASSWORD` | Password to use for HTTP basic auth. |
| `LS_ROOT_CA` | CA certificate to use for authenticating the server. |
| `LS_USER_KEY` | TLS key to use for authenticating the client to the server. |
| `LS_USER_CERTIFICATE` | TLS certificate to use for authenticating the client to the server. |
| `LS_BEARER_TOKEN_FILE` | Name of the file containing the token for Bearer Token Authentication. |