mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 21:35:50 +00:00
rm dead auto gen code
This commit is contained in:
parent
c855accaec
commit
578d7e266b
@ -56,7 +56,6 @@ filegroup(
|
|||||||
"//pkg/client/informers/informers_generated/internalversion:all-srcs",
|
"//pkg/client/informers/informers_generated/internalversion:all-srcs",
|
||||||
"//pkg/client/leaderelectionconfig:all-srcs",
|
"//pkg/client/leaderelectionconfig:all-srcs",
|
||||||
"//pkg/client/listers/admissionregistration/internalversion:all-srcs",
|
"//pkg/client/listers/admissionregistration/internalversion:all-srcs",
|
||||||
"//pkg/client/listers/apis/admissionregistration:all-srcs",
|
|
||||||
"//pkg/client/listers/apps/internalversion:all-srcs",
|
"//pkg/client/listers/apps/internalversion:all-srcs",
|
||||||
"//pkg/client/listers/authentication/internalversion:all-srcs",
|
"//pkg/client/listers/authentication/internalversion:all-srcs",
|
||||||
"//pkg/client/listers/authorization/internalversion:all-srcs",
|
"//pkg/client/listers/authorization/internalversion:all-srcs",
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "go_default_library",
|
|
||||||
srcs = [
|
|
||||||
"expansion_generated.go",
|
|
||||||
"initializerconfiguration.go",
|
|
||||||
],
|
|
||||||
importpath = "k8s.io/kubernetes/pkg/client/listers/apis/admissionregistration",
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
deps = [
|
|
||||||
"//pkg/apis/admissionregistration:go_default_library",
|
|
||||||
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
|
|
||||||
"//vendor/k8s.io/apimachinery/pkg/labels:go_default_library",
|
|
||||||
"//vendor/k8s.io/client-go/tools/cache:go_default_library",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "package-srcs",
|
|
||||||
srcs = glob(["**"]),
|
|
||||||
tags = ["automanaged"],
|
|
||||||
visibility = ["//visibility:private"],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "all-srcs",
|
|
||||||
srcs = [":package-srcs"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
|
@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2017 The Kubernetes 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// This file was automatically generated by lister-gen
|
|
||||||
|
|
||||||
package admissionregistration
|
|
||||||
|
|
||||||
// InitializerConfigurationListerExpansion allows custom methods to be added to
|
|
||||||
// InitializerConfigurationLister.
|
|
||||||
type InitializerConfigurationListerExpansion interface{}
|
|
||||||
|
|
||||||
// ValidatingWebhookConfigurationListerExpansion allows custom methods to be added to
|
|
||||||
// ValidatingWebhookConfigurationLister.
|
|
||||||
type ValidatingWebhookConfigurationListerExpansion interface{}
|
|
@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2017 The Kubernetes 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// This file was automatically generated by lister-gen
|
|
||||||
|
|
||||||
package admissionregistration
|
|
||||||
|
|
||||||
import (
|
|
||||||
"k8s.io/apimachinery/pkg/api/errors"
|
|
||||||
"k8s.io/apimachinery/pkg/labels"
|
|
||||||
"k8s.io/client-go/tools/cache"
|
|
||||||
admissionregistration "k8s.io/kubernetes/pkg/apis/admissionregistration"
|
|
||||||
)
|
|
||||||
|
|
||||||
// InitializerConfigurationLister helps list InitializerConfigurations.
|
|
||||||
type InitializerConfigurationLister interface {
|
|
||||||
// List lists all InitializerConfigurations in the indexer.
|
|
||||||
List(selector labels.Selector) (ret []*admissionregistration.InitializerConfiguration, err error)
|
|
||||||
// Get retrieves the InitializerConfiguration from the index for a given name.
|
|
||||||
Get(name string) (*admissionregistration.InitializerConfiguration, error)
|
|
||||||
InitializerConfigurationListerExpansion
|
|
||||||
}
|
|
||||||
|
|
||||||
// initializerConfigurationLister implements the InitializerConfigurationLister interface.
|
|
||||||
type initializerConfigurationLister struct {
|
|
||||||
indexer cache.Indexer
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewInitializerConfigurationLister returns a new InitializerConfigurationLister.
|
|
||||||
func NewInitializerConfigurationLister(indexer cache.Indexer) InitializerConfigurationLister {
|
|
||||||
return &initializerConfigurationLister{indexer: indexer}
|
|
||||||
}
|
|
||||||
|
|
||||||
// List lists all InitializerConfigurations in the indexer.
|
|
||||||
func (s *initializerConfigurationLister) List(selector labels.Selector) (ret []*admissionregistration.InitializerConfiguration, err error) {
|
|
||||||
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
|
|
||||||
ret = append(ret, m.(*admissionregistration.InitializerConfiguration))
|
|
||||||
})
|
|
||||||
return ret, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get retrieves the InitializerConfiguration from the index for a given name.
|
|
||||||
func (s *initializerConfigurationLister) Get(name string) (*admissionregistration.InitializerConfiguration, error) {
|
|
||||||
obj, exists, err := s.indexer.GetByKey(name)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if !exists {
|
|
||||||
return nil, errors.NewNotFound(admissionregistration.Resource("initializerconfiguration"), name)
|
|
||||||
}
|
|
||||||
return obj.(*admissionregistration.InitializerConfiguration), nil
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user