kubeadm config validate flag for debugging and development (#12001)

This adds a new flag with default `kubeadm_config_validate_enabled: true` to use when debugging features and enhancements affected by the `kubeadm config validate command`.

This new flag should be set to `false` only for development and testing scenarios where validation is expected to fail (pre-release Kubernetes versions, etc).

While working with development and test versions of Kubernetes and Kubespray, I found this option very useful.
This commit is contained in:
Chad Swenson
2025-03-02 20:50:57 -06:00
committed by GitHub
parent 1b2e66cd30
commit 87f7363e46
6 changed files with 9 additions and 5 deletions

View File

@@ -30,6 +30,10 @@ kube_proxy_mode: ipvs
# If kube_version is v1.31 or higher, it will be v1beta4, otherwise it will be v1beta3.
kubeadm_config_api_version: "{{ 'v1beta4' if kube_version is version('v1.31.0', '>=') else 'v1beta3' }}"
# Debugging option for the kubeadm config validate command
# Set to false only for development and testing scenarios where validation is expected to fail (pre-release Kubernetes versions, etc.)
kubeadm_config_validate_enabled: true
## The timeout for init first control-plane
kubeadm_init_timeout: 300s