Skip to content

Commit

Permalink
fix: (IAC-1072) Add AKS pod cidr to LOADBALANCER_SOURCE_RANGES
Browse files Browse the repository at this point in the history
  • Loading branch information
riragh committed Oct 11, 2023
1 parent bf748e8 commit 3d473cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/common/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
- tfstate.gke_pod_subnet_cidr is defined
- tfstate.gke_pod_subnet_cidr.value|length > 0
- (tfstate.gke_pod_subnet_cidr.value) not in LOADBALANCER_SOURCE_RANGES
- name: tfstate - Add AKS pod cidr to LOADBALANCER_SOURCE_RANGES # noqa: name[casing]
set_fact:
LOADBALANCER_SOURCE_RANGES: "{{ LOADBALANCER_SOURCE_RANGES + [tfstate.aks_pod_cidr.value] }}"
when:
- tfstate.provider is defined
- tfstate.provider.value|length > 0
- tfstate.provider.value == "azure"
- tfstate.aks_pod_cidr is defined
- tfstate.aks_pod_cidr.value|length > 0
- (tfstate.aks_pod_cidr.value) not in LOADBALANCER_SOURCE_RANGES
- name: tfstate - nfs endpoint # noqa: name[casing]
set_fact:
V4_CFG_RWX_FILESTORE_ENDPOINT: "{{ tfstate.rwx_filestore_endpoint.value }}"
Expand Down

0 comments on commit 3d473cf

Please sign in to comment.