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

Move RootDomain field from provider configs to generic spec

This commit is contained in:
gitlawr
2019-02-24 20:41:35 +08:00
committed by Alena Prokharchyk
parent 3858dd752d
commit a2bec9db38

View File

@@ -48,18 +48,17 @@ type GlobalDNSProviderSpec struct {
CloudflareProviderConfig *CloudflareProviderConfig `json:"cloudflareProviderConfig,omitempty"`
AlidnsProviderConfig *AlidnsProviderConfig `json:"alidnsProviderConfig,omitempty"`
Members []Member `json:"members,omitempty"`
RootDomain string `json:"rootDomain"`
}
type Route53ProviderConfig struct {
RootDomain string `json:"rootDomain" norman:"required"`
AccessKey string `json:"accessKey" norman:"notnullable,required,minLength=1"`
SecretKey string `json:"secretKey" norman:"notnullable,required,minLength=1,type=password"`
AccessKey string `json:"accessKey" norman:"notnullable,required,minLength=1"`
SecretKey string `json:"secretKey" norman:"notnullable,required,minLength=1,type=password"`
}
type CloudflareProviderConfig struct {
RootDomain string `json:"rootDomain" norman:"required"`
APIKey string `json:"apiKey" norman:"notnullable,required,minLength=1,type=password"`
APIEmail string `json:"apiEmail" norman:"notnullable,required,minLength=1"`
APIKey string `json:"apiKey" norman:"notnullable,required,minLength=1,type=password"`
APIEmail string `json:"apiEmail" norman:"notnullable,required,minLength=1"`
}
type UpdateGlobalDNSTargetsInput struct {
@@ -68,9 +67,8 @@ type UpdateGlobalDNSTargetsInput struct {
}
type AlidnsProviderConfig struct {
RootDomain string `json:"rootDomain" norman:"required"`
AccessKey string `json:"accessKey" norman:"notnullable,required,minLength=1"`
SecretKey string `json:"secretKey" norman:"notnullable,required,minLength=1,type=password"`
AccessKey string `json:"accessKey" norman:"notnullable,required,minLength=1"`
SecretKey string `json:"secretKey" norman:"notnullable,required,minLength=1,type=password"`
}
type GlobalDNSSystemImages struct {