Update Kubernetes packages to v1.20.1

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2021-01-04 22:33:16 +02:00
parent 3fe8119e0c
commit f64295bcee
20 changed files with 370 additions and 84 deletions

View File

@@ -37,7 +37,7 @@ import (
var scheme = runtime.NewScheme()
var codecs = serializer.NewCodecFactory(scheme)
var parameterCodec = runtime.NewParameterCodec(scheme)
var localSchemeBuilder = runtime.SchemeBuilder{
appmeshv1beta2.AddToScheme,
appmeshv1beta1.AddToScheme,

View File

@@ -26,10 +26,13 @@ import (
)
// MeshLister helps list Meshes.
// All objects returned here must be treated as read-only.
type MeshLister interface {
// List lists all Meshes in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.Mesh, err error)
// Get retrieves the Mesh from the index for a given name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta1.Mesh, error)
MeshListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// VirtualNodeLister helps list VirtualNodes.
// All objects returned here must be treated as read-only.
type VirtualNodeLister interface {
// List lists all VirtualNodes in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.VirtualNode, err error)
// VirtualNodes returns an object that can list and get VirtualNodes.
VirtualNodes(namespace string) VirtualNodeNamespaceLister
@@ -58,10 +60,13 @@ func (s *virtualNodeLister) VirtualNodes(namespace string) VirtualNodeNamespaceL
}
// VirtualNodeNamespaceLister helps list and get VirtualNodes.
// All objects returned here must be treated as read-only.
type VirtualNodeNamespaceLister interface {
// List lists all VirtualNodes in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.VirtualNode, err error)
// Get retrieves the VirtualNode from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta1.VirtualNode, error)
VirtualNodeNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// VirtualServiceLister helps list VirtualServices.
// All objects returned here must be treated as read-only.
type VirtualServiceLister interface {
// List lists all VirtualServices in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.VirtualService, err error)
// VirtualServices returns an object that can list and get VirtualServices.
VirtualServices(namespace string) VirtualServiceNamespaceLister
@@ -58,10 +60,13 @@ func (s *virtualServiceLister) VirtualServices(namespace string) VirtualServiceN
}
// VirtualServiceNamespaceLister helps list and get VirtualServices.
// All objects returned here must be treated as read-only.
type VirtualServiceNamespaceLister interface {
// List lists all VirtualServices in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.VirtualService, err error)
// Get retrieves the VirtualService from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta1.VirtualService, error)
VirtualServiceNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// VirtualNodeLister helps list VirtualNodes.
// All objects returned here must be treated as read-only.
type VirtualNodeLister interface {
// List lists all VirtualNodes in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta2.VirtualNode, err error)
// VirtualNodes returns an object that can list and get VirtualNodes.
VirtualNodes(namespace string) VirtualNodeNamespaceLister
@@ -58,10 +60,13 @@ func (s *virtualNodeLister) VirtualNodes(namespace string) VirtualNodeNamespaceL
}
// VirtualNodeNamespaceLister helps list and get VirtualNodes.
// All objects returned here must be treated as read-only.
type VirtualNodeNamespaceLister interface {
// List lists all VirtualNodes in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta2.VirtualNode, err error)
// Get retrieves the VirtualNode from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta2.VirtualNode, error)
VirtualNodeNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// VirtualRouterLister helps list VirtualRouters.
// All objects returned here must be treated as read-only.
type VirtualRouterLister interface {
// List lists all VirtualRouters in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta2.VirtualRouter, err error)
// VirtualRouters returns an object that can list and get VirtualRouters.
VirtualRouters(namespace string) VirtualRouterNamespaceLister
@@ -58,10 +60,13 @@ func (s *virtualRouterLister) VirtualRouters(namespace string) VirtualRouterName
}
// VirtualRouterNamespaceLister helps list and get VirtualRouters.
// All objects returned here must be treated as read-only.
type VirtualRouterNamespaceLister interface {
// List lists all VirtualRouters in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta2.VirtualRouter, err error)
// Get retrieves the VirtualRouter from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta2.VirtualRouter, error)
VirtualRouterNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// VirtualServiceLister helps list VirtualServices.
// All objects returned here must be treated as read-only.
type VirtualServiceLister interface {
// List lists all VirtualServices in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta2.VirtualService, err error)
// VirtualServices returns an object that can list and get VirtualServices.
VirtualServices(namespace string) VirtualServiceNamespaceLister
@@ -58,10 +60,13 @@ func (s *virtualServiceLister) VirtualServices(namespace string) VirtualServiceN
}
// VirtualServiceNamespaceLister helps list and get VirtualServices.
// All objects returned here must be treated as read-only.
type VirtualServiceNamespaceLister interface {
// List lists all VirtualServices in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta2.VirtualService, err error)
// Get retrieves the VirtualService from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta2.VirtualService, error)
VirtualServiceNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// AlertProviderLister helps list AlertProviders.
// All objects returned here must be treated as read-only.
type AlertProviderLister interface {
// List lists all AlertProviders in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.AlertProvider, err error)
// AlertProviders returns an object that can list and get AlertProviders.
AlertProviders(namespace string) AlertProviderNamespaceLister
@@ -58,10 +60,13 @@ func (s *alertProviderLister) AlertProviders(namespace string) AlertProviderName
}
// AlertProviderNamespaceLister helps list and get AlertProviders.
// All objects returned here must be treated as read-only.
type AlertProviderNamespaceLister interface {
// List lists all AlertProviders in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.AlertProvider, err error)
// Get retrieves the AlertProvider from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta1.AlertProvider, error)
AlertProviderNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// CanaryLister helps list Canaries.
// All objects returned here must be treated as read-only.
type CanaryLister interface {
// List lists all Canaries in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.Canary, err error)
// Canaries returns an object that can list and get Canaries.
Canaries(namespace string) CanaryNamespaceLister
@@ -58,10 +60,13 @@ func (s *canaryLister) Canaries(namespace string) CanaryNamespaceLister {
}
// CanaryNamespaceLister helps list and get Canaries.
// All objects returned here must be treated as read-only.
type CanaryNamespaceLister interface {
// List lists all Canaries in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.Canary, err error)
// Get retrieves the Canary from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta1.Canary, error)
CanaryNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// MetricTemplateLister helps list MetricTemplates.
// All objects returned here must be treated as read-only.
type MetricTemplateLister interface {
// List lists all MetricTemplates in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.MetricTemplate, err error)
// MetricTemplates returns an object that can list and get MetricTemplates.
MetricTemplates(namespace string) MetricTemplateNamespaceLister
@@ -58,10 +60,13 @@ func (s *metricTemplateLister) MetricTemplates(namespace string) MetricTemplateN
}
// MetricTemplateNamespaceLister helps list and get MetricTemplates.
// All objects returned here must be treated as read-only.
type MetricTemplateNamespaceLister interface {
// List lists all MetricTemplates in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1beta1.MetricTemplate, err error)
// Get retrieves the MetricTemplate from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1beta1.MetricTemplate, error)
MetricTemplateNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// RouteTableLister helps list RouteTables.
// All objects returned here must be treated as read-only.
type RouteTableLister interface {
// List lists all RouteTables in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.RouteTable, err error)
// RouteTables returns an object that can list and get RouteTables.
RouteTables(namespace string) RouteTableNamespaceLister
@@ -58,10 +60,13 @@ func (s *routeTableLister) RouteTables(namespace string) RouteTableNamespaceList
}
// RouteTableNamespaceLister helps list and get RouteTables.
// All objects returned here must be treated as read-only.
type RouteTableNamespaceLister interface {
// List lists all RouteTables in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.RouteTable, err error)
// Get retrieves the RouteTable from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.RouteTable, error)
RouteTableNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// DestinationRuleLister helps list DestinationRules.
// All objects returned here must be treated as read-only.
type DestinationRuleLister interface {
// List lists all DestinationRules in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha3.DestinationRule, err error)
// DestinationRules returns an object that can list and get DestinationRules.
DestinationRules(namespace string) DestinationRuleNamespaceLister
@@ -58,10 +60,13 @@ func (s *destinationRuleLister) DestinationRules(namespace string) DestinationRu
}
// DestinationRuleNamespaceLister helps list and get DestinationRules.
// All objects returned here must be treated as read-only.
type DestinationRuleNamespaceLister interface {
// List lists all DestinationRules in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha3.DestinationRule, err error)
// Get retrieves the DestinationRule from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1alpha3.DestinationRule, error)
DestinationRuleNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// VirtualServiceLister helps list VirtualServices.
// All objects returned here must be treated as read-only.
type VirtualServiceLister interface {
// List lists all VirtualServices in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha3.VirtualService, err error)
// VirtualServices returns an object that can list and get VirtualServices.
VirtualServices(namespace string) VirtualServiceNamespaceLister
@@ -58,10 +60,13 @@ func (s *virtualServiceLister) VirtualServices(namespace string) VirtualServiceN
}
// VirtualServiceNamespaceLister helps list and get VirtualServices.
// All objects returned here must be treated as read-only.
type VirtualServiceNamespaceLister interface {
// List lists all VirtualServices in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha3.VirtualService, err error)
// Get retrieves the VirtualService from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1alpha3.VirtualService, error)
VirtualServiceNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// HTTPProxyLister helps list HTTPProxies.
// All objects returned here must be treated as read-only.
type HTTPProxyLister interface {
// List lists all HTTPProxies in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.HTTPProxy, err error)
// HTTPProxies returns an object that can list and get HTTPProxies.
HTTPProxies(namespace string) HTTPProxyNamespaceLister
@@ -58,10 +60,13 @@ func (s *hTTPProxyLister) HTTPProxies(namespace string) HTTPProxyNamespaceLister
}
// HTTPProxyNamespaceLister helps list and get HTTPProxies.
// All objects returned here must be treated as read-only.
type HTTPProxyNamespaceLister interface {
// List lists all HTTPProxies in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.HTTPProxy, err error)
// Get retrieves the HTTPProxy from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.HTTPProxy, error)
HTTPProxyNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// TrafficSplitLister helps list TrafficSplits.
// All objects returned here must be treated as read-only.
type TrafficSplitLister interface {
// List lists all TrafficSplits in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha1.TrafficSplit, err error)
// TrafficSplits returns an object that can list and get TrafficSplits.
TrafficSplits(namespace string) TrafficSplitNamespaceLister
@@ -58,10 +60,13 @@ func (s *trafficSplitLister) TrafficSplits(namespace string) TrafficSplitNamespa
}
// TrafficSplitNamespaceLister helps list and get TrafficSplits.
// All objects returned here must be treated as read-only.
type TrafficSplitNamespaceLister interface {
// List lists all TrafficSplits in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha1.TrafficSplit, err error)
// Get retrieves the TrafficSplit from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1alpha1.TrafficSplit, error)
TrafficSplitNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// TrafficSplitLister helps list TrafficSplits.
// All objects returned here must be treated as read-only.
type TrafficSplitLister interface {
// List lists all TrafficSplits in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.TrafficSplit, err error)
// TrafficSplits returns an object that can list and get TrafficSplits.
TrafficSplits(namespace string) TrafficSplitNamespaceLister
@@ -58,10 +60,13 @@ func (s *trafficSplitLister) TrafficSplits(namespace string) TrafficSplitNamespa
}
// TrafficSplitNamespaceLister helps list and get TrafficSplits.
// All objects returned here must be treated as read-only.
type TrafficSplitNamespaceLister interface {
// List lists all TrafficSplits in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha2.TrafficSplit, err error)
// Get retrieves the TrafficSplit from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1alpha2.TrafficSplit, error)
TrafficSplitNamespaceListerExpansion
}

View File

@@ -26,8 +26,10 @@ import (
)
// TraefikServiceLister helps list TraefikServices.
// All objects returned here must be treated as read-only.
type TraefikServiceLister interface {
// List lists all TraefikServices in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha1.TraefikService, err error)
// TraefikServices returns an object that can list and get TraefikServices.
TraefikServices(namespace string) TraefikServiceNamespaceLister
@@ -58,10 +60,13 @@ func (s *traefikServiceLister) TraefikServices(namespace string) TraefikServiceN
}
// TraefikServiceNamespaceLister helps list and get TraefikServices.
// All objects returned here must be treated as read-only.
type TraefikServiceNamespaceLister interface {
// List lists all TraefikServices in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1alpha1.TraefikService, err error)
// Get retrieves the TraefikService from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1alpha1.TraefikService, error)
TraefikServiceNamespaceListerExpansion
}