mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 04:33:36 +09:00
Close two follow-ups the design proposal names for this PR: - DatabaseAutoscalerScaleBlocked: the Pending-independent companion to DatabaseAutoscalerScaleStuck. A ResourceQuota (or any admission webhook) refuses the new standby pod at admission, so no pod object is created and ScaleStuck's Pending intersection misses it. Key instead on desired_replicas > count(CNPG pods in the namespace): a healthy basebackup's pod exists (Running) so the count already equals desired, while an un-admitted pod leaves the count short. Correct the stale ScaleStuck comment that claimed it covered the quota case. - Enable the vendored KEDA egress NetworkPolicy (flavor cilium): egress is toEntities [kube-apiserver, cluster] only — apiserver and in-cluster endpoints (CoreDNS, vmselect, CNPG) stay reachable, world (off-cluster) is denied — so the operator cannot be used as an SSRF relay off-cluster. The kube-apiserver entity covers the control plane however it is addressed, so it does not starve the operator's apiserver access the way a raw-CIDR policy could. Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>