kube-ns-suspender icon indicating copy to clipboard operation
kube-ns-suspender copied to clipboard

[Feature]: Suspend time window

Open PawlikMateusz opened this issue 1 year ago • 3 comments

Is your feature request related to a problem?

I'm trying to use kube-ns-suspender with ArgoCD or FluxCD. The idea is that workloads will be scaled down every day at 10 pm and the next day anyone who wants to use this namespace needs to sync the application in ArgoCD. Right now it's not working because kube-ns-suspender sees the namespace annotation "Running" and it overrides sync from ArgoCD.

Describe the solution you'd like

Add variable KUBE_NS_SUSPENDER_TIME_WINDOW that will allow limit controller time window e.g. control namespaces only between 10:00PM and 06:00AM

PawlikMateusz avatar Aug 09 '23 17:08 PawlikMateusz