1
0
mirror of https://github.com/rancher/types.git synced 2025-04-28 02:30:07 +00:00

[Fix] Updated bool fields with default=true to *bool, to be usable from client. Go types files

This commit is contained in:
rawmind0 2020-02-10 14:00:24 +01:00
parent 29fa023a5b
commit 04df33ba8f
4 changed files with 5 additions and 5 deletions

View File

@ -359,7 +359,7 @@ type SMTPConfig struct {
Password string `json:"password,omitempty" norman:"type=password"`
Sender string `json:"sender,omitempty" norman:"required"`
DefaultRecipient string `json:"defaultRecipient,omitempty" norman:"required"`
TLS bool `json:"tls,omitempty" norman:"required,default=true"`
TLS *bool `json:"tls,omitempty" norman:"required,default=true"`
}
type SlackConfig struct {

View File

@ -177,7 +177,7 @@ type FluentForwarderConfig struct {
ClientKey string `json:"clientKey,omitempty"`
ClientKeyPass string `json:"clientKeyPass,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty"`
Compress bool `json:"compress,omitempty" norman:"default=true"`
Compress *bool `json:"compress,omitempty" norman:"default=true"`
FluentServers []FluentServer `json:"fluentServers,omitempty" norman:"required"`
}

View File

@ -246,7 +246,7 @@ type NodeCommonParams struct {
EngineLabel map[string]string `json:"engineLabel,omitempty"`
EngineStorageDriver string `json:"engineStorageDriver,omitempty"`
EngineEnv map[string]string `json:"engineEnv,omitempty"`
UseInternalIPAddress bool `json:"useInternalIpAddress,omitempty" norman:"default=true,noupdate"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty" norman:"default=true,noupdate"`
}
type NodeDriver struct {
@ -327,7 +327,7 @@ type NodeDrainInput struct {
Force bool `yaml:"force" json:"force,omitempty"`
// If there are DaemonSet-managed pods, drain will not proceed without IgnoreDaemonSets set to true
// (even when set to true, kubectl won't delete pods - so setting default to true)
IgnoreDaemonSets bool `yaml:"ignore_daemonsets" json:"ignoreDaemonSets,omitempty" norman:"default=true"`
IgnoreDaemonSets *bool `yaml:"ignore_daemonsets" json:"ignoreDaemonSets,omitempty" norman:"default=true"`
// Continue even if there are pods using emptyDir
DeleteLocalData bool `yaml:"delete_local_data" json:"deleteLocalData,omitempty"`
//Period of time in seconds given to each pod to terminate gracefully.

View File

@ -33,7 +33,7 @@ type RancherKubernetesEngineConfig struct {
// Authorization mode configuration used in the cluster
Authorization AuthzConfig `yaml:"authorization" json:"authorization,omitempty"`
// Enable/disable strict docker version checking
IgnoreDockerVersion bool `yaml:"ignore_docker_version" json:"ignoreDockerVersion" norman:"default=true"`
IgnoreDockerVersion *bool `yaml:"ignore_docker_version" json:"ignoreDockerVersion" norman:"default=true"`
// Kubernetes version to use (if kubernetes image is specifed, image version takes precedence)
Version string `yaml:"kubernetes_version" json:"kubernetesVersion,omitempty"`
// List of private registries and their credentials