c12s-kubespray/roles
Kenichi Omichi 7b1dc600d5
Fix the condition of drain on pre-remove task (#8634)
When running cluster.yml for new machines what containerd is already
install but Kubernetes cluster were not installed before, the task
"remove-node | List nodes" is failed like

  "changed": false,
  "cmd": [
    "/usr/local/bin/kubectl", "--kubeconfig",
    "/etc/kubernetes/admin.conf", "get", "nodes", "-o",
    "go-template={{ range .items }}{{ .metadata.name }}
    {{ "\n" }}{{ end }}"
   ],
   ..
   "stderr": "error: stat /etc/kubernetes/admin.conf: no such file or directory",

That was due to lack to check the existing Kubernetes cluster exists
or not before running "kubectl drain" command.
This adds the check to avoid the issue.
2022-03-21 01:39:10 -07:00
..
adduser containerd: change default resolvconf_mode to host_resolvconf (#8247) 2021-12-09 14:09:06 -08:00
bastion-ssh-config containerd: change default resolvconf_mode to host_resolvconf (#8247) 2021-12-09 14:09:06 -08:00
bootstrap-os CI: Replace CentOS 8 with AlmaLinux 8 before CentOS 8 EOL end of 2021 (#8297) 2022-01-05 02:20:33 -08:00
container-engine Fix the condition of drain on pre-remove task (#8634) 2022-03-21 01:39:10 -07:00
download [kubernetes] add hashes for 1.21.11 2022-03-17 05:03:20 -07:00
etcd Restart etcd if the etcd version changes (#8556) 2022-03-11 18:08:23 -08:00
etcdctl Add kubeadm option to etcd_deployment_type to replace the etcd_kubeadm_enabled variable (#8317) 2022-02-22 08:53:16 -08:00
helm-apps Helm-apps role for installing helm charts (#8347) 2022-03-14 08:29:58 -07:00
kubernetes [calico] don't enable ipip encapsulation by default and use vxlan in CI (#8434) 2022-03-17 18:05:39 -07:00
kubernetes-apps Updated openstack cloud controller version to v1.22.0 (#8629) 2022-03-18 01:47:16 -07:00
kubespray-defaults [kubernetes] make 1.23.5 the default 2022-03-17 05:03:20 -07:00
network_plugin [calico] don't enable ipip encapsulation by default and use vxlan in CI (#8434) 2022-03-17 18:05:39 -07:00
recover_control_plane Use a variable for standardizing kubectl invocation (#8329) 2022-01-05 02:26:32 -08:00
remove-node Fixup remaining etcd_kubeadm_enabled variables (#8576) 2022-02-23 06:46:18 -08:00
reset [docker] add support for cri-dockerd as a replacement for dockershim (#8623) 2022-03-16 16:28:11 -07:00
upgrade Clarify confirmation prompt (#8589) 2022-03-07 05:38:54 -08:00
win_nodes/kubernetes_patch Use a variable for standardizing kubectl invocation (#8329) 2022-01-05 02:26:32 -08:00