kubernetes-sigs/image-builder

Support Kubernetes v1.27

invidian opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

Pulling images test seems to be failing due to kubeadm config version incompatibility:

azure-arm.sig-{{user build_name}}: TASK [kubernetes : Kubeadm pull images] **************************************** azure-arm.sig-{{user build_name}}: fatal: [default]: FAILED! => {"changed": true, "cmd": "kubeadm config images pull --config /etc/kubeadm.yml --cri-socket /var/run/containerd/containerd.sock", "delta": "0:00:00.038674", "end": "2023-04-13 13:39:06.262766", "msg": "non-zero return code", "rc": 1, "start": "2023-04-13 13:39:06.224092", "stderr": "your configuration file uses an old API spec: \"kubeadm.k8s.io/v1beta2\". Please use kubeadm v1.22 instead and run 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.\nTo see the stack trace of this error execute with --v=5 or higher", "stderr_lines": ["your configuration file uses an old API spec: \"kubeadm.k8s.io/v1beta2\". Please use kubeadm v1.22 instead and run 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.", "To see the stack trace of this error execute with --v=5 or higher"], "stdout": "", "stdout_lines": []}

Describe the solution you'd like
Kubeadm config version should be updated.

/kind feature