1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 20:55:00 +00:00

Generated changes - cluster caps

This commit is contained in:
rajashree 2018-10-03 00:30:32 -07:00 committed by Alena Prokharchyk
parent c3805641e9
commit 96b142a253
6 changed files with 110 additions and 0 deletions

View File

@ -522,6 +522,28 @@ func (in *CanalNetworkProvider) DeepCopy() *CanalNetworkProvider {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Capabilities) DeepCopyInto(out *Capabilities) {
*out = *in
in.L4LoadBalancer.DeepCopyInto(&out.L4LoadBalancer)
if in.IngressControllers != nil {
in, out := &in.IngressControllers, &out.IngressControllers
*out = make([]IngressController, len(*in))
copy(*out, *in)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Capabilities.
func (in *Capabilities) DeepCopy() *Capabilities {
if in == nil {
return nil
}
out := new(Capabilities)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Catalog) DeepCopyInto(out *Catalog) {
*out = *in
@ -1429,6 +1451,7 @@ func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
**out = **in
}
}
in.Capabilities.DeepCopyInto(&out.Capabilities)
return
}
@ -2516,6 +2539,22 @@ func (in *IngressConfig) DeepCopy() *IngressConfig {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *IngressController) DeepCopyInto(out *IngressController) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressController.
func (in *IngressController) DeepCopy() *IngressController {
if in == nil {
return nil
}
out := new(IngressController)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KafkaConfig) DeepCopyInto(out *KafkaConfig) {
*out = *in
@ -2681,6 +2720,27 @@ func (in *KubernetesServicesOptions) DeepCopy() *KubernetesServicesOptions {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *L4LoadBalancer) DeepCopyInto(out *L4LoadBalancer) {
*out = *in
if in.ProtocolsSupported != nil {
in, out := &in.ProtocolsSupported, &out.ProtocolsSupported
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L4LoadBalancer.
func (in *L4LoadBalancer) DeepCopy() *L4LoadBalancer {
if in == nil {
return nil
}
out := new(L4LoadBalancer)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LdapConfig) DeepCopyInto(out *LdapConfig) {
*out = *in

View File

@ -0,0 +1,16 @@
package client
const (
CapabilitiesType = "capabilities"
CapabilitiesFieldIngressControllers = "ingressControllers"
CapabilitiesFieldL4LoadBalancer = "l4loadBalancer"
CapabilitiesFieldNodePoolScalingSupported = "nodePoolScalingSupported"
CapabilitiesFieldNodePortRange = "nodePortRange"
)
type Capabilities struct {
IngressControllers []IngressController `json:"ingressControllers,omitempty" yaml:"ingressControllers,omitempty"`
L4LoadBalancer *L4LoadBalancer `json:"l4loadBalancer,omitempty" yaml:"l4loadBalancer,omitempty"`
NodePoolScalingSupported bool `json:"nodePoolScalingSupported,omitempty" yaml:"nodePoolScalingSupported,omitempty"`
NodePortRange string `json:"nodePortRange,omitempty" yaml:"nodePortRange,omitempty"`
}

View File

@ -16,6 +16,7 @@ const (
ClusterFieldAppliedSpec = "appliedSpec"
ClusterFieldAzureKubernetesServiceConfig = "azureKubernetesServiceConfig"
ClusterFieldCACert = "caCert"
ClusterFieldCapabilities = "capabilities"
ClusterFieldCapacity = "capacity"
ClusterFieldComponentStatuses = "componentStatuses"
ClusterFieldConditions = "conditions"
@ -58,6 +59,7 @@ type Cluster struct {
AppliedSpec *ClusterSpec `json:"appliedSpec,omitempty" yaml:"appliedSpec,omitempty"`
AzureKubernetesServiceConfig *AzureKubernetesServiceConfig `json:"azureKubernetesServiceConfig,omitempty" yaml:"azureKubernetesServiceConfig,omitempty"`
CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty"`
Capabilities *Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
ComponentStatuses []ClusterComponentStatus `json:"componentStatuses,omitempty" yaml:"componentStatuses,omitempty"`
Conditions []ClusterCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`

View File

@ -9,6 +9,7 @@ const (
ClusterStatusFieldAppliedPodSecurityPolicyTemplateName = "appliedPodSecurityPolicyTemplateId"
ClusterStatusFieldAppliedSpec = "appliedSpec"
ClusterStatusFieldCACert = "caCert"
ClusterStatusFieldCapabilities = "capabilities"
ClusterStatusFieldCapacity = "capacity"
ClusterStatusFieldComponentStatuses = "componentStatuses"
ClusterStatusFieldConditions = "conditions"
@ -27,6 +28,7 @@ type ClusterStatus struct {
AppliedPodSecurityPolicyTemplateName string `json:"appliedPodSecurityPolicyTemplateId,omitempty" yaml:"appliedPodSecurityPolicyTemplateId,omitempty"`
AppliedSpec *ClusterSpec `json:"appliedSpec,omitempty" yaml:"appliedSpec,omitempty"`
CACert string `json:"caCert,omitempty" yaml:"caCert,omitempty"`
Capabilities *Capabilities `json:"capabilities,omitempty" yaml:"capabilities,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
ComponentStatuses []ClusterComponentStatus `json:"componentStatuses,omitempty" yaml:"componentStatuses,omitempty"`
Conditions []ClusterCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`

View File

@ -0,0 +1,14 @@
package client
const (
IngressControllerType = "ingressController"
IngressControllerFieldCustomDefaultBackend = "customDefaultBackend"
IngressControllerFieldHTTPLoadBalancingEnabled = "httpLoadBalancingEnabled"
IngressControllerFieldIngressProvider = "ingressProvider"
)
type IngressController struct {
CustomDefaultBackend bool `json:"customDefaultBackend,omitempty" yaml:"customDefaultBackend,omitempty"`
HTTPLoadBalancingEnabled bool `json:"httpLoadBalancingEnabled,omitempty" yaml:"httpLoadBalancingEnabled,omitempty"`
IngressProvider string `json:"ingressProvider,omitempty" yaml:"ingressProvider,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
L4LoadBalancerType = "l4LoadBalancer"
L4LoadBalancerFieldEnabled = "enabled"
L4LoadBalancerFieldHealthCheckSupported = "healthCheckSupported"
L4LoadBalancerFieldProtocolsSupported = "protocolsSupported"
L4LoadBalancerFieldProvider = "provider"
)
type L4LoadBalancer struct {
Enabled bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
HealthCheckSupported bool `json:"healthCheckSupported,omitempty" yaml:"healthCheckSupported,omitempty"`
ProtocolsSupported []string `json:"protocolsSupported,omitempty" yaml:"protocolsSupported,omitempty"`
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
}