[bitnami/external-dns] Allow ARNs from AWS China to validate properly (#4021)

* Allow ARNs from AWS China to validate properly

* Bump chart version

Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
Benjamin Farley
2020-10-16 09:53:21 +01:00
committed by GitHub
parent 15f10697d5
commit e78476f544
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: external-dns
version: 3.4.7
version: 3.4.8
appVersion: 0.7.4
description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable.
keywords:

View File

@@ -284,7 +284,7 @@ Validate values of External DNS:
*/}}
{{- define "external-dns.validateValues.aws" -}}
{{- if and (eq .Values.provider "aws") .Values.aws.assumeRoleArn -}}
{{- if not (regexMatch "^arn:(aws|aws-us-gov):iam::.*$" .Values.aws.assumeRoleArn) -}}
{{- if not (regexMatch "^arn:(aws|aws-us-gov|aws-cn):iam::.*$" .Values.aws.assumeRoleArn) -}}
external-dns: aws.assumeRoleArn
The AWS Role to assume must follow ARN format: `arn:aws:iam::123455567:role/external-dns`
Ref: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html