prole/infrastructure/playbooks/test_k3s_validate_args.yml
chrisfu 60820b2b7c Checkpoint: ArgoCD IO load distribution and K3s configuration updates
ArgoCD IO load distribution: Updated k8s/argocd/install.yaml to use hostPath volumes for application-controller (/prole/d001), redis (/prole/d002), and repo-server (/prole/d003). Updated Ansible configure task to create hostPath directories on myrddin.prole.org.

K3s configuration and testing: Added test playbooks for kubeconfig rewriting and argument validation. Updated K3s install, configure, and image import tasks. Configured required mounts and host-specific variables for myrddin.prole.org.

Miscellaneous: Updated conf/prole.cfg with K3S_TOKEN. Bumped prole-db version and updated recovery manifest templates. Minor UI adjustments in cluster screen.
Co-authored-by: Junie <junie@jetbrains.com>
2026-03-04 12:23:15 -08:00

36 lines
1.0 KiB
YAML

---
- name: Test - k3s argument validation (local)
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Validation should fail when a known-bad arg is present (etcd-timeout)
block:
- name: Run validation with a bad arg (expected to fail)
ansible.builtin.include_role:
name: k3s
tasks_from: validate_args
vars:
k3s_kube_apiserver_args:
- "etcd-timeout=50s"
rescue:
- name: Mark expected failure as observed
ansible.builtin.set_fact:
_bad_arg_validation_failed: true
always:
- name: Assert the bad-arg validation failed as expected
ansible.builtin.assert:
that:
- _bad_arg_validation_failed | default(false) | bool
- name: Validation should pass with supported args
ansible.builtin.include_role:
name: k3s
tasks_from: validate_args
vars:
k3s_kube_apiserver_args:
- "request-timeout=10s"
- "min-request-timeout=10"