From a123cd1714a95276c7275eddd40dbdbdb11919de Mon Sep 17 00:00:00 2001 From: rajashree Date: Thu, 25 Oct 2018 17:53:19 -0700 Subject: [PATCH] Tweaks to cluster capabilities field names --- apis/management.cattle.io/v3/cluster_types.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/apis/management.cattle.io/v3/cluster_types.go b/apis/management.cattle.io/v3/cluster_types.go index dafdf056..f3b4c70e 100644 --- a/apis/management.cattle.io/v3/cluster_types.go +++ b/apis/management.cattle.io/v3/cluster_types.go @@ -291,21 +291,20 @@ type ImportYamlOutput struct { } type Capabilities struct { - L4LoadBalancer L4LoadBalancer `json:"l4loadBalancer,omitempty"` - IngressControllers []IngressController `json:"ingressControllers,omitempty"` - NodePoolScalingSupported bool `json:"nodePoolScalingSupported,omitempty"` - NodePortRange string `json:"nodePortRange,omitempty"` + LoadBalancerCapabilities LoadBalancerCapabilities `json:"loadBalancerCapabilities,omitempty"` + IngressCapabilities []IngressCapabilities `json:"ingressCapabilities,omitempty"` + NodePoolScalingSupported bool `json:"nodePoolScalingSupported,omitempty"` + NodePortRange string `json:"nodePortRange,omitempty"` } -type L4LoadBalancer struct { +type LoadBalancerCapabilities struct { Enabled bool `json:"enabled,omitempty"` Provider string `json:"provider,omitempty"` ProtocolsSupported []string `json:"protocolsSupported,omitempty"` HealthCheckSupported bool `json:"healthCheckSupported,omitempty"` } -type IngressController struct { - HTTPLoadBalancingEnabled bool `json:"httpLoadBalancingEnabled,omitempty"` - IngressProvider string `json:"ingressProvider,omitempty"` - CustomDefaultBackend bool `json:"customDefaultBackend,omitempty"` +type IngressCapabilities struct { + IngressProvider string `json:"ingressProvider,omitempty"` + CustomDefaultBackend bool `json:"customDefaultBackend,omitempty"` }