mirror of
https://github.com/sablierapp/sablier.git
synced 2026-01-03 11:34:58 +01:00
feat: add filter by labels (#134)
You are now able to use labels on containers and services such as `--sablier.enable=true` and `--sablier.group=mygroup` to select groups.
This commit is contained in:
@@ -69,6 +69,7 @@ You can configure the middleware behavior with the following variables:
|
||||
|
||||
- `set $sablierUrl` The internal routing to reach Sablier API
|
||||
- `set $sablierNames` Comma separated names of containers/services/deployments etc.
|
||||
- `set $sablierGroup` Group name to use to filter by label, ignored if sablierNames is set
|
||||
- `set $sablierSessionDuration` The session duration after which containers/services/deployments instances are shutdown
|
||||
- `set $sablierNginxInternalRedirect` The internal location for the service to redirect e.g. @nginx
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ function call(r) {
|
||||
* @typedef {Object} SablierConfig
|
||||
* @property {string} sablierUrl
|
||||
* @property {string} names
|
||||
* @property {string} group
|
||||
* @property {string} sessionDuration
|
||||
* @property {string} internalRedirect
|
||||
* @property {string} displayName
|
||||
@@ -41,6 +42,7 @@ function createConfigurationFromVariables(r) {
|
||||
return {
|
||||
sablierUrl: r.variables.sablierUrl,
|
||||
names: r.variables.sablierNames,
|
||||
group: r.variables.sablierGroup,
|
||||
sessionDuration: r.variables.sablierSessionDuration,
|
||||
internalRedirect: r.variables.sablierNginxInternalRedirect,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user