Skip to content
Snippets Groups Projects
Commit c83bfc9d authored by marcstreeter's avatar marcstreeter Committed by k8s-ci-robot
Browse files

fix `dns_prevent_single_point_failure` variable (#3728)

comparison that happens during `TASK [kubernetes-apps/ansible : Kubernetes Apps | Lay Down CoreDNS Template]` where the `dns-autoscaler` template is deployed causes coredns to fail deployment.  The error is caused by the variable `dns_prevent_single_point_failure` where an integer is being compared with a string. The resulting error:

```bash
'>' not supported between instances of 'int' and 'str'
```

prevents successful deployment of CoreDNS.  

The change makes the comparison happen between integers and allows CoreDNS to succeed.
parent 9d0786cb
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ dns_memory_requests: 70Mi ...@@ -10,7 +10,7 @@ dns_memory_requests: 70Mi
dns_min_replicas: 2 dns_min_replicas: 2
dns_nodes_per_replica: 10 dns_nodes_per_replica: 10
dns_cores_per_replica: 20 dns_cores_per_replica: 20
dns_prevent_single_point_failure: "{{ 'true' if dns_min_replicas > '1' else 'false' }}" dns_prevent_single_point_failure: "{{ 'true' if dns_min_replicas > 1 else 'false' }}"
# Images # Images
image_arch: "{{host_architecture}}" image_arch: "{{host_architecture}}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment