You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think your escaping the curly brackets correctly as you string looks like this when ansible tries to execute this line "cmd": "/usr/local/bin/nerdctl -n k8s.io images --format '{{ '{{' }} .Repository {{ '}}' }}:{{ '{{' }} .Tag {{ '}}' }}' 2>/dev/null | grep -v ^:$ | tr '\n' ','",
So I think the bug relates to the nerdctl command string you are trying to build here:
https://github.com/kubernetes-sigs/kubespray/blob/master/roles/download/defaults/main.yml#L51
I don't think your escaping the curly brackets correctly as you string looks like this when ansible tries to execute this line
"cmd": "/usr/local/bin/nerdctl -n k8s.io images --format '{{ '{{' }} .Repository {{ '}}' }}:{{ '{{' }} .Tag {{ '}}' }}' 2>/dev/null | grep -v ^:$ | tr '\n' ','",
I believe the code fix should be
nerdctl_image_info_command: "{{ bin_dir }}/nerdctl -n k8s.io images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' 2>/dev/null | grep -v ^:$ | tr '\n' ','"
Environment:
Cloud provider or hardware configuration:
On Premis
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Centos 7
Version of Ansible (
ansible --version
):ansible 2.8.5
python --version
):python version = 2.7.5
Kubespray version (commit) (
git rev-parse --short HEAD
):master
Network plugin used:
calico
The text was updated successfully, but these errors were encountered: