k3s-ansible/.github/scripts
Techno Tim f5483cdabe
fix(flannel): default the interface to each host's default IPv4 interface (#689)
* fix(flannel): default the interface to each host's default IPv4 interface

- Replace the hardcoded flannel_iface: eth0 with a per-host default derived
  from ansible_facts.default_ipv4.interface
- KVM/cloud hosts that are not named eth0 (e.g. enp1s0, ens3) now resolve the
  interface automatically instead of failing the k3s_node_ip lookup
- Update the commented calico_iface / cilium_iface examples to match
- Co-authored-by: Fritz Dunkel <677609+FinalDoom@users.noreply.github.com>
- Fixes #621

* test(flannel): add regression test for per-host interface default

- Add a focused test that renders the sample inventory's flannel_iface
  expression against fake ansible facts
- Assert a non-eth0 host (enp1s0, ens3) resolves its own interface and that
  the expression defaults from ansible_facts.default_ipv4.interface
- Wire it as a local pre-commit hook (default-interface-test)

* test(molecule): assert nodes register a non-loopback InternalIP

- Add a flannel-scenario verify assertion that every node reports an
  InternalIP derived from its configured flannel_iface
- Guards against k3s binding to 127.0.0.1 instead of the cluster interface
- Complements the pre-commit default-interface test with an end-to-end check
2026-08-03 17:01:50 +00:00
..
test-fixtures fix(ci): configure Ubuntu box prewarming 2026-08-01 12:27:12 -05:00
cleanup-runner-resources.sh fix(ci): skip removed stale Molecule state 2026-08-01 12:27:12 -05:00
collect-runner-diagnostics.sh feat(ci): optimize Molecule VM creation 2026-08-01 12:27:12 -05:00
monitor-runner-resources.sh feat(ci): optimize Molecule VM creation 2026-08-01 12:27:12 -05:00
prepare-vagrant-box-masters.sh test(molecule): update Vagrant boxes to current releases 2026-08-01 19:13:48 -05:00
test-cilium-bgp-manifest.py feat(dependencies): upgrade supported cluster components (#681) 2026-08-02 12:44:50 -05:00
test-cleanup-runner-resources.sh fix(ci): skip removed stale Molecule state 2026-08-01 12:27:12 -05:00
test-default-interface.py fix(flannel): default the interface to each host's default IPv4 interface (#689) 2026-08-03 17:01:50 +00:00
test-k3s-server-bootstrap.sh fix(k3s-server): stabilize single-server bootstrap 2026-08-01 12:27:12 -05:00
test-kube-vip-manifest.py feat(dependencies): upgrade supported cluster components (#681) 2026-08-02 12:44:50 -05:00
test-metallb-remote-read.sh feat(dependencies): upgrade supported cluster components (#681) 2026-08-02 12:44:50 -05:00
test-prepare-vagrant-box-masters.sh test(molecule): update Vagrant boxes to current releases 2026-08-01 19:13:48 -05:00
vagrant-up-timed.sh feat(ci): optimize Molecule VM creation 2026-08-01 12:27:12 -05:00