Skip to content

Commit 725ad4f

Browse files
Merge pull request #1103 from abays/upstream_dns
Allow customization of upstream DNS for IPv4
2 parents 9d81b56 + a82d6c3 commit 725ad4f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ openstack_deploy_prep: export BRIDGE_NAME=${NNCP_BRIDGE}
817817
openstack_deploy_prep: export CTLPLANE_IP_ADDRESS_PREFIX=${NNCP_CTLPLANE_IPV6_ADDRESS_PREFIX}
818818
ifeq ($(NETWORK_ISOLATION_IPV4), true)
819819
openstack_deploy_prep: export IPV4_ENABLED=true
820+
openstack_deploy_prep: export CTLPLANE_IPV4_DNS_SERVER=${NNCP_DNS_SERVER}
820821
endif
821822
ifeq ($(NETWORK_ISOLATION_IPV6), true)
822823
openstack_deploy_prep: export IPV6_ENABLED=true

scripts/gen-service-kustomize.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,23 @@ if [[ "${KIND}" == "OpenStackControlPlane" ]]; then
504504
patch: |-
505505
- op: remove
506506
path: /spec/dns/template/options/0/values/0
507+
EOF
508+
else
509+
cat <<EOF >>kustomization.yaml
510+
- patch: |-
511+
apiVersion: core.openstack.org/v1beta1
512+
kind: ${KIND}
513+
metadata:
514+
name: unused
515+
spec:
516+
dns:
517+
template:
518+
options:
519+
- key: server
520+
values:
521+
- ${CTLPLANE_IPV4_DNS_SERVER}
522+
target:
523+
kind: ${KIND}
507524
EOF
508525
fi
509526

0 commit comments

Comments
 (0)