Compare commits

..

No commits in common. "596e970fb7ba98e4e867d649999930aec2fdc62a" and "6ada60e99e7df3ddcaac2362a4f5b649fbf3d9b7" have entirely different histories.

2 changed files with 4 additions and 14 deletions

View File

@ -1081,8 +1081,8 @@ run_tofu_stack() {
ensure_platform_scheduling_labels || return 1
fi
tofu -chdir="${REPO_ROOT}/${stack}" init || return 1
ensure_kubernetes_api_ready_for_tofu_stack "${stack}" || return 1
tofu -chdir="${REPO_ROOT}/${stack}" init
ensure_kubernetes_api_ready_for_tofu_stack "${stack}"
if [[ "${stack}" == "bootstrap/platform" ]]; then
configure_platform_metrics_server_ownership || return 1
fi
@ -8167,9 +8167,9 @@ apps() {
echo "Deploying homelab applications..."
if ((${#app_targets[@]})); then
run_tofu_stack "bootstrap/apps" "${app_targets[@]}" || return 1
run_tofu_stack "bootstrap/apps" "${app_targets[@]}"
else
run_tofu_stack "bootstrap/apps" || return 1
run_tofu_stack "bootstrap/apps"
fi
if [[ "${app_selector}" == "all" || "${deploy_registry}" == "true" || "${deploy_supply_chain}" == "true" ]]; then

View File

@ -396,12 +396,6 @@ class Estimate:
old = [p for p in self.pods if self.owner(p) == (kind, namespace, name)]
live = self.controllers.get((kind, namespace, name), {})
desired = spec.get("replicas", 1)
if kind in ("Deployment", "StatefulSet") and desired == 0:
# A disabled workload creates no incoming Pods and does not need
# rollout surge/unavailability or an eligible node. Keep any old
# reservations until live termination is observed.
print(f" DISABLED {kind} {namespace}/{name}: zero desired replicas")
return
status = live.get("status", {})
stable = status.get("observedGeneration", 0) >= live.get("metadata", {}).get("generation", 1)
stable = stable and status.get("readyReplicas", 0) >= desired and status.get("updatedReplicas", 0) >= desired
@ -683,10 +677,6 @@ def main():
if item["kind"] == "PersistentVolumeClaim":
key = item["metadata"]["namespace"], item["metadata"]["name"]
engine.pvcs.setdefault(key, item)
elif item["kind"] == "PersistentVolume":
# Static PVs can be introduced by the same GitOps application as
# their claims. Live PVs remain authoritative for existing data.
engine.pvs.setdefault(item["metadata"]["name"], item)
elif item["kind"] == "StorageClass":
engine.storage_classes[item["metadata"]["name"]] = item
workloads = {identity(d): d for d in documents if d["kind"] in ("Deployment", "StatefulSet", "DaemonSet", "Pod")}