File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,14 @@ function install_controller_for_adc_regions() {
155155 kubectl apply -f $ingclass_yaml || true
156156}
157157
158+ function enable_primary_ipv6_address() {
159+ echo " enable primary ipv6 address for the ec2 instance"
160+ ENI_IDS=$( aws ec2 describe-instances --filters " Name=tag:aws:eks:cluster-name,Values=$CLUSTER_NAME " --query " Reservations[].Instances[].NetworkInterfaces[].NetworkInterfaceId" --output text)
161+ for ENI_ID in $ENI_IDS ; do
162+ aws ec2 modify-network-interface-attribute --network-interface-id $ENI_ID --enable-primary-ipv6 || true
163+ done
164+ }
165+
158166echo " installing AWS load balancer controller"
159167if [[ $ADC_REGIONS == * " $REGION " * ]]; then
160168 echo " for ADC regions, install via manifest"
@@ -214,6 +222,9 @@ function run_ginkgo_test() {
214222}
215223
216224# Start the test
225+ if [ " $IP_FAMILY " == " IPv6" ]; then
226+ enable_primary_ipv6_address
227+ fi
217228run_ginkgo_test
218229
219230# tail=-1 is added so that no logs are truncated
You can’t perform that action at this time.
0 commit comments