Allow timespans in force up-/downtime #120
Labels
enhancement
New feature or request
missing feature
A feature still missing from the GoKubeDownscaler, compared to the py-kube-downscaler
Issue
Currently force uptime and force downtime only support boolean values. This is different to how the pykubedownscaler handled this (see the Readme).
Problem to solve
The problem arises here, since when you want to exclude an absolute span of time while still having the weekly schedule (via uptime) the only way to set this downtime is to migrate your configuration to downtime or downtime period configuration (see py-kube-downscaler#124 for an example where this would be useful)
Further details
Proposal
Change the force up and force downtime to allow for timespan values.
Update the docs to include not only documentation on these new timespan values, but also explain the exact order in which force up/downtime downtime/uptime/downtime period/uptime period are taken into account. Also update the docs to include the order of the exclusion values (i think its if its excluded by any of the exclusion configurations).
With this implemented people will be able to force downscale during specific periods of time without needing to adjust the rest of their configuration.
Who can address the issue
Anyone with some go experience
Other links/references
The text was updated successfully, but these errors were encountered: