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

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

This commit is contained in:
rawmind0
2020-02-10 14:03:13 +01:00
parent 04df33ba8f
commit 7aaf7f29d0
7 changed files with 35 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ type FluentForwarderConfig struct {
ClientCert string `json:"clientCert,omitempty" yaml:"clientCert,omitempty"`
ClientKey string `json:"clientKey,omitempty" yaml:"clientKey,omitempty"`
ClientKeyPass string `json:"clientKeyPass,omitempty" yaml:"clientKeyPass,omitempty"`
Compress bool `json:"compress,omitempty" yaml:"compress,omitempty"`
Compress *bool `json:"compress,omitempty" yaml:"compress,omitempty"`
EnableTLS bool `json:"enableTls,omitempty" yaml:"enableTls,omitempty"`
FluentServers []FluentServer `json:"fluentServers,omitempty" yaml:"fluentServers,omitempty"`
SSLVerify bool `json:"sslVerify,omitempty" yaml:"sslVerify,omitempty"`

View File

@@ -13,6 +13,6 @@ type NodeDrainInput struct {
DeleteLocalData bool `json:"deleteLocalData,omitempty" yaml:"deleteLocalData,omitempty"`
Force bool `json:"force,omitempty" yaml:"force,omitempty"`
GracePeriod int64 `json:"gracePeriod,omitempty" yaml:"gracePeriod,omitempty"`
IgnoreDaemonSets bool `json:"ignoreDaemonSets,omitempty" yaml:"ignoreDaemonSets,omitempty"`
IgnoreDaemonSets *bool `json:"ignoreDaemonSets,omitempty" yaml:"ignoreDaemonSets,omitempty"`
Timeout int64 `json:"timeout,omitempty" yaml:"timeout,omitempty"`
}

View File

@@ -63,7 +63,7 @@ type NodeTemplate struct {
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
UseInternalIPAddress bool `json:"useInternalIpAddress,omitempty" yaml:"useInternalIpAddress,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty" yaml:"useInternalIpAddress,omitempty"`
}
type NodeTemplateCollection struct {

View File

@@ -36,5 +36,5 @@ type NodeTemplateSpec struct {
EngineRegistryMirror []string `json:"engineRegistryMirror,omitempty" yaml:"engineRegistryMirror,omitempty"`
EngineStorageDriver string `json:"engineStorageDriver,omitempty" yaml:"engineStorageDriver,omitempty"`
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
UseInternalIPAddress bool `json:"useInternalIpAddress,omitempty" yaml:"useInternalIpAddress,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty" yaml:"useInternalIpAddress,omitempty"`
}

View File

@@ -38,7 +38,7 @@ type RancherKubernetesEngineConfig struct {
CloudProvider *CloudProvider `json:"cloudProvider,omitempty" yaml:"cloudProvider,omitempty"`
ClusterName string `json:"clusterName,omitempty" yaml:"clusterName,omitempty"`
DNS *DNSConfig `json:"dns,omitempty" yaml:"dns,omitempty"`
IgnoreDockerVersion bool `json:"ignoreDockerVersion,omitempty" yaml:"ignoreDockerVersion,omitempty"`
IgnoreDockerVersion *bool `json:"ignoreDockerVersion,omitempty" yaml:"ignoreDockerVersion,omitempty"`
Ingress *IngressConfig `json:"ingress,omitempty" yaml:"ingress,omitempty"`
Monitoring *MonitoringConfig `json:"monitoring,omitempty" yaml:"monitoring,omitempty"`
Network *NetworkConfig `json:"network,omitempty" yaml:"network,omitempty"`

View File

@@ -17,6 +17,6 @@ type SMTPConfig struct {
Password string `json:"password,omitempty" yaml:"password,omitempty"`
Port int64 `json:"port,omitempty" yaml:"port,omitempty"`
Sender string `json:"sender,omitempty" yaml:"sender,omitempty"`
TLS bool `json:"tls,omitempty" yaml:"tls,omitempty"`
TLS *bool `json:"tls,omitempty" yaml:"tls,omitempty"`
Username string `json:"username,omitempty" yaml:"username,omitempty"`
}