-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create external dns cluster values (#1649)
* allow adding labels and annotations from configmap spec Signed-off-by: Matias Charriere <[email protected]> * add external-dns-cluster-values configmap Signed-off-by: Matias Charriere <[email protected]> * replace null with nil Signed-off-by: Matias Charriere <[email protected]> * update changelog Signed-off-by: Matias Charriere <[email protected]> * add support for China and remove annotation from service account China doesn't use its local Route53 instance. Instead it uses external credentials to auth against the global Route53. Signed-off-by: Matias Charriere <[email protected]> --------- Signed-off-by: Matias Charriere <[email protected]>
- Loading branch information
1 parent
6ac7eb7
commit 138391e
Showing
4 changed files
with
73 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package key | ||
|
||
import "strings" | ||
|
||
func IsAWS(provider string) bool { | ||
return provider == "aws" | ||
} | ||
|
||
func IsAWSChina(region string) bool { | ||
return strings.HasPrefix(region, "cn-") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package clusterconfigmap | ||
|
||
type configMapSpec struct { | ||
Name string | ||
Namespace string | ||
Values map[string]interface{} | ||
Name string | ||
Namespace string | ||
Values map[string]interface{} | ||
Labels map[string]string | ||
Annotations map[string]string | ||
} |