Fix EC2 IPv6 endpoint for EBS CSI Driver controller

This commit is contained in:
Ciprian Hacman 2021-09-18 18:34:13 +03:00
parent 8d49409d1f
commit fa853add24
1 changed files with 4 additions and 4 deletions

View File

@ -296,10 +296,6 @@ spec:
- --v=2
env:
{{- if IsIPv6Only }}
# TODO: Replace with "AWS_USE_DUALSTACK_ENDPOINT=true" when the relevant PR is merged:
# https://github.com/aws/aws-sdk-go/pull/3938
- name: AWS_EC2_ENDPOINT
value: https://api.ec2.{{ Region }}.aws
- name: AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE
value: IPv6
{{- end }}
@ -444,6 +440,10 @@ spec:
- --v=5
env:
{{- if IsIPv6Only }}
# TODO: Replace with "AWS_USE_DUALSTACK_ENDPOINT=true" when the relevant PR is merged:
# https://github.com/aws/aws-sdk-go/pull/3938
- name: AWS_EC2_ENDPOINT
value: https://api.ec2.{{ Region }}.aws
- name: AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE
value: IPv6
{{- end }}