Enforce ordered Octelium Application retirement in GitOps
The recent GitOps fix ensures that Octelium Applications are retired in a strict dependency order, preventing live Applications from blocking other deletions and simplifying the automation.
Runbook updates clarify full apply behavior
The openwiki/runbooks/octelium.md file now states that a full apply stops before writing while a retired Cordium or Octelium registration has an outstanding destroy plan or live Application. It also notes that retire_argocd_app must be run for each unit, and that a full apply can advance its deployment baseline once those units have no changes and no live Application.
Terragrunt test script adds retirement checks
scripts/ci/terragrunt-apply-test.py introduces a retirement_app helper that builds an Application manifest with the required finalizers. It also parses command line arguments to detect application and applications commands, validates that a unit is listed in retired_units, and checks the retirement_live_apps list to decide whether to print a JSON representation of the retirement manifest.
Terragrunt apply script enforces empty retirement plans
scripts/ci/terragrunt-apply.sh adds a require_empty variable and modifies destroy_deleted_terragrunt_units to skip units when a full apply is required for kiali or other names. It also restructures the apply_units and plan_dirs arrays, ensuring that the script respects the empty retirement plan prerequisite before proceeding with the apply.
Filter base script validates ordered prerequisites
scripts/ci/terragrunt-filter-base.sh contains a case statement that returns success for cordium and all octelium variants, and failure for unknown inputs. It also defines prerequisite lists for octelium-cluster and octelium-storage, checking that required applications such as cordium and the native namespace are absent before allowing retirement, thereby enforcing the ordered retirement sequence.