1
0
mirror of https://github.com/rancher/types.git synced 2025-08-01 21:07:41 +00:00

Add cloudflare provider config to global dns

This commit is contained in:
galal-hussein 2019-01-23 00:53:34 +02:00 committed by Alena Prokharchyk
parent 0557448cff
commit e5e9d6fbf3

View File

@ -40,8 +40,9 @@ type GlobalDNSProvider struct {
}
type GlobalDNSProviderSpec struct {
Route53ProviderConfig *Route53ProviderConfig `json:"route53ProviderConfig,omitempty"`
Members []Member `json:"members,omitempty"`
Route53ProviderConfig *Route53ProviderConfig `json:"route53ProviderConfig,omitempty"`
CloudflareProviderConfig *CloudflareProviderConfig `json:"cloudflareProviderConfig,omitempty"`
Members []Member `json:"members,omitempty"`
}
type Route53ProviderConfig struct {
@ -49,3 +50,9 @@ type Route53ProviderConfig struct {
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey" norman:"type=password"`
}
type CloudflareProviderConfig struct {
RootDomain string `json:"rootDomain" norman:"required"`
APIKey string `json:"apiKey" norman:"required,type=password"`
APIEmail string `json:"apiEmail" norman:"required"`
}