Skip to content

v1.1.0: KISS Consolidation and Native Salt 3008 Cleanup

Latest

Choose a tag to compare

@iasonliu iasonliu released this 06 Dec 09:51
· 1 commit to master since this release
4c82743

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 as kube-prometheus-stack via 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 3008 cmd.run with retry:, x509.certificate_managed with retry:, salt['pillar.get'], and built-in grains['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, static salt/pillar/prod/*, and legacy tests/e2e/run.sh).

Single-File Formulas and Reusable Orchestration Macros

  • Consolidated split init/install/configure/backup states into single-file init.sls formulas for caserver, etcd, containerd, kube-apiserver, kube-controller-manager, kube-scheduler, kubelet, kube-proxy, kube-apiserver-lb, chrony, and kube-cni/cilium.
  • Extracted kube_binary, orch_state, orch_fn, and etcd_health_gate macros in salt/_macros/kubectl.jinja to 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

  • Makefile and scripts/download.sh now read component versions and SHA256 checksums directly from versions.yaml instead of duplicating them across files.
  • Simplified Makefile (pattern rules deploy-% and lab-%), 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 .sls files), 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.yaml consistency, 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, online aesgcm Secret encryption key rotation, and 3-master HAProxy failover drill (8m49s)