Overview
salt-kube-lite v1.1.0 applies a full KISS cleanup across the repository, reducing the codebase from 174 files / 12,106 lines to 106 files / 5,732 lines (-52.7% LOC) while preserving every provisioning, HA, security, and Day-2 capability.
What Changed
Removed Unused Modules and Legacy Wrappers
- Removed the unused static
salt/formulas/kube-monitoring/formula and all references (users deploy cluster monitoring such askube-prometheus-stackvia Helm as needed). - Removed legacy SUSE CaaSP Python wrappers (
salt/_states/caasp_cmd.py,salt/_states/caasp_retriable.py,salt/_modules/caasp_filters.py,salt/_modules/caasp_pillar.py,salt/_grains/node_name.py) and migrated all states to native Salt 3008cmd.runwithretry:,x509.certificate_managedwithretry:,salt['pillar.get'], and built-ingrains['nodename']. - Removed dead states and stale files (
etcd/setting_networks.sls,kubelet/configure-{labels,taints}.sls,salt/{pkgrepo,pin,init}.sls,cert/cert-bundle.jinja,kube-addons/namespace.yaml.jinja,salt/pillar/local/salt/{beacons,salt,schedule}.sls, staticsalt/pillar/prod/*, and legacytests/e2e/run.sh).
Single-File Formulas and Reusable Orchestration Macros
- Consolidated split
init/install/configure/backupstates into single-fileinit.slsformulas forcaserver,etcd,containerd,kube-apiserver,kube-controller-manager,kube-scheduler,kubelet,kube-proxy,kube-apiserver-lb,chrony, andkube-cni/cilium. - Extracted
kube_binary,orch_state,orch_fn, andetcd_health_gatemacros insalt/_macros/kubectl.jinjato simplify all Day-0 and Day-2 orchestrations (orch.kubernetes,orch.upgrade,orch.rotate-certs,orch.rotate-encryption-key,orch.add-node,orch.remove-node).
Single Source of Truth for Versions and Streamlined Tooling
Makefileandscripts/download.shnow read component versions and SHA256 checksums directly fromversions.yamlinstead of duplicating them across files.- Simplified
Makefile(pattern rulesdeploy-%andlab-%),scripts/deploy-baremetal.sh,scripts/render-inventory.py,scripts/bump-versions.py,lab/lab.sh,salt/_modules/sklite.py,tests/render_test.py(auto-discovers all.slsfiles),tests/lint.sh, and paired EN / ZH-CN docs.
Verification
Verified green on GitHub Actions (CI run 47634143519, commit 4c82743):
- Static lint, 193-template render validation,
versions.yamlconsistency, and inventory pipeline tests (8s) - Bare-metal SSH E2E on Ubuntu 24.04 (5m3s) and Rocky Linux 9 (4m59s)
- Live 4th-node
add-node/remove-node, onlineaesgcmSecret encryption key rotation, and 3-master HAProxy failover drill (8m49s)