diff --git a/go.mod b/go.mod index 3cd39f7fd..1316db1e9 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module istio.io/client-go go 1.18 require ( - istio.io/api v0.0.0-20230414173635-a5fe6c8c2f61 + istio.io/api v0.0.0-20230414193140-04eb39977e2a k8s.io/apimachinery v0.27.0 k8s.io/client-go v0.27.0 sigs.k8s.io/structured-merge-diff/v4 v4.2.3 diff --git a/go.sum b/go.sum index 8ebc3cbda..d8da4ed27 100644 --- a/go.sum +++ b/go.sum @@ -467,8 +467,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -istio.io/api v0.0.0-20230414173635-a5fe6c8c2f61 h1:WHwQlDKpdCjKqbnC1J38p12ubuzFc/Ct/MXAwaD0IZE= -istio.io/api v0.0.0-20230414173635-a5fe6c8c2f61/go.mod h1:dDMe1TsOtrRoUlBzdxqNolWXpXPQjLfbcXvqPMtQ6eo= +istio.io/api v0.0.0-20230414193140-04eb39977e2a h1:A+FBNGJpU/CYENpjXVza4fAtQctbnVVmmoKTefpwP1g= +istio.io/api v0.0.0-20230414193140-04eb39977e2a/go.mod h1:dDMe1TsOtrRoUlBzdxqNolWXpXPQjLfbcXvqPMtQ6eo= k8s.io/api v0.27.0 h1:2owttiA8Oa+J3idFeq8TSnNpm4y6AOGPI3PDbIpp2cE= k8s.io/api v0.27.0/go.mod h1:Wl+QRvQlh+T8SK5f4F6YBhhyH6hrFO08nl74xZb1MUE= k8s.io/apimachinery v0.27.0 h1:vEyy/PVMbPMCPutrssCVHCf0JNZ0Px+YqPi82K2ALlk= diff --git a/pkg/clientset/versioned/doc.go b/pkg/clientset/versioned/doc.go deleted file mode 100644 index ccb8d4545..000000000 --- a/pkg/clientset/versioned/doc.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright Istio Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by client-gen. DO NOT EDIT. - -// This package has the automatically generated clientset. -package versioned diff --git a/pkg/clientset/versioned/typed/extensions/v1alpha1/fake/fake_wasmplugin.gen.go b/pkg/clientset/versioned/typed/extensions/v1alpha1/fake/fake_wasmplugin.gen.go index dbb5c6d04..e5ee32502 100644 --- a/pkg/clientset/versioned/typed/extensions/v1alpha1/fake/fake_wasmplugin.gen.go +++ b/pkg/clientset/versioned/typed/extensions/v1alpha1/fake/fake_wasmplugin.gen.go @@ -25,7 +25,6 @@ import ( extensionsv1alpha1 "istio.io/client-go/pkg/applyconfiguration/extensions/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeWasmPlugins struct { ns string } -var wasmpluginsResource = schema.GroupVersionResource{Group: "extensions.istio.io", Version: "v1alpha1", Resource: "wasmplugins"} +var wasmpluginsResource = v1alpha1.SchemeGroupVersion.WithResource("wasmplugins") -var wasmpluginsKind = schema.GroupVersionKind{Group: "extensions.istio.io", Version: "v1alpha1", Kind: "WasmPlugin"} +var wasmpluginsKind = v1alpha1.SchemeGroupVersion.WithKind("WasmPlugin") // Get takes name of the wasmPlugin, and returns the corresponding wasmPlugin object, and an error if there is any. func (c *FakeWasmPlugins) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.WasmPlugin, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_destinationrule.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_destinationrule.gen.go index 1bf9d2c5c..1e8fbd5f6 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_destinationrule.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_destinationrule.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeDestinationRules struct { ns string } -var destinationrulesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "destinationrules"} +var destinationrulesResource = v1alpha3.SchemeGroupVersion.WithResource("destinationrules") -var destinationrulesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "DestinationRule"} +var destinationrulesKind = v1alpha3.SchemeGroupVersion.WithKind("DestinationRule") // Get takes name of the destinationRule, and returns the corresponding destinationRule object, and an error if there is any. func (c *FakeDestinationRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.DestinationRule, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_envoyfilter.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_envoyfilter.gen.go index 3f70a8926..2e829c668 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_envoyfilter.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_envoyfilter.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeEnvoyFilters struct { ns string } -var envoyfiltersResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "envoyfilters"} +var envoyfiltersResource = v1alpha3.SchemeGroupVersion.WithResource("envoyfilters") -var envoyfiltersKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "EnvoyFilter"} +var envoyfiltersKind = v1alpha3.SchemeGroupVersion.WithKind("EnvoyFilter") // Get takes name of the envoyFilter, and returns the corresponding envoyFilter object, and an error if there is any. func (c *FakeEnvoyFilters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.EnvoyFilter, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_gateway.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_gateway.gen.go index a1d77f843..5e667e407 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_gateway.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_gateway.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeGateways struct { ns string } -var gatewaysResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "gateways"} +var gatewaysResource = v1alpha3.SchemeGroupVersion.WithResource("gateways") -var gatewaysKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "Gateway"} +var gatewaysKind = v1alpha3.SchemeGroupVersion.WithKind("Gateway") // Get takes name of the gateway, and returns the corresponding gateway object, and an error if there is any. func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.Gateway, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_serviceentry.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_serviceentry.gen.go index b6f2729e4..33ae0bb13 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_serviceentry.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_serviceentry.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeServiceEntries struct { ns string } -var serviceentriesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "serviceentries"} +var serviceentriesResource = v1alpha3.SchemeGroupVersion.WithResource("serviceentries") -var serviceentriesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "ServiceEntry"} +var serviceentriesKind = v1alpha3.SchemeGroupVersion.WithKind("ServiceEntry") // Get takes name of the serviceEntry, and returns the corresponding serviceEntry object, and an error if there is any. func (c *FakeServiceEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ServiceEntry, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_sidecar.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_sidecar.gen.go index 5e7474651..e79ae0cad 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_sidecar.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_sidecar.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeSidecars struct { ns string } -var sidecarsResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "sidecars"} +var sidecarsResource = v1alpha3.SchemeGroupVersion.WithResource("sidecars") -var sidecarsKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "Sidecar"} +var sidecarsKind = v1alpha3.SchemeGroupVersion.WithKind("Sidecar") // Get takes name of the sidecar, and returns the corresponding sidecar object, and an error if there is any. func (c *FakeSidecars) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.Sidecar, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_virtualservice.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_virtualservice.gen.go index 40b7fb4de..6dd9d7c2f 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_virtualservice.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_virtualservice.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeVirtualServices struct { ns string } -var virtualservicesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "virtualservices"} +var virtualservicesResource = v1alpha3.SchemeGroupVersion.WithResource("virtualservices") -var virtualservicesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "VirtualService"} +var virtualservicesKind = v1alpha3.SchemeGroupVersion.WithKind("VirtualService") // Get takes name of the virtualService, and returns the corresponding virtualService object, and an error if there is any. func (c *FakeVirtualServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.VirtualService, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadentry.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadentry.gen.go index d441787b3..407f5358a 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadentry.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadentry.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeWorkloadEntries struct { ns string } -var workloadentriesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "workloadentries"} +var workloadentriesResource = v1alpha3.SchemeGroupVersion.WithResource("workloadentries") -var workloadentriesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "WorkloadEntry"} +var workloadentriesKind = v1alpha3.SchemeGroupVersion.WithKind("WorkloadEntry") // Get takes name of the workloadEntry, and returns the corresponding workloadEntry object, and an error if there is any. func (c *FakeWorkloadEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.WorkloadEntry, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadgroup.gen.go b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadgroup.gen.go index afee5a238..0740229f5 100644 --- a/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadgroup.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1alpha3/fake/fake_workloadgroup.gen.go @@ -25,7 +25,6 @@ import ( networkingv1alpha3 "istio.io/client-go/pkg/applyconfiguration/networking/v1alpha3" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeWorkloadGroups struct { ns string } -var workloadgroupsResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1alpha3", Resource: "workloadgroups"} +var workloadgroupsResource = v1alpha3.SchemeGroupVersion.WithResource("workloadgroups") -var workloadgroupsKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1alpha3", Kind: "WorkloadGroup"} +var workloadgroupsKind = v1alpha3.SchemeGroupVersion.WithKind("WorkloadGroup") // Get takes name of the workloadGroup, and returns the corresponding workloadGroup object, and an error if there is any. func (c *FakeWorkloadGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.WorkloadGroup, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_destinationrule.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_destinationrule.gen.go index 4690018f0..c4a0ad6f8 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_destinationrule.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_destinationrule.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeDestinationRules struct { ns string } -var destinationrulesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "destinationrules"} +var destinationrulesResource = v1beta1.SchemeGroupVersion.WithResource("destinationrules") -var destinationrulesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "DestinationRule"} +var destinationrulesKind = v1beta1.SchemeGroupVersion.WithKind("DestinationRule") // Get takes name of the destinationRule, and returns the corresponding destinationRule object, and an error if there is any. func (c *FakeDestinationRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DestinationRule, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_gateway.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_gateway.gen.go index 316905d10..e29da1546 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_gateway.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_gateway.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeGateways struct { ns string } -var gatewaysResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "gateways"} +var gatewaysResource = v1beta1.SchemeGroupVersion.WithResource("gateways") -var gatewaysKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "Gateway"} +var gatewaysKind = v1beta1.SchemeGroupVersion.WithKind("Gateway") // Get takes name of the gateway, and returns the corresponding gateway object, and an error if there is any. func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Gateway, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_proxyconfig.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_proxyconfig.gen.go index 92f37adc4..46affb114 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_proxyconfig.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_proxyconfig.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeProxyConfigs struct { ns string } -var proxyconfigsResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "proxyconfigs"} +var proxyconfigsResource = v1beta1.SchemeGroupVersion.WithResource("proxyconfigs") -var proxyconfigsKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "ProxyConfig"} +var proxyconfigsKind = v1beta1.SchemeGroupVersion.WithKind("ProxyConfig") // Get takes name of the proxyConfig, and returns the corresponding proxyConfig object, and an error if there is any. func (c *FakeProxyConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ProxyConfig, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_serviceentry.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_serviceentry.gen.go index da02fda01..11cd8f849 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_serviceentry.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_serviceentry.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeServiceEntries struct { ns string } -var serviceentriesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "serviceentries"} +var serviceentriesResource = v1beta1.SchemeGroupVersion.WithResource("serviceentries") -var serviceentriesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "ServiceEntry"} +var serviceentriesKind = v1beta1.SchemeGroupVersion.WithKind("ServiceEntry") // Get takes name of the serviceEntry, and returns the corresponding serviceEntry object, and an error if there is any. func (c *FakeServiceEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ServiceEntry, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_sidecar.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_sidecar.gen.go index 588a29bf2..6c603051d 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_sidecar.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_sidecar.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeSidecars struct { ns string } -var sidecarsResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "sidecars"} +var sidecarsResource = v1beta1.SchemeGroupVersion.WithResource("sidecars") -var sidecarsKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "Sidecar"} +var sidecarsKind = v1beta1.SchemeGroupVersion.WithKind("Sidecar") // Get takes name of the sidecar, and returns the corresponding sidecar object, and an error if there is any. func (c *FakeSidecars) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Sidecar, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_virtualservice.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_virtualservice.gen.go index b65df2001..373539f68 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_virtualservice.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_virtualservice.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeVirtualServices struct { ns string } -var virtualservicesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "virtualservices"} +var virtualservicesResource = v1beta1.SchemeGroupVersion.WithResource("virtualservices") -var virtualservicesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "VirtualService"} +var virtualservicesKind = v1beta1.SchemeGroupVersion.WithKind("VirtualService") // Get takes name of the virtualService, and returns the corresponding virtualService object, and an error if there is any. func (c *FakeVirtualServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.VirtualService, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadentry.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadentry.gen.go index 379daf3b0..f8b83a161 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadentry.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadentry.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeWorkloadEntries struct { ns string } -var workloadentriesResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "workloadentries"} +var workloadentriesResource = v1beta1.SchemeGroupVersion.WithResource("workloadentries") -var workloadentriesKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "WorkloadEntry"} +var workloadentriesKind = v1beta1.SchemeGroupVersion.WithKind("WorkloadEntry") // Get takes name of the workloadEntry, and returns the corresponding workloadEntry object, and an error if there is any. func (c *FakeWorkloadEntries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.WorkloadEntry, err error) { diff --git a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadgroup.gen.go b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadgroup.gen.go index 300ec7136..dadf1df1c 100644 --- a/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadgroup.gen.go +++ b/pkg/clientset/versioned/typed/networking/v1beta1/fake/fake_workloadgroup.gen.go @@ -25,7 +25,6 @@ import ( networkingv1beta1 "istio.io/client-go/pkg/applyconfiguration/networking/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeWorkloadGroups struct { ns string } -var workloadgroupsResource = schema.GroupVersionResource{Group: "networking.istio.io", Version: "v1beta1", Resource: "workloadgroups"} +var workloadgroupsResource = v1beta1.SchemeGroupVersion.WithResource("workloadgroups") -var workloadgroupsKind = schema.GroupVersionKind{Group: "networking.istio.io", Version: "v1beta1", Kind: "WorkloadGroup"} +var workloadgroupsKind = v1beta1.SchemeGroupVersion.WithKind("WorkloadGroup") // Get takes name of the workloadGroup, and returns the corresponding workloadGroup object, and an error if there is any. func (c *FakeWorkloadGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.WorkloadGroup, err error) { diff --git a/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_authorizationpolicy.gen.go b/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_authorizationpolicy.gen.go index 4c20516a6..7b72d29ff 100644 --- a/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_authorizationpolicy.gen.go +++ b/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_authorizationpolicy.gen.go @@ -25,7 +25,6 @@ import ( securityv1beta1 "istio.io/client-go/pkg/applyconfiguration/security/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeAuthorizationPolicies struct { ns string } -var authorizationpoliciesResource = schema.GroupVersionResource{Group: "security.istio.io", Version: "v1beta1", Resource: "authorizationpolicies"} +var authorizationpoliciesResource = v1beta1.SchemeGroupVersion.WithResource("authorizationpolicies") -var authorizationpoliciesKind = schema.GroupVersionKind{Group: "security.istio.io", Version: "v1beta1", Kind: "AuthorizationPolicy"} +var authorizationpoliciesKind = v1beta1.SchemeGroupVersion.WithKind("AuthorizationPolicy") // Get takes name of the authorizationPolicy, and returns the corresponding authorizationPolicy object, and an error if there is any. func (c *FakeAuthorizationPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.AuthorizationPolicy, err error) { diff --git a/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_peerauthentication.gen.go b/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_peerauthentication.gen.go index 40093df5e..7deae8221 100644 --- a/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_peerauthentication.gen.go +++ b/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_peerauthentication.gen.go @@ -25,7 +25,6 @@ import ( securityv1beta1 "istio.io/client-go/pkg/applyconfiguration/security/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakePeerAuthentications struct { ns string } -var peerauthenticationsResource = schema.GroupVersionResource{Group: "security.istio.io", Version: "v1beta1", Resource: "peerauthentications"} +var peerauthenticationsResource = v1beta1.SchemeGroupVersion.WithResource("peerauthentications") -var peerauthenticationsKind = schema.GroupVersionKind{Group: "security.istio.io", Version: "v1beta1", Kind: "PeerAuthentication"} +var peerauthenticationsKind = v1beta1.SchemeGroupVersion.WithKind("PeerAuthentication") // Get takes name of the peerAuthentication, and returns the corresponding peerAuthentication object, and an error if there is any. func (c *FakePeerAuthentications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PeerAuthentication, err error) { diff --git a/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_requestauthentication.gen.go b/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_requestauthentication.gen.go index 30aac5db3..d3c0b3783 100644 --- a/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_requestauthentication.gen.go +++ b/pkg/clientset/versioned/typed/security/v1beta1/fake/fake_requestauthentication.gen.go @@ -25,7 +25,6 @@ import ( securityv1beta1 "istio.io/client-go/pkg/applyconfiguration/security/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeRequestAuthentications struct { ns string } -var requestauthenticationsResource = schema.GroupVersionResource{Group: "security.istio.io", Version: "v1beta1", Resource: "requestauthentications"} +var requestauthenticationsResource = v1beta1.SchemeGroupVersion.WithResource("requestauthentications") -var requestauthenticationsKind = schema.GroupVersionKind{Group: "security.istio.io", Version: "v1beta1", Kind: "RequestAuthentication"} +var requestauthenticationsKind = v1beta1.SchemeGroupVersion.WithKind("RequestAuthentication") // Get takes name of the requestAuthentication, and returns the corresponding requestAuthentication object, and an error if there is any. func (c *FakeRequestAuthentications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.RequestAuthentication, err error) { diff --git a/pkg/clientset/versioned/typed/telemetry/v1alpha1/fake/fake_telemetry.gen.go b/pkg/clientset/versioned/typed/telemetry/v1alpha1/fake/fake_telemetry.gen.go index 0e42ad7b0..c91d4780e 100644 --- a/pkg/clientset/versioned/typed/telemetry/v1alpha1/fake/fake_telemetry.gen.go +++ b/pkg/clientset/versioned/typed/telemetry/v1alpha1/fake/fake_telemetry.gen.go @@ -25,7 +25,6 @@ import ( telemetryv1alpha1 "istio.io/client-go/pkg/applyconfiguration/telemetry/v1alpha1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" - schema "k8s.io/apimachinery/pkg/runtime/schema" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" testing "k8s.io/client-go/testing" @@ -37,9 +36,9 @@ type FakeTelemetries struct { ns string } -var telemetriesResource = schema.GroupVersionResource{Group: "telemetry.istio.io", Version: "v1alpha1", Resource: "telemetries"} +var telemetriesResource = v1alpha1.SchemeGroupVersion.WithResource("telemetries") -var telemetriesKind = schema.GroupVersionKind{Group: "telemetry.istio.io", Version: "v1alpha1", Kind: "Telemetry"} +var telemetriesKind = v1alpha1.SchemeGroupVersion.WithKind("Telemetry") // Get takes name of the telemetry, and returns the corresponding telemetry object, and an error if there is any. func (c *FakeTelemetries) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Telemetry, err error) {