mirror of
https://github.com/rancher/types.git
synced 2025-09-19 17:15:36 +00:00
go generate
This commit is contained in:
committed by
Alena Prokharchyk
parent
e1d14d99e5
commit
0557448cff
@@ -2013,6 +2013,39 @@ func (in *CustomTargetConfig) DeepCopy() *CustomTargetConfig {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DNSConfig) DeepCopyInto(out *DNSConfig) {
|
||||
*out = *in
|
||||
if in.UpstreamNameservers != nil {
|
||||
in, out := &in.UpstreamNameservers, &out.UpstreamNameservers
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.ReverseCIDRs != nil {
|
||||
in, out := &in.ReverseCIDRs, &out.ReverseCIDRs
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.NodeSelector != nil {
|
||||
in, out := &in.NodeSelector, &out.NodeSelector
|
||||
*out = make(map[string]string, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSConfig.
|
||||
func (in *DNSConfig) DeepCopy() *DNSConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DNSConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DiskVsphereOpts) DeepCopyInto(out *DiskVsphereOpts) {
|
||||
*out = *in
|
||||
@@ -6907,6 +6940,7 @@ func (in *RancherKubernetesEngineConfig) DeepCopyInto(out *RancherKubernetesEngi
|
||||
*out = new(RotateCertificates)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
in.DNS.DeepCopyInto(&out.DNS)
|
||||
return
|
||||
}
|
||||
|
||||
|
16
client/management/v3/zz_generated_dns_config.go
Normal file
16
client/management/v3/zz_generated_dns_config.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
DNSConfigType = "dnsConfig"
|
||||
DNSConfigFieldNodeSelector = "nodeSelector"
|
||||
DNSConfigFieldProvider = "provider"
|
||||
DNSConfigFieldReverseCIDRs = "reversecidrs"
|
||||
DNSConfigFieldUpstreamNameservers = "upstreamnameservers"
|
||||
)
|
||||
|
||||
type DNSConfig struct {
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
|
||||
ReverseCIDRs []string `json:"reversecidrs,omitempty" yaml:"reversecidrs,omitempty"`
|
||||
UpstreamNameservers []string `json:"upstreamnameservers,omitempty" yaml:"upstreamnameservers,omitempty"`
|
||||
}
|
@@ -10,6 +10,7 @@ const (
|
||||
RancherKubernetesEngineConfigFieldBastionHost = "bastionHost"
|
||||
RancherKubernetesEngineConfigFieldCloudProvider = "cloudProvider"
|
||||
RancherKubernetesEngineConfigFieldClusterName = "clusterName"
|
||||
RancherKubernetesEngineConfigFieldDNS = "dns"
|
||||
RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion"
|
||||
RancherKubernetesEngineConfigFieldIngress = "ingress"
|
||||
RancherKubernetesEngineConfigFieldMonitoring = "monitoring"
|
||||
@@ -34,6 +35,7 @@ type RancherKubernetesEngineConfig struct {
|
||||
BastionHost *BastionHost `json:"bastionHost,omitempty" yaml:"bastionHost,omitempty"`
|
||||
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"`
|
||||
Ingress *IngressConfig `json:"ingress,omitempty" yaml:"ingress,omitempty"`
|
||||
Monitoring *MonitoringConfig `json:"monitoring,omitempty" yaml:"monitoring,omitempty"`
|
||||
|
@@ -11,6 +11,8 @@ const (
|
||||
RKESystemImagesFieldCanalFlannel = "canalFlannel"
|
||||
RKESystemImagesFieldCanalNode = "canalNode"
|
||||
RKESystemImagesFieldCertDownloader = "certDownloader"
|
||||
RKESystemImagesFieldCoreDNS = "coredns"
|
||||
RKESystemImagesFieldCoreDNSAutoscaler = "corednsAutoscaler"
|
||||
RKESystemImagesFieldDNSmasq = "dnsmasq"
|
||||
RKESystemImagesFieldEtcd = "etcd"
|
||||
RKESystemImagesFieldFlannel = "flannel"
|
||||
@@ -39,6 +41,8 @@ type RKESystemImages struct {
|
||||
CanalFlannel string `json:"canalFlannel,omitempty" yaml:"canalFlannel,omitempty"`
|
||||
CanalNode string `json:"canalNode,omitempty" yaml:"canalNode,omitempty"`
|
||||
CertDownloader string `json:"certDownloader,omitempty" yaml:"certDownloader,omitempty"`
|
||||
CoreDNS string `json:"coredns,omitempty" yaml:"coredns,omitempty"`
|
||||
CoreDNSAutoscaler string `json:"corednsAutoscaler,omitempty" yaml:"corednsAutoscaler,omitempty"`
|
||||
DNSmasq string `json:"dnsmasq,omitempty" yaml:"dnsmasq,omitempty"`
|
||||
Etcd string `json:"etcd,omitempty" yaml:"etcd,omitempty"`
|
||||
Flannel string `json:"flannel,omitempty" yaml:"flannel,omitempty"`
|
||||
|
Reference in New Issue
Block a user