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:
committed by
Alena Prokharchyk
parent
3858dd752d
commit
a2bec9db38
@@ -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 {
|
||||
|
Reference in New Issue
Block a user