From 656633f784444b74f7fd166744e4df395dc21180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BCger?= Date: Fri, 19 Apr 2019 08:59:54 +0200 Subject: [PATCH] YAMLLint everything (#4576) --- roles/kubernetes-apps/network_plugin/cni/tasks/main.yml | 1 + roles/kubernetes-apps/network_plugin/kube-router/tasks/main.yml | 2 +- roles/network_plugin/cni/tasks/main.yml | 1 + tests/files/packet_centos-weave-kubeadm-sep.yml | 1 + tests/files/packet_centos7-calico-ha.yml | 1 + tests/files/packet_centos7-cilium.yml | 1 + tests/files/packet_centos7-flannel-addons.yml | 1 + tests/files/packet_centos7-kube-router.yml | 1 + tests/files/packet_centos7-multus-calico.yml | 1 + tests/files/packet_debian9-calico-upgrade.yml | 1 + tests/files/packet_opensuse-canal.yml | 1 + tests/files/packet_rhel7-canal-sep.yml | 1 + tests/files/packet_rhel7-cilium.yml | 1 + tests/files/packet_rhel7-weave.yml | 1 + tests/files/packet_ubuntu-canal-ha.yml | 1 + tests/files/packet_ubuntu-canal-kubeadm.yml | 1 + tests/files/packet_ubuntu-cilium-sep.yml | 1 + tests/files/packet_ubuntu-contiv-sep.yml | 1 + tests/files/packet_ubuntu-flannel-ha.yml | 1 + tests/files/packet_ubuntu-kube-router-sep.yml | 1 + tests/files/packet_ubuntu-rkt-sep.yml | 1 + tests/files/packet_ubuntu-weave-sep.yml | 1 + tests/files/packet_ubuntu18-flannel-aio.yml | 1 + 23 files changed, 23 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes-apps/network_plugin/cni/tasks/main.yml b/roles/kubernetes-apps/network_plugin/cni/tasks/main.yml index 80c08dddf..9395be204 100644 --- a/roles/kubernetes-apps/network_plugin/cni/tasks/main.yml +++ b/roles/kubernetes-apps/network_plugin/cni/tasks/main.yml @@ -1,3 +1,4 @@ +--- - name: CNI | make sure /opt/cni/bin exists file: path: /opt/cni/bin diff --git a/roles/kubernetes-apps/network_plugin/kube-router/tasks/main.yml b/roles/kubernetes-apps/network_plugin/kube-router/tasks/main.yml index 3f6242a7d..f5ff16308 100644 --- a/roles/kubernetes-apps/network_plugin/kube-router/tasks/main.yml +++ b/roles/kubernetes-apps/network_plugin/kube-router/tasks/main.yml @@ -12,7 +12,7 @@ - inventory_hostname == groups['kube-master'][0] - name: kube-router | Wait for kube-router pods to be ready - command: "{{bin_dir}}/kubectl -n kube-system get pods -l k8s-app=kube-router -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'" # noqa 601 + command: "{{bin_dir}}/kubectl -n kube-system get pods -l k8s-app=kube-router -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'" # noqa 601 register: pods_not_ready until: pods_not_ready.stdout.find("kube-router")==-1 retries: 30 diff --git a/roles/network_plugin/cni/tasks/main.yml b/roles/network_plugin/cni/tasks/main.yml index 80c08dddf..9395be204 100644 --- a/roles/network_plugin/cni/tasks/main.yml +++ b/roles/network_plugin/cni/tasks/main.yml @@ -1,3 +1,4 @@ +--- - name: CNI | make sure /opt/cni/bin exists file: path: /opt/cni/bin diff --git a/tests/files/packet_centos-weave-kubeadm-sep.yml b/tests/files/packet_centos-weave-kubeadm-sep.yml index 81fdc63a1..6eedd4450 100644 --- a/tests/files/packet_centos-weave-kubeadm-sep.yml +++ b/tests/files/packet_centos-weave-kubeadm-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: centos-7 mode: ha diff --git a/tests/files/packet_centos7-calico-ha.yml b/tests/files/packet_centos7-calico-ha.yml index 4db10c2fe..cdc51d8ff 100644 --- a/tests/files/packet_centos7-calico-ha.yml +++ b/tests/files/packet_centos7-calico-ha.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: centos-7 mode: ha diff --git a/tests/files/packet_centos7-cilium.yml b/tests/files/packet_centos7-cilium.yml index e6f633761..2c34af258 100644 --- a/tests/files/packet_centos7-cilium.yml +++ b/tests/files/packet_centos7-cilium.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: centos-7 mode: default diff --git a/tests/files/packet_centos7-flannel-addons.yml b/tests/files/packet_centos7-flannel-addons.yml index 167ae397f..1d85726a0 100644 --- a/tests/files/packet_centos7-flannel-addons.yml +++ b/tests/files/packet_centos7-flannel-addons.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: centos-7 mode: ha diff --git a/tests/files/packet_centos7-kube-router.yml b/tests/files/packet_centos7-kube-router.yml index bd018b6da..2974c1efb 100644 --- a/tests/files/packet_centos7-kube-router.yml +++ b/tests/files/packet_centos7-kube-router.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: centos-7 mode: default diff --git a/tests/files/packet_centos7-multus-calico.yml b/tests/files/packet_centos7-multus-calico.yml index 4a4d5791e..6c302e685 100644 --- a/tests/files/packet_centos7-multus-calico.yml +++ b/tests/files/packet_centos7-multus-calico.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: centos-7 mode: default diff --git a/tests/files/packet_debian9-calico-upgrade.yml b/tests/files/packet_debian9-calico-upgrade.yml index d7d4bda9d..ca5ef1216 100644 --- a/tests/files/packet_debian9-calico-upgrade.yml +++ b/tests/files/packet_debian9-calico-upgrade.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: debian-9 mode: default diff --git a/tests/files/packet_opensuse-canal.yml b/tests/files/packet_opensuse-canal.yml index d2d354ebb..a735d77e8 100644 --- a/tests/files/packet_opensuse-canal.yml +++ b/tests/files/packet_opensuse-canal.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: opensuse-leap-15 mode: default diff --git a/tests/files/packet_rhel7-canal-sep.yml b/tests/files/packet_rhel7-canal-sep.yml index 2f9511ed9..36041e829 100644 --- a/tests/files/packet_rhel7-canal-sep.yml +++ b/tests/files/packet_rhel7-canal-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: rhel-server-7 mode: separate diff --git a/tests/files/packet_rhel7-cilium.yml b/tests/files/packet_rhel7-cilium.yml index 3431f7993..f4e7a128f 100644 --- a/tests/files/packet_rhel7-cilium.yml +++ b/tests/files/packet_rhel7-cilium.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: rhel-server-7 mode: default diff --git a/tests/files/packet_rhel7-weave.yml b/tests/files/packet_rhel7-weave.yml index 2cd482572..167a3913a 100644 --- a/tests/files/packet_rhel7-weave.yml +++ b/tests/files/packet_rhel7-weave.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: rhel-server-7 mode: default diff --git a/tests/files/packet_ubuntu-canal-ha.yml b/tests/files/packet_ubuntu-canal-ha.yml index bc8de18b0..8df833189 100644 --- a/tests/files/packet_ubuntu-canal-ha.yml +++ b/tests/files/packet_ubuntu-canal-ha.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: separate diff --git a/tests/files/packet_ubuntu-canal-kubeadm.yml b/tests/files/packet_ubuntu-canal-kubeadm.yml index 154454c05..c3f82784e 100644 --- a/tests/files/packet_ubuntu-canal-kubeadm.yml +++ b/tests/files/packet_ubuntu-canal-kubeadm.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: ha diff --git a/tests/files/packet_ubuntu-cilium-sep.yml b/tests/files/packet_ubuntu-cilium-sep.yml index da2b6df94..093c14213 100644 --- a/tests/files/packet_ubuntu-cilium-sep.yml +++ b/tests/files/packet_ubuntu-cilium-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: separate diff --git a/tests/files/packet_ubuntu-contiv-sep.yml b/tests/files/packet_ubuntu-contiv-sep.yml index 6accfdef3..8a790553f 100644 --- a/tests/files/packet_ubuntu-contiv-sep.yml +++ b/tests/files/packet_ubuntu-contiv-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: separate diff --git a/tests/files/packet_ubuntu-flannel-ha.yml b/tests/files/packet_ubuntu-flannel-ha.yml index 1455b72fe..60c66575f 100644 --- a/tests/files/packet_ubuntu-flannel-ha.yml +++ b/tests/files/packet_ubuntu-flannel-ha.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: ha diff --git a/tests/files/packet_ubuntu-kube-router-sep.yml b/tests/files/packet_ubuntu-kube-router-sep.yml index ad8fc9c35..19043df07 100644 --- a/tests/files/packet_ubuntu-kube-router-sep.yml +++ b/tests/files/packet_ubuntu-kube-router-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: separate diff --git a/tests/files/packet_ubuntu-rkt-sep.yml b/tests/files/packet_ubuntu-rkt-sep.yml index b4e92e292..b29d26501 100644 --- a/tests/files/packet_ubuntu-rkt-sep.yml +++ b/tests/files/packet_ubuntu-rkt-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: separate diff --git a/tests/files/packet_ubuntu-weave-sep.yml b/tests/files/packet_ubuntu-weave-sep.yml index 07fbda6f0..db23cd647 100644 --- a/tests/files/packet_ubuntu-weave-sep.yml +++ b/tests/files/packet_ubuntu-weave-sep.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1604 mode: separate diff --git a/tests/files/packet_ubuntu18-flannel-aio.yml b/tests/files/packet_ubuntu18-flannel-aio.yml index f406a65f2..ad354efc4 100644 --- a/tests/files/packet_ubuntu18-flannel-aio.yml +++ b/tests/files/packet_ubuntu18-flannel-aio.yml @@ -1,3 +1,4 @@ +--- # Instance settings cloud_image: ubuntu-1804 mode: aio