Skip to content
Snippets Groups Projects
Unverified Commit 05ff4a52 authored by Florian Ruynat's avatar Florian Ruynat Committed by GitHub
Browse files

Fix a bunch of failed quality rules (#6646)

parent ae5328c5
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
- name: Apply the lifecycle rules # noqa 301 - name: Apply the lifecycle rules # noqa 301
command: "{{ dir }}/google-cloud-sdk/bin/gsutil lifecycle set {{ dir }}/gcs_life.json gs://{{ test_name }}" command: "{{ dir }}/google-cloud-sdk/bin/gsutil lifecycle set {{ dir }}/gcs_life.json gs://{{ test_name }}"
changed_when: false
environment: environment:
BOTO_CONFIG: "{{ dir }}/.boto" BOTO_CONFIG: "{{ dir }}/.boto"
no_log: True no_log: True
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
- import_role: - import_role:
name: cluster-dump name: cluster-dump
- name: Check kubectl output # noqa 305 - name: Check kubectl output
shell: "{{ bin_dir }}/kubectl get nodes" command: "{{ bin_dir }}/kubectl get nodes"
changed_when: false changed_when: false
register: get_nodes register: get_nodes
no_log: true no_log: true
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
- debug: - debug:
msg: "{{ get_nodes.stdout.split('\n') }}" msg: "{{ get_nodes.stdout.split('\n') }}"
- name: Check that all nodes are running and ready # noqa 305 - name: Check that all nodes are running and ready
shell: "{{ bin_dir }}/kubectl get nodes --no-headers -o yaml" command: "{{ bin_dir }}/kubectl get nodes --no-headers -o yaml"
changed_when: false changed_when: false
register: get_nodes_yaml register: get_nodes_yaml
until: until:
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
- import_role: - import_role:
name: cluster-dump name: cluster-dump
- name: Check kubectl output # noqa 305 - name: Check kubectl output
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide" command: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"
changed_when: false changed_when: false
register: get_pods register: get_pods
no_log: true no_log: true
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
- debug: - debug:
msg: "{{ get_pods.stdout.split('\n') }}" msg: "{{ get_pods.stdout.split('\n') }}"
- name: Check that all pods are running and ready # noqa 305 - name: Check that all pods are running and ready
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces --no-headers -o yaml" command: "{{ bin_dir }}/kubectl get pods --all-namespaces --no-headers -o yaml"
changed_when: false changed_when: false
register: run_pods_log register: run_pods_log
until: until:
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
failed_when: false failed_when: false
no_log: true no_log: true
- name: Check kubectl output # noqa 305 - name: Check kubectl output
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide" command: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"
changed_when: false changed_when: false
register: get_pods register: get_pods
no_log: true no_log: true
......
...@@ -39,11 +39,12 @@ ...@@ -39,11 +39,12 @@
when: kubelet_rotate_server_certificates | default(false) when: kubelet_rotate_server_certificates | default(false)
- name: Create test namespace # noqa 301 305 - name: Create test namespace
shell: "{{ bin_dir }}/kubectl create namespace test" command: "{{ bin_dir }}/kubectl create namespace test"
changed_when: false
- name: Run 2 busybox pods in test ns # noqa 305 - name: Run 2 busybox pods in test ns
shell: "{{ bin_dir }}/kubectl run {{ item }} --image={{ test_image_repo }}:{{ test_image_tag }} --namespace test --command -- tail -f /dev/null" command: "{{ bin_dir }}/kubectl run {{ item }} --image={{ test_image_repo }}:{{ test_image_tag }} --namespace test --command -- tail -f /dev/null"
changed_when: false changed_when: false
loop: loop:
- busybox1 - busybox1
...@@ -52,8 +53,8 @@ ...@@ -52,8 +53,8 @@
- import_role: - import_role:
name: cluster-dump name: cluster-dump
- name: Check that all pods are running and ready # noqa 305 - name: Check that all pods are running and ready
shell: "{{ bin_dir }}/kubectl get pods --namespace test --no-headers -o yaml" command: "{{ bin_dir }}/kubectl get pods --namespace test --no-headers -o yaml"
changed_when: false changed_when: false
register: run_pods_log register: run_pods_log
until: until:
...@@ -66,8 +67,8 @@ ...@@ -66,8 +67,8 @@
failed_when: false failed_when: false
no_log: true no_log: true
- name: Get pod names # noqa 305 - name: Get pod names
shell: "{{ bin_dir }}/kubectl get pods -n test -o json" command: "{{ bin_dir }}/kubectl get pods -n test -o json"
changed_when: false changed_when: false
register: pods register: pods
no_log: true no_log: true
...@@ -90,8 +91,8 @@ ...@@ -90,8 +91,8 @@
register: running_pods register: running_pods
no_log: true no_log: true
- name: Check kubectl output # noqa 305 - name: Check kubectl output
shell: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide" command: "{{ bin_dir }}/kubectl get pods --all-namespaces -owide"
changed_when: False changed_when: False
register: get_pods register: get_pods
no_log: true no_log: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment