Skip to content

Commit d9389fb

Browse files
authored
Tests: small ipv6 fixes (knative#2923)
* Tests: small ipv6 fixes * Testing gitlab instance listens on ipv6 * Testing Contour installation prefers dualstack Signed-off-by: Matej Vašek <[email protected]> * fixup: listen explicitly on 0.0.0.0 Usually listening on '::' should also listen on 0.0.0.0. However gitlab or nginx apparently employ IPV6_V6ONLY option so '::' listens only on '::'. Signed-off-by: Matej Vašek <[email protected]> --------- Signed-off-by: Matej Vašek <[email protected]>
1 parent 6a3ef46 commit d9389fb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

hack/allocate.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ networking() {
180180
--type merge \
181181
--patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}'
182182

183+
echo "Patching contour to prefer duals-tack"
184+
kubectl patch -n contour-external svc/envoy --type merge --patch '{"spec":{"ipFamilyPolicy":"PreferDualStack"}}'
185+
183186
$KUBECTL wait pod --for=condition=Ready -l '!job-name' -n contour-external --timeout=10m
184187
$KUBECTL wait pod --for=condition=Ready -l '!job-name' -n knative-serving --timeout=10m
185188
echo "${green}✅ Ingress${reset}"

hack/install-gitlab.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ spec:
7070
- name: GITLAB_OMNIBUS_CONFIG
7171
value: |
7272
external_url 'http://${gitlab_host}'
73+
nginx['listen_addresses'] = ["0.0.0.0", "[::]"]
7374
gitlab_rails['gitlab_shell_ssh_port'] = 30022
7475
gitlab_rails['gitlab_email_enabled'] = false
7576
puma['worker_processes'] = 0

0 commit comments

Comments
 (0)