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() {
155
155
kubectl apply -f $ingclass_yaml || true
156
156
}
157
157
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
+
158
166
echo " installing AWS load balancer controller"
159
167
if [[ $ADC_REGIONS == * " $REGION " * ]]; then
160
168
echo " for ADC regions, install via manifest"
@@ -214,6 +222,9 @@ function run_ginkgo_test() {
214
222
}
215
223
216
224
# Start the test
225
+ if [ " $IP_FAMILY " == " IPv6" ]; then
226
+ enable_primary_ipv6_address
227
+ fi
217
228
run_ginkgo_test
218
229
219
230
# tail=-1 is added so that no logs are truncated
You can’t perform that action at this time.
0 commit comments