-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wakeup): add advanced sleep and wakeup features (#60)
* feat(wakeup): templated URLs (#58) * start with backend work * add frontend components * Change URL handling in the backend * helm registry -> docker registry imports * add docs Co-authored-by: Tom Schoener <[email protected]> * feature(wakeup): add API endpoint (#59) * start with backend work * add frontend components * Change URL handling in the backend * add API endpoint to start a version by its URL * add springdoc to easily test the API * fix typo and fix unused import * feat(wakeup): project versions now override project url template instead of extending them (#61) * Wakeup: UI improvements (#62) * prevent adding duplicate entries to the list * update and extend readme on URL templates * update k8s client and readme * rename url-trigger to catnip * feat(lifetime): add customisable expiration dates (#65) * frontend: lifetime ui and logic * configurable lifetime behaviour for `until tonight` and `until weekend`. * tests * docs * rename dayOffset to onNextDay also validate the lifetime properties directly in the service constructor Co-authored-by: Tom Schoener <[email protected]> Co-authored-by: Tom <[email protected]>
- Loading branch information
1 parent
cba3d49
commit 345e8c6
Showing
65 changed files
with
18,881 additions
and
332 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# O-Neko: Documentation | ||
|
||
1. [About O-Neko](./chapters/ABOUT_ONEKO.md) | ||
2. [Getting started](./chapters/GETTING_STARTED.md) | ||
2. [Configuring O-Neko](./chapters/CONFIGURATION.md) | ||
3. [Getting started](./chapters/GETTING_STARTED.md) |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Configuring O-Neko | ||
|
||
O-Neko can be configured by providing properties in an `application.yml` file. The path to `application.yaml` is configurable: | ||
|
||
* via the argument `--spring.config.location=file://<path>/application.yaml` | ||
* or by setting `SPRING_CONFIG_LOCATION`. | ||
|
||
Alternatively all properties may be configured using UPPER-CASE environment variables (e.g `O_NEKO.ACTIVITY.CLEANUP.MAX_AGE_HOURS`). | ||
|
||
## O-Neko Specific Defaults | ||
|
||
You may override the following default properties if necessary. | ||
|
||
```yaml | ||
o-neko: | ||
activity: | ||
cleanup: | ||
maxAgeHours: 720 | ||
schedulerIntervalMillis: 3600000 | ||
deployments: | ||
lifetime: | ||
endOfDay: | ||
hour: 23 | ||
minute: 59 | ||
onNextDay: false | ||
lastDayOfTheWeek: friday | ||
``` | ||
## Deployment Lifetime | ||
Any project/version in O-Neko has a configurable deployment lifetime. This lifetime tells O-Neko when to stop a deployment. | ||
The settings `until tonight` and `until weekend` point to a specific time. To be a bit more flexible you can configure this point in time with `o-neko.deployments.lifetime.endOfDay`. | ||
By default, it points to: | ||
|
||
* `until tonight`: same day, 23:59 | ||
* `until weekend`: next friday, 23:59 | ||
|
||
By setting `o-neko.deployments.lifetime.endOfDay.onNextDay` to `true`, `o-neko.deployments.lifetime.endOfDay.hour` to `3`, and `o-neko.deployments.lifetime.lastDayOfTheWeek` to `saturday` it will point to: | ||
|
||
* `until tonight`: next day, 03:59 | ||
* `until weekend`: next sunday, 03:59 | ||
|
||
As you can see, `until tonight` always points to the current day (+1 if `onNextDay` is set to true) , while `until weekend` points to the configurable last day of the week (+1 if `onNextDay` is set to true). | ||
|
||
**Note:** Deployments will stop on the next *possible* expiration date. So if you start a deployment shortly after the `until tonight` expiration date, it will be stopped on the next day. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.