Skip to content

Commit

Permalink
Reduce log spam of verbose tasks (kubernetes-sigs#3806)
Browse files Browse the repository at this point in the history
Added a loop_control label to a few tasks that flood our logs.
  • Loading branch information
chadswen authored and k8s-ci-robot committed Dec 4, 2018
1 parent 9051aa5 commit 145687a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/etcd/tasks/gen_certs_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
- inventory_hostname in groups['etcd']
- sync_certs|default(false)
- inventory_hostname != groups['etcd'][0]
loop_control:
label: "{{ item.item }}"

- set_fact:
my_etcd_node_certs: ['ca.pem',
Expand Down
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/ansible/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
- dnsmasq
- coredns
- kubedns
loop_control:
label: "{{ item.item.file }}"

- name: Kubernetes Apps | Netchecker
import_tasks: tasks/netchecker.yml
Expand Down
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/cluster_roles/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
when:
- inventory_hostname == groups['kube-master'][0]
- not item is skipped
loop_control:
label: "{{ item.item.file }}"

- name: Kubernetes Apps | Add ClusterRoleBinding to admit nodes
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@
state: "latest"
with_items: "{{ local_volume_provisioner_manifests.results }}"
when: inventory_hostname == groups['kube-master'][0]
loop_control:
label: "{{ item.item.file }}"
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/network_plugin/calico/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- "{{ calico_node_manifests.results }}"
when:
- inventory_hostname == groups['kube-master'][0] and not item is skipped
loop_control:
label: "{{ item.item.file }}"

- name: "calico upgrade complete"
shell: "{{ bin_dir }}/calico-upgrade complete --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml"
Expand Down
2 changes: 2 additions & 0 deletions roles/kubernetes-apps/policy_controller/calico/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@
when:
- inventory_hostname == groups['kube-master'][0]
- not item is skipped
loop_control:
label: "{{ item.item.file }}"

0 comments on commit 145687a

Please sign in to comment.