mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-19 18:07:37 -02:30
ansible-lint: Don’t compare to literal True/False (#4499)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
d4b9f15c0a
commit
37eac010c8
@@ -31,7 +31,7 @@
|
||||
- name: Kubernetes Apps | nodelocalDNS
|
||||
import_tasks: "tasks/nodelocaldns.yml"
|
||||
when:
|
||||
- enable_nodelocaldns == True
|
||||
- enable_nodelocaldns
|
||||
- inventory_hostname == groups['kube-master'] | first
|
||||
tags:
|
||||
- nodelocaldns
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
/etc/resolv.conf
|
||||
{%- endif -%}
|
||||
when:
|
||||
- enable_nodelocaldns == True
|
||||
- enable_nodelocaldns
|
||||
- inventory_hostname == groups['kube-master'] | first
|
||||
tags:
|
||||
- nodelocaldns
|
||||
|
||||
@@ -3,31 +3,31 @@
|
||||
- name: "OCI Cloud Controller | Credentials Check | oci_private_key"
|
||||
fail:
|
||||
msg: "oci_private_key is missing"
|
||||
when: (oci_use_instance_principals == false) and
|
||||
when: (not oci_use_instance_principals) and
|
||||
(oci_private_key is not defined or oci_private_key == "")
|
||||
|
||||
- name: "OCI Cloud Controller | Credentials Check | oci_region_id"
|
||||
fail:
|
||||
msg: "oci_region_id is missing"
|
||||
when: (oci_use_instance_principals == false) and
|
||||
when: (not oci_use_instance_principals) and
|
||||
(oci_region_id is not defined or oci_region_id == "")
|
||||
|
||||
- name: "OCI Cloud Controller | Credentials Check | oci_tenancy_id"
|
||||
fail:
|
||||
msg: "oci_tenancy_id is missing"
|
||||
when: (oci_use_instance_principals == false) and
|
||||
when: (not oci_use_instance_principals) and
|
||||
(oci_tenancy_id is not defined or oci_tenancy_id == "")
|
||||
|
||||
- name: "OCI Cloud Controller | Credentials Check | oci_user_id"
|
||||
fail:
|
||||
msg: "oci_user_id is missing"
|
||||
when: (oci_use_instance_principals == false) and
|
||||
when: (not oci_use_instance_principals) and
|
||||
(oci_user_id is not defined or oci_user_id == "")
|
||||
|
||||
- name: "OCI Cloud Controller | Credentials Check | oci_user_fingerprint"
|
||||
fail:
|
||||
msg: "oci_user_fingerprint is missing"
|
||||
when: (oci_use_instance_principals == false) and
|
||||
when: (not oci_use_instance_principals) and
|
||||
(oci_user_fingerprint is not defined or oci_user_fingerprint == "")
|
||||
|
||||
- name: "OCI Cloud Controller | Credentials Check | oci_compartment_id"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
when: inventory_hostname == groups['kube-master'][0] and not item is skipped
|
||||
|
||||
- name: Cilium | Wait for pods to run
|
||||
command: "{{bin_dir}}/kubectl -n kube-system get pods -l k8s-app=cilium -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'"
|
||||
command: "{{bin_dir}}/kubectl -n kube-system get pods -l k8s-app=cilium -o jsonpath='{.items[?(@.status.containerStatuses[0].ready==false)].metadata.name}'" # noqa 601
|
||||
register: pods_not_ready
|
||||
until: pods_not_ready.stdout.find("cilium")==-1
|
||||
retries: 30
|
||||
|
||||
@@ -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}'"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user