mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	snapshot clientsets pending context migration
https://github.com/kubernetes/enhancements/blob/master/keps/sig-api-machinery/20200123-client-go-ctx.md Part of #46503
This commit is contained in:
		@@ -390,6 +390,20 @@ staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook
 | 
				
			|||||||
staging/src/k8s.io/cli-runtime/pkg/genericclioptions
 | 
					staging/src/k8s.io/cli-runtime/pkg/genericclioptions
 | 
				
			||||||
staging/src/k8s.io/cli-runtime/pkg/printers
 | 
					staging/src/k8s.io/cli-runtime/pkg/printers
 | 
				
			||||||
staging/src/k8s.io/cli-runtime/pkg/resource
 | 
					staging/src/k8s.io/cli-runtime/pkg/resource
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authentication/v1
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authentication/v1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authentication/v1beta1
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authentication/v1beta1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authorization/v1
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authorization/v1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authorization/v1beta1
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/authorization/v1beta1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/certificates/v1beta1
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/certificates/v1beta1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/core/v1
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/core/v1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/extensions/v1beta1/fake
 | 
				
			||||||
 | 
					staging/src/k8s.io/client-go/deprecated/typed/policy/v1beta1/fake
 | 
				
			||||||
staging/src/k8s.io/client-go/discovery
 | 
					staging/src/k8s.io/client-go/discovery
 | 
				
			||||||
staging/src/k8s.io/client-go/discovery/fake
 | 
					staging/src/k8s.io/client-go/discovery/fake
 | 
				
			||||||
staging/src/k8s.io/client-go/dynamic
 | 
					staging/src/k8s.io/client-go/dynamic
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,6 +40,7 @@ filegroup(
 | 
				
			|||||||
        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions:all-srcs",
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver:all-srcs",
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset:all-srcs",
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions:all-srcs",
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/listers/apiextensions/v1:all-srcs",
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/listers/apiextensions/v1:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/listers/apiextensions/v1beta1:all-srcs",
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/listers/apiextensions/v1beta1:all-srcs",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "clientset.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated",
 | 
				
			||||||
 | 
					    visibility = [":__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/discovery:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/fake:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,111 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package deprecated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"fmt"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1"
 | 
				
			||||||
 | 
						apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						discovery "k8s.io/client-go/discovery"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						flowcontrol "k8s.io/client-go/util/flowcontrol"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type Interface interface {
 | 
				
			||||||
 | 
						Discovery() discovery.DiscoveryInterface
 | 
				
			||||||
 | 
						ApiextensionsV1beta1() apiextensionsv1beta1.ApiextensionsV1beta1Interface
 | 
				
			||||||
 | 
						ApiextensionsV1() apiextensionsv1.ApiextensionsV1Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Clientset contains the clients for groups. Each group has exactly one
 | 
				
			||||||
 | 
					// version included in a Clientset.
 | 
				
			||||||
 | 
					type Clientset struct {
 | 
				
			||||||
 | 
						*discovery.DiscoveryClient
 | 
				
			||||||
 | 
						apiextensionsV1beta1 *apiextensionsv1beta1.ApiextensionsV1beta1Client
 | 
				
			||||||
 | 
						apiextensionsV1      *apiextensionsv1.ApiextensionsV1Client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ApiextensionsV1beta1 retrieves the ApiextensionsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) ApiextensionsV1beta1() apiextensionsv1beta1.ApiextensionsV1beta1Interface {
 | 
				
			||||||
 | 
						return c.apiextensionsV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ApiextensionsV1 retrieves the ApiextensionsV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) ApiextensionsV1() apiextensionsv1.ApiextensionsV1Interface {
 | 
				
			||||||
 | 
						return c.apiextensionsV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Discovery retrieves the DiscoveryClient
 | 
				
			||||||
 | 
					func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.DiscoveryClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new Clientset for the given config.
 | 
				
			||||||
 | 
					// If config's RateLimiter is not set and QPS and Burst are acceptable,
 | 
				
			||||||
 | 
					// NewForConfig will generate a rate-limiter in configShallowCopy.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*Clientset, error) {
 | 
				
			||||||
 | 
						configShallowCopy := *c
 | 
				
			||||||
 | 
						if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
 | 
				
			||||||
 | 
							if configShallowCopy.Burst <= 0 {
 | 
				
			||||||
 | 
								return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						var cs Clientset
 | 
				
			||||||
 | 
						var err error
 | 
				
			||||||
 | 
						cs.apiextensionsV1beta1, err = apiextensionsv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.apiextensionsV1, err = apiextensionsv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &cs, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new Clientset for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *Clientset {
 | 
				
			||||||
 | 
						var cs Clientset
 | 
				
			||||||
 | 
						cs.apiextensionsV1beta1 = apiextensionsv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.apiextensionsV1 = apiextensionsv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
 | 
				
			||||||
 | 
						return &cs
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new Clientset for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *Clientset {
 | 
				
			||||||
 | 
						var cs Clientset
 | 
				
			||||||
 | 
						cs.apiextensionsV1beta1 = apiextensionsv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.apiextensionsV1 = apiextensionsv1.New(c)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
 | 
				
			||||||
 | 
						return &cs
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated clientset.
 | 
				
			||||||
 | 
					package deprecated
 | 
				
			||||||
@@ -0,0 +1,45 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "clientset_generated.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "register.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/discovery:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/discovery/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,89 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						clientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated"
 | 
				
			||||||
 | 
						apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1"
 | 
				
			||||||
 | 
						fakeapiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1/fake"
 | 
				
			||||||
 | 
						apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						fakeapiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1/fake"
 | 
				
			||||||
 | 
						"k8s.io/apimachinery/pkg/runtime"
 | 
				
			||||||
 | 
						"k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						"k8s.io/client-go/discovery"
 | 
				
			||||||
 | 
						fakediscovery "k8s.io/client-go/discovery/fake"
 | 
				
			||||||
 | 
						"k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewSimpleClientset returns a clientset that will respond with the provided objects.
 | 
				
			||||||
 | 
					// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
 | 
				
			||||||
 | 
					// without applying any validations and/or defaults. It shouldn't be considered a replacement
 | 
				
			||||||
 | 
					// for a real clientset and is mostly useful in simple unit tests.
 | 
				
			||||||
 | 
					func NewSimpleClientset(objects ...runtime.Object) *Clientset {
 | 
				
			||||||
 | 
						o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder())
 | 
				
			||||||
 | 
						for _, obj := range objects {
 | 
				
			||||||
 | 
							if err := o.Add(obj); err != nil {
 | 
				
			||||||
 | 
								panic(err)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs := &Clientset{tracker: o}
 | 
				
			||||||
 | 
						cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
 | 
				
			||||||
 | 
						cs.AddReactor("*", "*", testing.ObjectReaction(o))
 | 
				
			||||||
 | 
						cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
 | 
				
			||||||
 | 
							gvr := action.GetResource()
 | 
				
			||||||
 | 
							ns := action.GetNamespace()
 | 
				
			||||||
 | 
							watch, err := o.Watch(gvr, ns)
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								return false, nil, err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							return true, watch, nil
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return cs
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Clientset implements clientset.Interface. Meant to be embedded into a
 | 
				
			||||||
 | 
					// struct to get a default implementation. This makes faking out just the method
 | 
				
			||||||
 | 
					// you want to test easier.
 | 
				
			||||||
 | 
					type Clientset struct {
 | 
				
			||||||
 | 
						testing.Fake
 | 
				
			||||||
 | 
						discovery *fakediscovery.FakeDiscovery
 | 
				
			||||||
 | 
						tracker   testing.ObjectTracker
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
				
			||||||
 | 
						return c.discovery
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *Clientset) Tracker() testing.ObjectTracker {
 | 
				
			||||||
 | 
						return c.tracker
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var _ clientset.Interface = &Clientset{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ApiextensionsV1beta1 retrieves the ApiextensionsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) ApiextensionsV1beta1() apiextensionsv1beta1.ApiextensionsV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeapiextensionsv1beta1.FakeApiextensionsV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ApiextensionsV1 retrieves the ApiextensionsV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) ApiextensionsV1() apiextensionsv1.ApiextensionsV1Interface {
 | 
				
			||||||
 | 
						return &fakeapiextensionsv1.FakeApiextensionsV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated fake clientset.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,58 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
				
			||||||
 | 
						apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						runtime "k8s.io/apimachinery/pkg/runtime"
 | 
				
			||||||
 | 
						schema "k8s.io/apimachinery/pkg/runtime/schema"
 | 
				
			||||||
 | 
						serializer "k8s.io/apimachinery/pkg/runtime/serializer"
 | 
				
			||||||
 | 
						utilruntime "k8s.io/apimachinery/pkg/util/runtime"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var scheme = runtime.NewScheme()
 | 
				
			||||||
 | 
					var codecs = serializer.NewCodecFactory(scheme)
 | 
				
			||||||
 | 
					var parameterCodec = runtime.NewParameterCodec(scheme)
 | 
				
			||||||
 | 
					var localSchemeBuilder = runtime.SchemeBuilder{
 | 
				
			||||||
 | 
						apiextensionsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						apiextensionsv1.AddToScheme,
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AddToScheme adds all types of this clientset into the given scheme. This allows composition
 | 
				
			||||||
 | 
					// of clientsets, like in:
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   import (
 | 
				
			||||||
 | 
					//     "k8s.io/client-go/kubernetes"
 | 
				
			||||||
 | 
					//     clientsetscheme "k8s.io/client-go/kubernetes/scheme"
 | 
				
			||||||
 | 
					//     aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
 | 
				
			||||||
 | 
					//   )
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   kclientset, _ := kubernetes.NewForConfig(c)
 | 
				
			||||||
 | 
					//   _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
 | 
				
			||||||
 | 
					// correctly.
 | 
				
			||||||
 | 
					var AddToScheme = localSchemeBuilder.AddToScheme
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
 | 
				
			||||||
 | 
						utilruntime.Must(AddToScheme(scheme))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "register.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/util/runtime: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package contains the scheme of the automatically generated clientset.
 | 
				
			||||||
 | 
					package scheme
 | 
				
			||||||
@@ -0,0 +1,58 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package scheme
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
				
			||||||
 | 
						apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						runtime "k8s.io/apimachinery/pkg/runtime"
 | 
				
			||||||
 | 
						schema "k8s.io/apimachinery/pkg/runtime/schema"
 | 
				
			||||||
 | 
						serializer "k8s.io/apimachinery/pkg/runtime/serializer"
 | 
				
			||||||
 | 
						utilruntime "k8s.io/apimachinery/pkg/util/runtime"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var Scheme = runtime.NewScheme()
 | 
				
			||||||
 | 
					var Codecs = serializer.NewCodecFactory(Scheme)
 | 
				
			||||||
 | 
					var ParameterCodec = runtime.NewParameterCodec(Scheme)
 | 
				
			||||||
 | 
					var localSchemeBuilder = runtime.SchemeBuilder{
 | 
				
			||||||
 | 
						apiextensionsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						apiextensionsv1.AddToScheme,
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AddToScheme adds all types of this clientset into the given scheme. This allows composition
 | 
				
			||||||
 | 
					// of clientsets, like in:
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   import (
 | 
				
			||||||
 | 
					//     "k8s.io/client-go/kubernetes"
 | 
				
			||||||
 | 
					//     clientsetscheme "k8s.io/client-go/kubernetes/scheme"
 | 
				
			||||||
 | 
					//     aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
 | 
				
			||||||
 | 
					//   )
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   kclientset, _ := kubernetes.NewForConfig(c)
 | 
				
			||||||
 | 
					//   _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
 | 
				
			||||||
 | 
					// correctly.
 | 
				
			||||||
 | 
					var AddToScheme = localSchemeBuilder.AddToScheme
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
 | 
				
			||||||
 | 
						utilruntime.Must(AddToScheme(Scheme))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "apiextensions_client.go",
 | 
				
			||||||
 | 
					        "customresourcedefinition.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,89 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
				
			||||||
 | 
						"k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ApiextensionsV1Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						CustomResourceDefinitionsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ApiextensionsV1Client is used to interact with features provided by the apiextensions.k8s.io group.
 | 
				
			||||||
 | 
					type ApiextensionsV1Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *ApiextensionsV1Client) CustomResourceDefinitions() CustomResourceDefinitionInterface {
 | 
				
			||||||
 | 
						return newCustomResourceDefinitions(c)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new ApiextensionsV1Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*ApiextensionsV1Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &ApiextensionsV1Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new ApiextensionsV1Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *ApiextensionsV1Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new ApiextensionsV1Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *ApiextensionsV1Client {
 | 
				
			||||||
 | 
						return &ApiextensionsV1Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *ApiextensionsV1Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,181 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
				
			||||||
 | 
						scheme "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type CustomResourceDefinitionsGetter interface {
 | 
				
			||||||
 | 
						CustomResourceDefinitions() CustomResourceDefinitionInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CustomResourceDefinitionInterface has methods to work with CustomResourceDefinition resources.
 | 
				
			||||||
 | 
					type CustomResourceDefinitionInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.CustomResourceDefinition) (*v1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						Update(*v1.CustomResourceDefinition) (*v1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1.CustomResourceDefinition) (*v1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.CustomResourceDefinitionList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.CustomResourceDefinition, err error)
 | 
				
			||||||
 | 
						CustomResourceDefinitionExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// customResourceDefinitions implements CustomResourceDefinitionInterface
 | 
				
			||||||
 | 
					type customResourceDefinitions struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newCustomResourceDefinitions returns a CustomResourceDefinitions
 | 
				
			||||||
 | 
					func newCustomResourceDefinitions(c *ApiextensionsV1Client) *customResourceDefinitions {
 | 
				
			||||||
 | 
						return &customResourceDefinitions{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Get(name string, options metav1.GetOptions) (result *v1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) List(opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.CustomResourceDefinitionList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested customResourceDefinitions.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Create(customResourceDefinition *v1.CustomResourceDefinition) (result *v1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Body(customResourceDefinition).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a customResourceDefinition and updates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Update(customResourceDefinition *v1.CustomResourceDefinition) (result *v1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(customResourceDefinition.Name).
 | 
				
			||||||
 | 
							Body(customResourceDefinition).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) UpdateStatus(customResourceDefinition *v1.CustomResourceDefinition) (result *v1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(customResourceDefinition.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(customResourceDefinition).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the customResourceDefinition and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched customResourceDefinition.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "fake_apiextensions_client.go",
 | 
				
			||||||
 | 
					        "fake_customresourcedefinition.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package fake has the automatically generated clients.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						testing "k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type FakeApiextensionsV1 struct {
 | 
				
			||||||
 | 
						*testing.Fake
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeApiextensionsV1) CustomResourceDefinitions() v1.CustomResourceDefinitionInterface {
 | 
				
			||||||
 | 
						return &FakeCustomResourceDefinitions{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *FakeApiextensionsV1) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						var ret *rest.RESTClient
 | 
				
			||||||
 | 
						return ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,131 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeCustomResourceDefinitions implements CustomResourceDefinitionInterface
 | 
				
			||||||
 | 
					type FakeCustomResourceDefinitions struct {
 | 
				
			||||||
 | 
						Fake *FakeApiextensionsV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var customresourcedefinitionsResource = schema.GroupVersionResource{Group: "apiextensions.k8s.io", Version: "v1", Resource: "customresourcedefinitions"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var customresourcedefinitionsKind = schema.GroupVersionKind{Group: "apiextensions.k8s.io", Version: "v1", Kind: "CustomResourceDefinition"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Get(name string, options v1.GetOptions) (result *apiextensionsv1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), &apiextensionsv1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*apiextensionsv1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) List(opts v1.ListOptions) (result *apiextensionsv1.CustomResourceDefinitionList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootListAction(customresourcedefinitionsResource, customresourcedefinitionsKind, opts), &apiextensionsv1.CustomResourceDefinitionList{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &apiextensionsv1.CustomResourceDefinitionList{ListMeta: obj.(*apiextensionsv1.CustomResourceDefinitionList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*apiextensionsv1.CustomResourceDefinitionList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested customResourceDefinitions.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewRootWatchAction(customresourcedefinitionsResource, opts))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Create(customResourceDefinition *apiextensionsv1.CustomResourceDefinition) (result *apiextensionsv1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootCreateAction(customresourcedefinitionsResource, customResourceDefinition), &apiextensionsv1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*apiextensionsv1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a customResourceDefinition and updates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Update(customResourceDefinition *apiextensionsv1.CustomResourceDefinition) (result *apiextensionsv1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateAction(customresourcedefinitionsResource, customResourceDefinition), &apiextensionsv1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*apiextensionsv1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) UpdateStatus(customResourceDefinition *apiextensionsv1.CustomResourceDefinition) (*apiextensionsv1.CustomResourceDefinition, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateSubresourceAction(customresourcedefinitionsResource, "status", customResourceDefinition), &apiextensionsv1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*apiextensionsv1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the customResourceDefinition and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootDeleteAction(customresourcedefinitionsResource, name), &apiextensionsv1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewRootDeleteCollectionAction(customresourcedefinitionsResource, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &apiextensionsv1.CustomResourceDefinitionList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched customResourceDefinition.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apiextensionsv1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, name, pt, data, subresources...), &apiextensionsv1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*apiextensionsv1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type CustomResourceDefinitionExpansion interface{}
 | 
				
			||||||
@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "apiextensions_client.go",
 | 
				
			||||||
 | 
					        "customresourcedefinition.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,89 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						"k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ApiextensionsV1beta1Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						CustomResourceDefinitionsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ApiextensionsV1beta1Client is used to interact with features provided by the apiextensions.k8s.io group.
 | 
				
			||||||
 | 
					type ApiextensionsV1beta1Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *ApiextensionsV1beta1Client) CustomResourceDefinitions() CustomResourceDefinitionInterface {
 | 
				
			||||||
 | 
						return newCustomResourceDefinitions(c)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new ApiextensionsV1beta1Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*ApiextensionsV1beta1Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &ApiextensionsV1beta1Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new ApiextensionsV1beta1Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *ApiextensionsV1beta1Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new ApiextensionsV1beta1Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *ApiextensionsV1beta1Client {
 | 
				
			||||||
 | 
						return &ApiextensionsV1beta1Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1beta1.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *ApiextensionsV1beta1Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,181 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						scheme "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/scheme"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type CustomResourceDefinitionsGetter interface {
 | 
				
			||||||
 | 
						CustomResourceDefinitions() CustomResourceDefinitionInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CustomResourceDefinitionInterface has methods to work with CustomResourceDefinition resources.
 | 
				
			||||||
 | 
					type CustomResourceDefinitionInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						Update(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta1.CustomResourceDefinition, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta1.CustomResourceDefinitionList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error)
 | 
				
			||||||
 | 
						CustomResourceDefinitionExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// customResourceDefinitions implements CustomResourceDefinitionInterface
 | 
				
			||||||
 | 
					type customResourceDefinitions struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newCustomResourceDefinitions returns a CustomResourceDefinitions
 | 
				
			||||||
 | 
					func newCustomResourceDefinitions(c *ApiextensionsV1beta1Client) *customResourceDefinitions {
 | 
				
			||||||
 | 
						return &customResourceDefinitions{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Get(name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) List(opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta1.CustomResourceDefinitionList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested customResourceDefinitions.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Create(customResourceDefinition *v1beta1.CustomResourceDefinition) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Body(customResourceDefinition).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a customResourceDefinition and updates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Update(customResourceDefinition *v1beta1.CustomResourceDefinition) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(customResourceDefinition.Name).
 | 
				
			||||||
 | 
							Body(customResourceDefinition).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) UpdateStatus(customResourceDefinition *v1beta1.CustomResourceDefinition) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(customResourceDefinition.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(customResourceDefinition).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the customResourceDefinition and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched customResourceDefinition.
 | 
				
			||||||
 | 
					func (c *customResourceDefinitions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.CustomResourceDefinition{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Resource("customresourcedefinitions").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
@@ -0,0 +1,38 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "fake_apiextensions_client.go",
 | 
				
			||||||
 | 
					        "fake_customresourcedefinition.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package fake has the automatically generated clients.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/deprecated/typed/apiextensions/v1beta1"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						testing "k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type FakeApiextensionsV1beta1 struct {
 | 
				
			||||||
 | 
						*testing.Fake
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeApiextensionsV1beta1) CustomResourceDefinitions() v1beta1.CustomResourceDefinitionInterface {
 | 
				
			||||||
 | 
						return &FakeCustomResourceDefinitions{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *FakeApiextensionsV1beta1) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						var ret *rest.RESTClient
 | 
				
			||||||
 | 
						return ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,131 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeCustomResourceDefinitions implements CustomResourceDefinitionInterface
 | 
				
			||||||
 | 
					type FakeCustomResourceDefinitions struct {
 | 
				
			||||||
 | 
						Fake *FakeApiextensionsV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var customresourcedefinitionsResource = schema.GroupVersionResource{Group: "apiextensions.k8s.io", Version: "v1beta1", Resource: "customresourcedefinitions"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var customresourcedefinitionsKind = schema.GroupVersionKind{Group: "apiextensions.k8s.io", Version: "v1beta1", Kind: "CustomResourceDefinition"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Get(name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), &v1beta1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) List(opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootListAction(customresourcedefinitionsResource, customresourcedefinitionsKind, opts), &v1beta1.CustomResourceDefinitionList{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &v1beta1.CustomResourceDefinitionList{ListMeta: obj.(*v1beta1.CustomResourceDefinitionList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*v1beta1.CustomResourceDefinitionList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested customResourceDefinitions.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewRootWatchAction(customresourcedefinitionsResource, opts))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a customResourceDefinition and creates it.  Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Create(customResourceDefinition *v1beta1.CustomResourceDefinition) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootCreateAction(customresourcedefinitionsResource, customResourceDefinition), &v1beta1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a customResourceDefinition and updates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Update(customResourceDefinition *v1beta1.CustomResourceDefinition) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateAction(customresourcedefinitionsResource, customResourceDefinition), &v1beta1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) UpdateStatus(customResourceDefinition *v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateSubresourceAction(customresourcedefinitionsResource, "status", customResourceDefinition), &v1beta1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the customResourceDefinition and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootDeleteAction(customresourcedefinitionsResource, name), &v1beta1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewRootDeleteCollectionAction(customresourcedefinitionsResource, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &v1beta1.CustomResourceDefinitionList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched customResourceDefinition.
 | 
				
			||||||
 | 
					func (c *FakeCustomResourceDefinitions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootPatchSubresourceAction(customresourcedefinitionsResource, name, pt, data, subresources...), &v1beta1.CustomResourceDefinition{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.CustomResourceDefinition), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type CustomResourceDefinitionExpansion interface{}
 | 
				
			||||||
@@ -9,6 +9,7 @@ filegroup(
 | 
				
			|||||||
    name = "all-srcs",
 | 
					    name = "all-srcs",
 | 
				
			||||||
    srcs = [
 | 
					    srcs = [
 | 
				
			||||||
        ":package-srcs",
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/client-go/discovery:all-srcs",
 | 
					        "//staging/src/k8s.io/client-go/discovery:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/client-go/dynamic:all-srcs",
 | 
					        "//staging/src/k8s.io/client-go/dynamic:all-srcs",
 | 
				
			||||||
        "//staging/src/k8s.io/client-go/examples/create-update-delete-deployment:all-srcs",
 | 
					        "//staging/src/k8s.io/client-go/examples/create-update-delete-deployment:all-srcs",
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										116
									
								
								staging/src/k8s.io/client-go/deprecated/BUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										116
									
								
								staging/src/k8s.io/client-go/deprecated/BUILD
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,116 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "clientset.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "import.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated",
 | 
				
			||||||
 | 
					    visibility = [":__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v2alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/certificates/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/core/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/events/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/extensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/policy/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/settings/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/discovery:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/util/flowcontrol:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/fake:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/scheme:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta2:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta2:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v2alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/certificates/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/core/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/events/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/extensions/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/policy/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/settings/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1alpha1:all-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1beta1:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
							
								
								
									
										643
									
								
								staging/src/k8s.io/client-go/deprecated/clientset.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										643
									
								
								staging/src/k8s.io/client-go/deprecated/clientset.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,643 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package deprecated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"fmt"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						admissionregistrationv1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1"
 | 
				
			||||||
 | 
						admissionregistrationv1beta1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						appsv1 "k8s.io/client-go/deprecated/typed/apps/v1"
 | 
				
			||||||
 | 
						appsv1beta1 "k8s.io/client-go/deprecated/typed/apps/v1beta1"
 | 
				
			||||||
 | 
						appsv1beta2 "k8s.io/client-go/deprecated/typed/apps/v1beta2"
 | 
				
			||||||
 | 
						auditregistrationv1alpha1 "k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1"
 | 
				
			||||||
 | 
						authenticationv1 "k8s.io/client-go/deprecated/typed/authentication/v1"
 | 
				
			||||||
 | 
						authenticationv1beta1 "k8s.io/client-go/deprecated/typed/authentication/v1beta1"
 | 
				
			||||||
 | 
						authorizationv1 "k8s.io/client-go/deprecated/typed/authorization/v1"
 | 
				
			||||||
 | 
						authorizationv1beta1 "k8s.io/client-go/deprecated/typed/authorization/v1beta1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/client-go/deprecated/typed/autoscaling/v1"
 | 
				
			||||||
 | 
						autoscalingv2beta1 "k8s.io/client-go/deprecated/typed/autoscaling/v2beta1"
 | 
				
			||||||
 | 
						autoscalingv2beta2 "k8s.io/client-go/deprecated/typed/autoscaling/v2beta2"
 | 
				
			||||||
 | 
						batchv1 "k8s.io/client-go/deprecated/typed/batch/v1"
 | 
				
			||||||
 | 
						batchv1beta1 "k8s.io/client-go/deprecated/typed/batch/v1beta1"
 | 
				
			||||||
 | 
						batchv2alpha1 "k8s.io/client-go/deprecated/typed/batch/v2alpha1"
 | 
				
			||||||
 | 
						certificatesv1beta1 "k8s.io/client-go/deprecated/typed/certificates/v1beta1"
 | 
				
			||||||
 | 
						coordinationv1 "k8s.io/client-go/deprecated/typed/coordination/v1"
 | 
				
			||||||
 | 
						coordinationv1beta1 "k8s.io/client-go/deprecated/typed/coordination/v1beta1"
 | 
				
			||||||
 | 
						corev1 "k8s.io/client-go/deprecated/typed/core/v1"
 | 
				
			||||||
 | 
						discoveryv1alpha1 "k8s.io/client-go/deprecated/typed/discovery/v1alpha1"
 | 
				
			||||||
 | 
						discoveryv1beta1 "k8s.io/client-go/deprecated/typed/discovery/v1beta1"
 | 
				
			||||||
 | 
						eventsv1beta1 "k8s.io/client-go/deprecated/typed/events/v1beta1"
 | 
				
			||||||
 | 
						extensionsv1beta1 "k8s.io/client-go/deprecated/typed/extensions/v1beta1"
 | 
				
			||||||
 | 
						flowcontrolv1alpha1 "k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1"
 | 
				
			||||||
 | 
						networkingv1 "k8s.io/client-go/deprecated/typed/networking/v1"
 | 
				
			||||||
 | 
						networkingv1beta1 "k8s.io/client-go/deprecated/typed/networking/v1beta1"
 | 
				
			||||||
 | 
						nodev1alpha1 "k8s.io/client-go/deprecated/typed/node/v1alpha1"
 | 
				
			||||||
 | 
						nodev1beta1 "k8s.io/client-go/deprecated/typed/node/v1beta1"
 | 
				
			||||||
 | 
						policyv1beta1 "k8s.io/client-go/deprecated/typed/policy/v1beta1"
 | 
				
			||||||
 | 
						rbacv1 "k8s.io/client-go/deprecated/typed/rbac/v1"
 | 
				
			||||||
 | 
						rbacv1alpha1 "k8s.io/client-go/deprecated/typed/rbac/v1alpha1"
 | 
				
			||||||
 | 
						rbacv1beta1 "k8s.io/client-go/deprecated/typed/rbac/v1beta1"
 | 
				
			||||||
 | 
						schedulingv1 "k8s.io/client-go/deprecated/typed/scheduling/v1"
 | 
				
			||||||
 | 
						schedulingv1alpha1 "k8s.io/client-go/deprecated/typed/scheduling/v1alpha1"
 | 
				
			||||||
 | 
						schedulingv1beta1 "k8s.io/client-go/deprecated/typed/scheduling/v1beta1"
 | 
				
			||||||
 | 
						settingsv1alpha1 "k8s.io/client-go/deprecated/typed/settings/v1alpha1"
 | 
				
			||||||
 | 
						storagev1 "k8s.io/client-go/deprecated/typed/storage/v1"
 | 
				
			||||||
 | 
						storagev1alpha1 "k8s.io/client-go/deprecated/typed/storage/v1alpha1"
 | 
				
			||||||
 | 
						storagev1beta1 "k8s.io/client-go/deprecated/typed/storage/v1beta1"
 | 
				
			||||||
 | 
						discovery "k8s.io/client-go/discovery"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						flowcontrol "k8s.io/client-go/util/flowcontrol"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type Interface interface {
 | 
				
			||||||
 | 
						Discovery() discovery.DiscoveryInterface
 | 
				
			||||||
 | 
						AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface
 | 
				
			||||||
 | 
						AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface
 | 
				
			||||||
 | 
						AppsV1() appsv1.AppsV1Interface
 | 
				
			||||||
 | 
						AppsV1beta1() appsv1beta1.AppsV1beta1Interface
 | 
				
			||||||
 | 
						AppsV1beta2() appsv1beta2.AppsV1beta2Interface
 | 
				
			||||||
 | 
						AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface
 | 
				
			||||||
 | 
						AuthenticationV1() authenticationv1.AuthenticationV1Interface
 | 
				
			||||||
 | 
						AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface
 | 
				
			||||||
 | 
						AuthorizationV1() authorizationv1.AuthorizationV1Interface
 | 
				
			||||||
 | 
						AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface
 | 
				
			||||||
 | 
						AutoscalingV1() autoscalingv1.AutoscalingV1Interface
 | 
				
			||||||
 | 
						AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface
 | 
				
			||||||
 | 
						AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface
 | 
				
			||||||
 | 
						BatchV1() batchv1.BatchV1Interface
 | 
				
			||||||
 | 
						BatchV1beta1() batchv1beta1.BatchV1beta1Interface
 | 
				
			||||||
 | 
						BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface
 | 
				
			||||||
 | 
						CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface
 | 
				
			||||||
 | 
						CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface
 | 
				
			||||||
 | 
						CoordinationV1() coordinationv1.CoordinationV1Interface
 | 
				
			||||||
 | 
						CoreV1() corev1.CoreV1Interface
 | 
				
			||||||
 | 
						DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface
 | 
				
			||||||
 | 
						DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface
 | 
				
			||||||
 | 
						EventsV1beta1() eventsv1beta1.EventsV1beta1Interface
 | 
				
			||||||
 | 
						ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface
 | 
				
			||||||
 | 
						FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface
 | 
				
			||||||
 | 
						NetworkingV1() networkingv1.NetworkingV1Interface
 | 
				
			||||||
 | 
						NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface
 | 
				
			||||||
 | 
						NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface
 | 
				
			||||||
 | 
						NodeV1beta1() nodev1beta1.NodeV1beta1Interface
 | 
				
			||||||
 | 
						PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface
 | 
				
			||||||
 | 
						RbacV1() rbacv1.RbacV1Interface
 | 
				
			||||||
 | 
						RbacV1beta1() rbacv1beta1.RbacV1beta1Interface
 | 
				
			||||||
 | 
						RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
 | 
				
			||||||
 | 
						SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface
 | 
				
			||||||
 | 
						SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface
 | 
				
			||||||
 | 
						SchedulingV1() schedulingv1.SchedulingV1Interface
 | 
				
			||||||
 | 
						SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
 | 
				
			||||||
 | 
						StorageV1beta1() storagev1beta1.StorageV1beta1Interface
 | 
				
			||||||
 | 
						StorageV1() storagev1.StorageV1Interface
 | 
				
			||||||
 | 
						StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Clientset contains the clients for groups. Each group has exactly one
 | 
				
			||||||
 | 
					// version included in a Clientset.
 | 
				
			||||||
 | 
					type Clientset struct {
 | 
				
			||||||
 | 
						*discovery.DiscoveryClient
 | 
				
			||||||
 | 
						admissionregistrationV1      *admissionregistrationv1.AdmissionregistrationV1Client
 | 
				
			||||||
 | 
						admissionregistrationV1beta1 *admissionregistrationv1beta1.AdmissionregistrationV1beta1Client
 | 
				
			||||||
 | 
						appsV1                       *appsv1.AppsV1Client
 | 
				
			||||||
 | 
						appsV1beta1                  *appsv1beta1.AppsV1beta1Client
 | 
				
			||||||
 | 
						appsV1beta2                  *appsv1beta2.AppsV1beta2Client
 | 
				
			||||||
 | 
						auditregistrationV1alpha1    *auditregistrationv1alpha1.AuditregistrationV1alpha1Client
 | 
				
			||||||
 | 
						authenticationV1             *authenticationv1.AuthenticationV1Client
 | 
				
			||||||
 | 
						authenticationV1beta1        *authenticationv1beta1.AuthenticationV1beta1Client
 | 
				
			||||||
 | 
						authorizationV1              *authorizationv1.AuthorizationV1Client
 | 
				
			||||||
 | 
						authorizationV1beta1         *authorizationv1beta1.AuthorizationV1beta1Client
 | 
				
			||||||
 | 
						autoscalingV1                *autoscalingv1.AutoscalingV1Client
 | 
				
			||||||
 | 
						autoscalingV2beta1           *autoscalingv2beta1.AutoscalingV2beta1Client
 | 
				
			||||||
 | 
						autoscalingV2beta2           *autoscalingv2beta2.AutoscalingV2beta2Client
 | 
				
			||||||
 | 
						batchV1                      *batchv1.BatchV1Client
 | 
				
			||||||
 | 
						batchV1beta1                 *batchv1beta1.BatchV1beta1Client
 | 
				
			||||||
 | 
						batchV2alpha1                *batchv2alpha1.BatchV2alpha1Client
 | 
				
			||||||
 | 
						certificatesV1beta1          *certificatesv1beta1.CertificatesV1beta1Client
 | 
				
			||||||
 | 
						coordinationV1beta1          *coordinationv1beta1.CoordinationV1beta1Client
 | 
				
			||||||
 | 
						coordinationV1               *coordinationv1.CoordinationV1Client
 | 
				
			||||||
 | 
						coreV1                       *corev1.CoreV1Client
 | 
				
			||||||
 | 
						discoveryV1alpha1            *discoveryv1alpha1.DiscoveryV1alpha1Client
 | 
				
			||||||
 | 
						discoveryV1beta1             *discoveryv1beta1.DiscoveryV1beta1Client
 | 
				
			||||||
 | 
						eventsV1beta1                *eventsv1beta1.EventsV1beta1Client
 | 
				
			||||||
 | 
						extensionsV1beta1            *extensionsv1beta1.ExtensionsV1beta1Client
 | 
				
			||||||
 | 
						flowcontrolV1alpha1          *flowcontrolv1alpha1.FlowcontrolV1alpha1Client
 | 
				
			||||||
 | 
						networkingV1                 *networkingv1.NetworkingV1Client
 | 
				
			||||||
 | 
						networkingV1beta1            *networkingv1beta1.NetworkingV1beta1Client
 | 
				
			||||||
 | 
						nodeV1alpha1                 *nodev1alpha1.NodeV1alpha1Client
 | 
				
			||||||
 | 
						nodeV1beta1                  *nodev1beta1.NodeV1beta1Client
 | 
				
			||||||
 | 
						policyV1beta1                *policyv1beta1.PolicyV1beta1Client
 | 
				
			||||||
 | 
						rbacV1                       *rbacv1.RbacV1Client
 | 
				
			||||||
 | 
						rbacV1beta1                  *rbacv1beta1.RbacV1beta1Client
 | 
				
			||||||
 | 
						rbacV1alpha1                 *rbacv1alpha1.RbacV1alpha1Client
 | 
				
			||||||
 | 
						schedulingV1alpha1           *schedulingv1alpha1.SchedulingV1alpha1Client
 | 
				
			||||||
 | 
						schedulingV1beta1            *schedulingv1beta1.SchedulingV1beta1Client
 | 
				
			||||||
 | 
						schedulingV1                 *schedulingv1.SchedulingV1Client
 | 
				
			||||||
 | 
						settingsV1alpha1             *settingsv1alpha1.SettingsV1alpha1Client
 | 
				
			||||||
 | 
						storageV1beta1               *storagev1beta1.StorageV1beta1Client
 | 
				
			||||||
 | 
						storageV1                    *storagev1.StorageV1Client
 | 
				
			||||||
 | 
						storageV1alpha1              *storagev1alpha1.StorageV1alpha1Client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AdmissionregistrationV1 retrieves the AdmissionregistrationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface {
 | 
				
			||||||
 | 
						return c.admissionregistrationV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
 | 
				
			||||||
 | 
						return c.admissionregistrationV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1 retrieves the AppsV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
 | 
				
			||||||
 | 
						return c.appsV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1beta1 retrieves the AppsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
 | 
				
			||||||
 | 
						return c.appsV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1beta2 retrieves the AppsV1beta2Client
 | 
				
			||||||
 | 
					func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface {
 | 
				
			||||||
 | 
						return c.appsV1beta2
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuditregistrationV1alpha1 retrieves the AuditregistrationV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.auditregistrationV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthenticationV1 retrieves the AuthenticationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
 | 
				
			||||||
 | 
						return c.authenticationV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
 | 
				
			||||||
 | 
						return c.authenticationV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthorizationV1 retrieves the AuthorizationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
 | 
				
			||||||
 | 
						return c.authorizationV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
 | 
				
			||||||
 | 
						return c.authorizationV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AutoscalingV1 retrieves the AutoscalingV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
 | 
				
			||||||
 | 
						return c.autoscalingV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
 | 
				
			||||||
 | 
						return c.autoscalingV2beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
 | 
				
			||||||
 | 
					func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface {
 | 
				
			||||||
 | 
						return c.autoscalingV2beta2
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BatchV1 retrieves the BatchV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
 | 
				
			||||||
 | 
						return c.batchV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BatchV1beta1 retrieves the BatchV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
 | 
				
			||||||
 | 
						return c.batchV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BatchV2alpha1 retrieves the BatchV2alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface {
 | 
				
			||||||
 | 
						return c.batchV2alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CertificatesV1beta1 retrieves the CertificatesV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface {
 | 
				
			||||||
 | 
						return c.certificatesV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
 | 
				
			||||||
 | 
						return c.coordinationV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CoordinationV1 retrieves the CoordinationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
 | 
				
			||||||
 | 
						return c.coordinationV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CoreV1 retrieves the CoreV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CoreV1() corev1.CoreV1Interface {
 | 
				
			||||||
 | 
						return c.coreV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DiscoveryV1alpha1 retrieves the DiscoveryV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.discoveryV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DiscoveryV1beta1 retrieves the DiscoveryV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface {
 | 
				
			||||||
 | 
						return c.discoveryV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// EventsV1beta1 retrieves the EventsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
 | 
				
			||||||
 | 
						return c.eventsV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
 | 
				
			||||||
 | 
						return c.extensionsV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FlowcontrolV1alpha1 retrieves the FlowcontrolV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.flowcontrolV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NetworkingV1 retrieves the NetworkingV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
 | 
				
			||||||
 | 
						return c.networkingV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
 | 
				
			||||||
 | 
						return c.networkingV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NodeV1alpha1 retrieves the NodeV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.nodeV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NodeV1beta1 retrieves the NodeV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NodeV1beta1() nodev1beta1.NodeV1beta1Interface {
 | 
				
			||||||
 | 
						return c.nodeV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PolicyV1beta1 retrieves the PolicyV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
 | 
				
			||||||
 | 
						return c.policyV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RbacV1 retrieves the RbacV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
 | 
				
			||||||
 | 
						return c.rbacV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RbacV1beta1 retrieves the RbacV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
 | 
				
			||||||
 | 
						return c.rbacV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RbacV1alpha1 retrieves the RbacV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.rbacV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.schedulingV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SchedulingV1beta1 retrieves the SchedulingV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface {
 | 
				
			||||||
 | 
						return c.schedulingV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SchedulingV1 retrieves the SchedulingV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
 | 
				
			||||||
 | 
						return c.schedulingV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.settingsV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StorageV1beta1 retrieves the StorageV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
 | 
				
			||||||
 | 
						return c.storageV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StorageV1 retrieves the StorageV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
 | 
				
			||||||
 | 
						return c.storageV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StorageV1alpha1 retrieves the StorageV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
 | 
				
			||||||
 | 
						return c.storageV1alpha1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Discovery retrieves the DiscoveryClient
 | 
				
			||||||
 | 
					func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.DiscoveryClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new Clientset for the given config.
 | 
				
			||||||
 | 
					// If config's RateLimiter is not set and QPS and Burst are acceptable,
 | 
				
			||||||
 | 
					// NewForConfig will generate a rate-limiter in configShallowCopy.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*Clientset, error) {
 | 
				
			||||||
 | 
						configShallowCopy := *c
 | 
				
			||||||
 | 
						if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
 | 
				
			||||||
 | 
							if configShallowCopy.Burst <= 0 {
 | 
				
			||||||
 | 
								return nil, fmt.Errorf("burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						var cs Clientset
 | 
				
			||||||
 | 
						var err error
 | 
				
			||||||
 | 
						cs.admissionregistrationV1, err = admissionregistrationv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.admissionregistrationV1beta1, err = admissionregistrationv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.appsV1, err = appsv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.appsV1beta1, err = appsv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.appsV1beta2, err = appsv1beta2.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.auditregistrationV1alpha1, err = auditregistrationv1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.authenticationV1, err = authenticationv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.authenticationV1beta1, err = authenticationv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.authorizationV1, err = authorizationv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.authorizationV1beta1, err = authorizationv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.autoscalingV1, err = autoscalingv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.autoscalingV2beta2, err = autoscalingv2beta2.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.batchV1, err = batchv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.batchV1beta1, err = batchv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.batchV2alpha1, err = batchv2alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.certificatesV1beta1, err = certificatesv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.coordinationV1beta1, err = coordinationv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.coordinationV1, err = coordinationv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.coreV1, err = corev1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.discoveryV1alpha1, err = discoveryv1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.discoveryV1beta1, err = discoveryv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.eventsV1beta1, err = eventsv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.extensionsV1beta1, err = extensionsv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.flowcontrolV1alpha1, err = flowcontrolv1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.networkingV1, err = networkingv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.networkingV1beta1, err = networkingv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.nodeV1alpha1, err = nodev1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.nodeV1beta1, err = nodev1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.policyV1beta1, err = policyv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.rbacV1, err = rbacv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.rbacV1beta1, err = rbacv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.rbacV1alpha1, err = rbacv1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.schedulingV1alpha1, err = schedulingv1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.schedulingV1beta1, err = schedulingv1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.schedulingV1, err = schedulingv1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.settingsV1alpha1, err = settingsv1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.storageV1beta1, err = storagev1beta1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.storageV1, err = storagev1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						cs.storageV1alpha1, err = storagev1alpha1.NewForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &cs, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new Clientset for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *Clientset {
 | 
				
			||||||
 | 
						var cs Clientset
 | 
				
			||||||
 | 
						cs.admissionregistrationV1 = admissionregistrationv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.appsV1 = appsv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.appsV1beta1 = appsv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.appsV1beta2 = appsv1beta2.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.authenticationV1 = authenticationv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.authenticationV1beta1 = authenticationv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.autoscalingV2beta2 = autoscalingv2beta2.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.batchV1 = batchv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.certificatesV1beta1 = certificatesv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.coordinationV1beta1 = coordinationv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.coordinationV1 = coordinationv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.coreV1 = corev1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.discoveryV1alpha1 = discoveryv1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.discoveryV1beta1 = discoveryv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.eventsV1beta1 = eventsv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.extensionsV1beta1 = extensionsv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.flowcontrolV1alpha1 = flowcontrolv1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.networkingV1 = networkingv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.networkingV1beta1 = networkingv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.nodeV1alpha1 = nodev1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.nodeV1beta1 = nodev1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.policyV1beta1 = policyv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.rbacV1 = rbacv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.rbacV1beta1 = rbacv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.rbacV1alpha1 = rbacv1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.schedulingV1alpha1 = schedulingv1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.schedulingV1beta1 = schedulingv1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.schedulingV1 = schedulingv1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.settingsV1alpha1 = settingsv1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.storageV1beta1 = storagev1beta1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.storageV1 = storagev1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
						cs.storageV1alpha1 = storagev1alpha1.NewForConfigOrDie(c)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
 | 
				
			||||||
 | 
						return &cs
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new Clientset for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *Clientset {
 | 
				
			||||||
 | 
						var cs Clientset
 | 
				
			||||||
 | 
						cs.admissionregistrationV1 = admissionregistrationv1.New(c)
 | 
				
			||||||
 | 
						cs.admissionregistrationV1beta1 = admissionregistrationv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.appsV1 = appsv1.New(c)
 | 
				
			||||||
 | 
						cs.appsV1beta1 = appsv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.appsV1beta2 = appsv1beta2.New(c)
 | 
				
			||||||
 | 
						cs.auditregistrationV1alpha1 = auditregistrationv1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.authenticationV1 = authenticationv1.New(c)
 | 
				
			||||||
 | 
						cs.authenticationV1beta1 = authenticationv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.authorizationV1 = authorizationv1.New(c)
 | 
				
			||||||
 | 
						cs.authorizationV1beta1 = authorizationv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.autoscalingV1 = autoscalingv1.New(c)
 | 
				
			||||||
 | 
						cs.autoscalingV2beta1 = autoscalingv2beta1.New(c)
 | 
				
			||||||
 | 
						cs.autoscalingV2beta2 = autoscalingv2beta2.New(c)
 | 
				
			||||||
 | 
						cs.batchV1 = batchv1.New(c)
 | 
				
			||||||
 | 
						cs.batchV1beta1 = batchv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.batchV2alpha1 = batchv2alpha1.New(c)
 | 
				
			||||||
 | 
						cs.certificatesV1beta1 = certificatesv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.coordinationV1beta1 = coordinationv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.coordinationV1 = coordinationv1.New(c)
 | 
				
			||||||
 | 
						cs.coreV1 = corev1.New(c)
 | 
				
			||||||
 | 
						cs.discoveryV1alpha1 = discoveryv1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.discoveryV1beta1 = discoveryv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.eventsV1beta1 = eventsv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.extensionsV1beta1 = extensionsv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.flowcontrolV1alpha1 = flowcontrolv1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.networkingV1 = networkingv1.New(c)
 | 
				
			||||||
 | 
						cs.networkingV1beta1 = networkingv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.nodeV1alpha1 = nodev1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.nodeV1beta1 = nodev1beta1.New(c)
 | 
				
			||||||
 | 
						cs.policyV1beta1 = policyv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.rbacV1 = rbacv1.New(c)
 | 
				
			||||||
 | 
						cs.rbacV1beta1 = rbacv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.rbacV1alpha1 = rbacv1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.schedulingV1alpha1 = schedulingv1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.schedulingV1beta1 = schedulingv1beta1.New(c)
 | 
				
			||||||
 | 
						cs.schedulingV1 = schedulingv1.New(c)
 | 
				
			||||||
 | 
						cs.settingsV1alpha1 = settingsv1alpha1.New(c)
 | 
				
			||||||
 | 
						cs.storageV1beta1 = storagev1beta1.New(c)
 | 
				
			||||||
 | 
						cs.storageV1 = storagev1.New(c)
 | 
				
			||||||
 | 
						cs.storageV1alpha1 = storagev1alpha1.New(c)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
 | 
				
			||||||
 | 
						return &cs
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/doc.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/doc.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated clientset.
 | 
				
			||||||
 | 
					package deprecated
 | 
				
			||||||
							
								
								
									
										159
									
								
								staging/src/k8s.io/client-go/deprecated/fake/BUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										159
									
								
								staging/src/k8s.io/client-go/deprecated/fake/BUILD
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,159 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "clientset_generated.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "register.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/auditregistration/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authentication/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authentication/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authorization/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authorization/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v2beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v2beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/batch/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/batch/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/batch/v2alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/certificates/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/coordination/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/coordination/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/core/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/discovery/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/discovery/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/events/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/extensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/flowcontrol/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/networking/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/networking/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/node/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/node/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/policy/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/rbac/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/rbac/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/rbac/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/scheduling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/scheduling/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/scheduling/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/settings/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/storage/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/storage/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/storage/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta2/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authentication/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/authorization/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/autoscaling/v2beta2/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v2alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/batch/v2alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/certificates/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/certificates/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/coordination/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/core/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/core/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/discovery/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/events/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/events/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/extensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/extensions/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/networking/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/node/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/policy/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/policy/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/rbac/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/scheduling/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/settings/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/settings/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1alpha1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/storage/v1beta1/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/discovery:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/discovery/fake:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,355 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"k8s.io/apimachinery/pkg/runtime"
 | 
				
			||||||
 | 
						"k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						clientset "k8s.io/client-go/deprecated"
 | 
				
			||||||
 | 
						admissionregistrationv1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1"
 | 
				
			||||||
 | 
						fakeadmissionregistrationv1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1/fake"
 | 
				
			||||||
 | 
						admissionregistrationv1beta1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						fakeadmissionregistrationv1beta1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1/fake"
 | 
				
			||||||
 | 
						appsv1 "k8s.io/client-go/deprecated/typed/apps/v1"
 | 
				
			||||||
 | 
						fakeappsv1 "k8s.io/client-go/deprecated/typed/apps/v1/fake"
 | 
				
			||||||
 | 
						appsv1beta1 "k8s.io/client-go/deprecated/typed/apps/v1beta1"
 | 
				
			||||||
 | 
						fakeappsv1beta1 "k8s.io/client-go/deprecated/typed/apps/v1beta1/fake"
 | 
				
			||||||
 | 
						appsv1beta2 "k8s.io/client-go/deprecated/typed/apps/v1beta2"
 | 
				
			||||||
 | 
						fakeappsv1beta2 "k8s.io/client-go/deprecated/typed/apps/v1beta2/fake"
 | 
				
			||||||
 | 
						auditregistrationv1alpha1 "k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1"
 | 
				
			||||||
 | 
						fakeauditregistrationv1alpha1 "k8s.io/client-go/deprecated/typed/auditregistration/v1alpha1/fake"
 | 
				
			||||||
 | 
						authenticationv1 "k8s.io/client-go/deprecated/typed/authentication/v1"
 | 
				
			||||||
 | 
						fakeauthenticationv1 "k8s.io/client-go/deprecated/typed/authentication/v1/fake"
 | 
				
			||||||
 | 
						authenticationv1beta1 "k8s.io/client-go/deprecated/typed/authentication/v1beta1"
 | 
				
			||||||
 | 
						fakeauthenticationv1beta1 "k8s.io/client-go/deprecated/typed/authentication/v1beta1/fake"
 | 
				
			||||||
 | 
						authorizationv1 "k8s.io/client-go/deprecated/typed/authorization/v1"
 | 
				
			||||||
 | 
						fakeauthorizationv1 "k8s.io/client-go/deprecated/typed/authorization/v1/fake"
 | 
				
			||||||
 | 
						authorizationv1beta1 "k8s.io/client-go/deprecated/typed/authorization/v1beta1"
 | 
				
			||||||
 | 
						fakeauthorizationv1beta1 "k8s.io/client-go/deprecated/typed/authorization/v1beta1/fake"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/client-go/deprecated/typed/autoscaling/v1"
 | 
				
			||||||
 | 
						fakeautoscalingv1 "k8s.io/client-go/deprecated/typed/autoscaling/v1/fake"
 | 
				
			||||||
 | 
						autoscalingv2beta1 "k8s.io/client-go/deprecated/typed/autoscaling/v2beta1"
 | 
				
			||||||
 | 
						fakeautoscalingv2beta1 "k8s.io/client-go/deprecated/typed/autoscaling/v2beta1/fake"
 | 
				
			||||||
 | 
						autoscalingv2beta2 "k8s.io/client-go/deprecated/typed/autoscaling/v2beta2"
 | 
				
			||||||
 | 
						fakeautoscalingv2beta2 "k8s.io/client-go/deprecated/typed/autoscaling/v2beta2/fake"
 | 
				
			||||||
 | 
						batchv1 "k8s.io/client-go/deprecated/typed/batch/v1"
 | 
				
			||||||
 | 
						fakebatchv1 "k8s.io/client-go/deprecated/typed/batch/v1/fake"
 | 
				
			||||||
 | 
						batchv1beta1 "k8s.io/client-go/deprecated/typed/batch/v1beta1"
 | 
				
			||||||
 | 
						fakebatchv1beta1 "k8s.io/client-go/deprecated/typed/batch/v1beta1/fake"
 | 
				
			||||||
 | 
						batchv2alpha1 "k8s.io/client-go/deprecated/typed/batch/v2alpha1"
 | 
				
			||||||
 | 
						fakebatchv2alpha1 "k8s.io/client-go/deprecated/typed/batch/v2alpha1/fake"
 | 
				
			||||||
 | 
						certificatesv1beta1 "k8s.io/client-go/deprecated/typed/certificates/v1beta1"
 | 
				
			||||||
 | 
						fakecertificatesv1beta1 "k8s.io/client-go/deprecated/typed/certificates/v1beta1/fake"
 | 
				
			||||||
 | 
						coordinationv1 "k8s.io/client-go/deprecated/typed/coordination/v1"
 | 
				
			||||||
 | 
						fakecoordinationv1 "k8s.io/client-go/deprecated/typed/coordination/v1/fake"
 | 
				
			||||||
 | 
						coordinationv1beta1 "k8s.io/client-go/deprecated/typed/coordination/v1beta1"
 | 
				
			||||||
 | 
						fakecoordinationv1beta1 "k8s.io/client-go/deprecated/typed/coordination/v1beta1/fake"
 | 
				
			||||||
 | 
						corev1 "k8s.io/client-go/deprecated/typed/core/v1"
 | 
				
			||||||
 | 
						fakecorev1 "k8s.io/client-go/deprecated/typed/core/v1/fake"
 | 
				
			||||||
 | 
						discoveryv1alpha1 "k8s.io/client-go/deprecated/typed/discovery/v1alpha1"
 | 
				
			||||||
 | 
						fakediscoveryv1alpha1 "k8s.io/client-go/deprecated/typed/discovery/v1alpha1/fake"
 | 
				
			||||||
 | 
						discoveryv1beta1 "k8s.io/client-go/deprecated/typed/discovery/v1beta1"
 | 
				
			||||||
 | 
						fakediscoveryv1beta1 "k8s.io/client-go/deprecated/typed/discovery/v1beta1/fake"
 | 
				
			||||||
 | 
						eventsv1beta1 "k8s.io/client-go/deprecated/typed/events/v1beta1"
 | 
				
			||||||
 | 
						fakeeventsv1beta1 "k8s.io/client-go/deprecated/typed/events/v1beta1/fake"
 | 
				
			||||||
 | 
						extensionsv1beta1 "k8s.io/client-go/deprecated/typed/extensions/v1beta1"
 | 
				
			||||||
 | 
						fakeextensionsv1beta1 "k8s.io/client-go/deprecated/typed/extensions/v1beta1/fake"
 | 
				
			||||||
 | 
						flowcontrolv1alpha1 "k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1"
 | 
				
			||||||
 | 
						fakeflowcontrolv1alpha1 "k8s.io/client-go/deprecated/typed/flowcontrol/v1alpha1/fake"
 | 
				
			||||||
 | 
						networkingv1 "k8s.io/client-go/deprecated/typed/networking/v1"
 | 
				
			||||||
 | 
						fakenetworkingv1 "k8s.io/client-go/deprecated/typed/networking/v1/fake"
 | 
				
			||||||
 | 
						networkingv1beta1 "k8s.io/client-go/deprecated/typed/networking/v1beta1"
 | 
				
			||||||
 | 
						fakenetworkingv1beta1 "k8s.io/client-go/deprecated/typed/networking/v1beta1/fake"
 | 
				
			||||||
 | 
						nodev1alpha1 "k8s.io/client-go/deprecated/typed/node/v1alpha1"
 | 
				
			||||||
 | 
						fakenodev1alpha1 "k8s.io/client-go/deprecated/typed/node/v1alpha1/fake"
 | 
				
			||||||
 | 
						nodev1beta1 "k8s.io/client-go/deprecated/typed/node/v1beta1"
 | 
				
			||||||
 | 
						fakenodev1beta1 "k8s.io/client-go/deprecated/typed/node/v1beta1/fake"
 | 
				
			||||||
 | 
						policyv1beta1 "k8s.io/client-go/deprecated/typed/policy/v1beta1"
 | 
				
			||||||
 | 
						fakepolicyv1beta1 "k8s.io/client-go/deprecated/typed/policy/v1beta1/fake"
 | 
				
			||||||
 | 
						rbacv1 "k8s.io/client-go/deprecated/typed/rbac/v1"
 | 
				
			||||||
 | 
						fakerbacv1 "k8s.io/client-go/deprecated/typed/rbac/v1/fake"
 | 
				
			||||||
 | 
						rbacv1alpha1 "k8s.io/client-go/deprecated/typed/rbac/v1alpha1"
 | 
				
			||||||
 | 
						fakerbacv1alpha1 "k8s.io/client-go/deprecated/typed/rbac/v1alpha1/fake"
 | 
				
			||||||
 | 
						rbacv1beta1 "k8s.io/client-go/deprecated/typed/rbac/v1beta1"
 | 
				
			||||||
 | 
						fakerbacv1beta1 "k8s.io/client-go/deprecated/typed/rbac/v1beta1/fake"
 | 
				
			||||||
 | 
						schedulingv1 "k8s.io/client-go/deprecated/typed/scheduling/v1"
 | 
				
			||||||
 | 
						fakeschedulingv1 "k8s.io/client-go/deprecated/typed/scheduling/v1/fake"
 | 
				
			||||||
 | 
						schedulingv1alpha1 "k8s.io/client-go/deprecated/typed/scheduling/v1alpha1"
 | 
				
			||||||
 | 
						fakeschedulingv1alpha1 "k8s.io/client-go/deprecated/typed/scheduling/v1alpha1/fake"
 | 
				
			||||||
 | 
						schedulingv1beta1 "k8s.io/client-go/deprecated/typed/scheduling/v1beta1"
 | 
				
			||||||
 | 
						fakeschedulingv1beta1 "k8s.io/client-go/deprecated/typed/scheduling/v1beta1/fake"
 | 
				
			||||||
 | 
						settingsv1alpha1 "k8s.io/client-go/deprecated/typed/settings/v1alpha1"
 | 
				
			||||||
 | 
						fakesettingsv1alpha1 "k8s.io/client-go/deprecated/typed/settings/v1alpha1/fake"
 | 
				
			||||||
 | 
						storagev1 "k8s.io/client-go/deprecated/typed/storage/v1"
 | 
				
			||||||
 | 
						fakestoragev1 "k8s.io/client-go/deprecated/typed/storage/v1/fake"
 | 
				
			||||||
 | 
						storagev1alpha1 "k8s.io/client-go/deprecated/typed/storage/v1alpha1"
 | 
				
			||||||
 | 
						fakestoragev1alpha1 "k8s.io/client-go/deprecated/typed/storage/v1alpha1/fake"
 | 
				
			||||||
 | 
						storagev1beta1 "k8s.io/client-go/deprecated/typed/storage/v1beta1"
 | 
				
			||||||
 | 
						fakestoragev1beta1 "k8s.io/client-go/deprecated/typed/storage/v1beta1/fake"
 | 
				
			||||||
 | 
						"k8s.io/client-go/discovery"
 | 
				
			||||||
 | 
						fakediscovery "k8s.io/client-go/discovery/fake"
 | 
				
			||||||
 | 
						"k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewSimpleClientset returns a clientset that will respond with the provided objects.
 | 
				
			||||||
 | 
					// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
 | 
				
			||||||
 | 
					// without applying any validations and/or defaults. It shouldn't be considered a replacement
 | 
				
			||||||
 | 
					// for a real clientset and is mostly useful in simple unit tests.
 | 
				
			||||||
 | 
					func NewSimpleClientset(objects ...runtime.Object) *Clientset {
 | 
				
			||||||
 | 
						o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder())
 | 
				
			||||||
 | 
						for _, obj := range objects {
 | 
				
			||||||
 | 
							if err := o.Add(obj); err != nil {
 | 
				
			||||||
 | 
								panic(err)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cs := &Clientset{tracker: o}
 | 
				
			||||||
 | 
						cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
 | 
				
			||||||
 | 
						cs.AddReactor("*", "*", testing.ObjectReaction(o))
 | 
				
			||||||
 | 
						cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
 | 
				
			||||||
 | 
							gvr := action.GetResource()
 | 
				
			||||||
 | 
							ns := action.GetNamespace()
 | 
				
			||||||
 | 
							watch, err := o.Watch(gvr, ns)
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								return false, nil, err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							return true, watch, nil
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return cs
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Clientset implements clientset.Interface. Meant to be embedded into a
 | 
				
			||||||
 | 
					// struct to get a default implementation. This makes faking out just the method
 | 
				
			||||||
 | 
					// you want to test easier.
 | 
				
			||||||
 | 
					type Clientset struct {
 | 
				
			||||||
 | 
						testing.Fake
 | 
				
			||||||
 | 
						discovery *fakediscovery.FakeDiscovery
 | 
				
			||||||
 | 
						tracker   testing.ObjectTracker
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
				
			||||||
 | 
						return c.discovery
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *Clientset) Tracker() testing.ObjectTracker {
 | 
				
			||||||
 | 
						return c.tracker
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var _ clientset.Interface = &Clientset{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AdmissionregistrationV1 retrieves the AdmissionregistrationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AdmissionregistrationV1() admissionregistrationv1.AdmissionregistrationV1Interface {
 | 
				
			||||||
 | 
						return &fakeadmissionregistrationv1.FakeAdmissionregistrationV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AdmissionregistrationV1beta1 retrieves the AdmissionregistrationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AdmissionregistrationV1beta1() admissionregistrationv1beta1.AdmissionregistrationV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeadmissionregistrationv1beta1.FakeAdmissionregistrationV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1 retrieves the AppsV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AppsV1() appsv1.AppsV1Interface {
 | 
				
			||||||
 | 
						return &fakeappsv1.FakeAppsV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1beta1 retrieves the AppsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AppsV1beta1() appsv1beta1.AppsV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeappsv1beta1.FakeAppsV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1beta2 retrieves the AppsV1beta2Client
 | 
				
			||||||
 | 
					func (c *Clientset) AppsV1beta2() appsv1beta2.AppsV1beta2Interface {
 | 
				
			||||||
 | 
						return &fakeappsv1beta2.FakeAppsV1beta2{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuditregistrationV1alpha1 retrieves the AuditregistrationV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuditregistrationV1alpha1() auditregistrationv1alpha1.AuditregistrationV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakeauditregistrationv1alpha1.FakeAuditregistrationV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthenticationV1 retrieves the AuthenticationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthenticationV1() authenticationv1.AuthenticationV1Interface {
 | 
				
			||||||
 | 
						return &fakeauthenticationv1.FakeAuthenticationV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthenticationV1beta1 retrieves the AuthenticationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthenticationV1beta1() authenticationv1beta1.AuthenticationV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeauthenticationv1beta1.FakeAuthenticationV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthorizationV1 retrieves the AuthorizationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthorizationV1() authorizationv1.AuthorizationV1Interface {
 | 
				
			||||||
 | 
						return &fakeauthorizationv1.FakeAuthorizationV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AuthorizationV1beta1 retrieves the AuthorizationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AuthorizationV1beta1() authorizationv1beta1.AuthorizationV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeauthorizationv1beta1.FakeAuthorizationV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AutoscalingV1 retrieves the AutoscalingV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AutoscalingV1() autoscalingv1.AutoscalingV1Interface {
 | 
				
			||||||
 | 
						return &fakeautoscalingv1.FakeAutoscalingV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface {
 | 
				
			||||||
 | 
						return &fakeautoscalingv2beta1.FakeAutoscalingV2beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AutoscalingV2beta2 retrieves the AutoscalingV2beta2Client
 | 
				
			||||||
 | 
					func (c *Clientset) AutoscalingV2beta2() autoscalingv2beta2.AutoscalingV2beta2Interface {
 | 
				
			||||||
 | 
						return &fakeautoscalingv2beta2.FakeAutoscalingV2beta2{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BatchV1 retrieves the BatchV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) BatchV1() batchv1.BatchV1Interface {
 | 
				
			||||||
 | 
						return &fakebatchv1.FakeBatchV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BatchV1beta1 retrieves the BatchV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) BatchV1beta1() batchv1beta1.BatchV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakebatchv1beta1.FakeBatchV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// BatchV2alpha1 retrieves the BatchV2alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) BatchV2alpha1() batchv2alpha1.BatchV2alpha1Interface {
 | 
				
			||||||
 | 
						return &fakebatchv2alpha1.FakeBatchV2alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CertificatesV1beta1 retrieves the CertificatesV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CertificatesV1beta1() certificatesv1beta1.CertificatesV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakecertificatesv1beta1.FakeCertificatesV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CoordinationV1beta1 retrieves the CoordinationV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CoordinationV1beta1() coordinationv1beta1.CoordinationV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakecoordinationv1beta1.FakeCoordinationV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CoordinationV1 retrieves the CoordinationV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CoordinationV1() coordinationv1.CoordinationV1Interface {
 | 
				
			||||||
 | 
						return &fakecoordinationv1.FakeCoordinationV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// CoreV1 retrieves the CoreV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) CoreV1() corev1.CoreV1Interface {
 | 
				
			||||||
 | 
						return &fakecorev1.FakeCoreV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DiscoveryV1alpha1 retrieves the DiscoveryV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) DiscoveryV1alpha1() discoveryv1alpha1.DiscoveryV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakediscoveryv1alpha1.FakeDiscoveryV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DiscoveryV1beta1 retrieves the DiscoveryV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) DiscoveryV1beta1() discoveryv1beta1.DiscoveryV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakediscoveryv1beta1.FakeDiscoveryV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// EventsV1beta1 retrieves the EventsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) EventsV1beta1() eventsv1beta1.EventsV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeeventsv1beta1.FakeEventsV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ExtensionsV1beta1 retrieves the ExtensionsV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) ExtensionsV1beta1() extensionsv1beta1.ExtensionsV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeextensionsv1beta1.FakeExtensionsV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FlowcontrolV1alpha1 retrieves the FlowcontrolV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) FlowcontrolV1alpha1() flowcontrolv1alpha1.FlowcontrolV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakeflowcontrolv1alpha1.FakeFlowcontrolV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NetworkingV1 retrieves the NetworkingV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NetworkingV1() networkingv1.NetworkingV1Interface {
 | 
				
			||||||
 | 
						return &fakenetworkingv1.FakeNetworkingV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NetworkingV1beta1 retrieves the NetworkingV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NetworkingV1beta1() networkingv1beta1.NetworkingV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakenetworkingv1beta1.FakeNetworkingV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NodeV1alpha1 retrieves the NodeV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NodeV1alpha1() nodev1alpha1.NodeV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakenodev1alpha1.FakeNodeV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NodeV1beta1 retrieves the NodeV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) NodeV1beta1() nodev1beta1.NodeV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakenodev1beta1.FakeNodeV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PolicyV1beta1 retrieves the PolicyV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) PolicyV1beta1() policyv1beta1.PolicyV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakepolicyv1beta1.FakePolicyV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RbacV1 retrieves the RbacV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) RbacV1() rbacv1.RbacV1Interface {
 | 
				
			||||||
 | 
						return &fakerbacv1.FakeRbacV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RbacV1beta1 retrieves the RbacV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) RbacV1beta1() rbacv1beta1.RbacV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakerbacv1beta1.FakeRbacV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RbacV1alpha1 retrieves the RbacV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakerbacv1alpha1.FakeRbacV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SchedulingV1alpha1 retrieves the SchedulingV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SchedulingV1alpha1() schedulingv1alpha1.SchedulingV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakeschedulingv1alpha1.FakeSchedulingV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SchedulingV1beta1 retrieves the SchedulingV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SchedulingV1beta1() schedulingv1beta1.SchedulingV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakeschedulingv1beta1.FakeSchedulingV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SchedulingV1 retrieves the SchedulingV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SchedulingV1() schedulingv1.SchedulingV1Interface {
 | 
				
			||||||
 | 
						return &fakeschedulingv1.FakeSchedulingV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StorageV1beta1 retrieves the StorageV1beta1Client
 | 
				
			||||||
 | 
					func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
 | 
				
			||||||
 | 
						return &fakestoragev1beta1.FakeStorageV1beta1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StorageV1 retrieves the StorageV1Client
 | 
				
			||||||
 | 
					func (c *Clientset) StorageV1() storagev1.StorageV1Interface {
 | 
				
			||||||
 | 
						return &fakestoragev1.FakeStorageV1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StorageV1alpha1 retrieves the StorageV1alpha1Client
 | 
				
			||||||
 | 
					func (c *Clientset) StorageV1alpha1() storagev1alpha1.StorageV1alpha1Interface {
 | 
				
			||||||
 | 
						return &fakestoragev1alpha1.FakeStorageV1alpha1{Fake: &c.Fake}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/fake/doc.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/fake/doc.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated fake clientset.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
							
								
								
									
										134
									
								
								staging/src/k8s.io/client-go/deprecated/fake/register.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										134
									
								
								staging/src/k8s.io/client-go/deprecated/fake/register.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,134 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						appsv1beta1 "k8s.io/api/apps/v1beta1"
 | 
				
			||||||
 | 
						appsv1beta2 "k8s.io/api/apps/v1beta2"
 | 
				
			||||||
 | 
						auditregistrationv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
 | 
				
			||||||
 | 
						authenticationv1 "k8s.io/api/authentication/v1"
 | 
				
			||||||
 | 
						authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
 | 
				
			||||||
 | 
						authorizationv1 "k8s.io/api/authorization/v1"
 | 
				
			||||||
 | 
						authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
 | 
				
			||||||
 | 
						autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
 | 
				
			||||||
 | 
						batchv1 "k8s.io/api/batch/v1"
 | 
				
			||||||
 | 
						batchv1beta1 "k8s.io/api/batch/v1beta1"
 | 
				
			||||||
 | 
						batchv2alpha1 "k8s.io/api/batch/v2alpha1"
 | 
				
			||||||
 | 
						certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
 | 
				
			||||||
 | 
						coordinationv1 "k8s.io/api/coordination/v1"
 | 
				
			||||||
 | 
						coordinationv1beta1 "k8s.io/api/coordination/v1beta1"
 | 
				
			||||||
 | 
						corev1 "k8s.io/api/core/v1"
 | 
				
			||||||
 | 
						discoveryv1alpha1 "k8s.io/api/discovery/v1alpha1"
 | 
				
			||||||
 | 
						discoveryv1beta1 "k8s.io/api/discovery/v1beta1"
 | 
				
			||||||
 | 
						eventsv1beta1 "k8s.io/api/events/v1beta1"
 | 
				
			||||||
 | 
						extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
 | 
				
			||||||
 | 
						flowcontrolv1alpha1 "k8s.io/api/flowcontrol/v1alpha1"
 | 
				
			||||||
 | 
						networkingv1 "k8s.io/api/networking/v1"
 | 
				
			||||||
 | 
						networkingv1beta1 "k8s.io/api/networking/v1beta1"
 | 
				
			||||||
 | 
						nodev1alpha1 "k8s.io/api/node/v1alpha1"
 | 
				
			||||||
 | 
						nodev1beta1 "k8s.io/api/node/v1beta1"
 | 
				
			||||||
 | 
						policyv1beta1 "k8s.io/api/policy/v1beta1"
 | 
				
			||||||
 | 
						rbacv1 "k8s.io/api/rbac/v1"
 | 
				
			||||||
 | 
						rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
 | 
				
			||||||
 | 
						rbacv1beta1 "k8s.io/api/rbac/v1beta1"
 | 
				
			||||||
 | 
						schedulingv1 "k8s.io/api/scheduling/v1"
 | 
				
			||||||
 | 
						schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
 | 
				
			||||||
 | 
						schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
 | 
				
			||||||
 | 
						settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
 | 
				
			||||||
 | 
						storagev1 "k8s.io/api/storage/v1"
 | 
				
			||||||
 | 
						storagev1alpha1 "k8s.io/api/storage/v1alpha1"
 | 
				
			||||||
 | 
						storagev1beta1 "k8s.io/api/storage/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						runtime "k8s.io/apimachinery/pkg/runtime"
 | 
				
			||||||
 | 
						schema "k8s.io/apimachinery/pkg/runtime/schema"
 | 
				
			||||||
 | 
						serializer "k8s.io/apimachinery/pkg/runtime/serializer"
 | 
				
			||||||
 | 
						utilruntime "k8s.io/apimachinery/pkg/util/runtime"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var scheme = runtime.NewScheme()
 | 
				
			||||||
 | 
					var codecs = serializer.NewCodecFactory(scheme)
 | 
				
			||||||
 | 
					var parameterCodec = runtime.NewParameterCodec(scheme)
 | 
				
			||||||
 | 
					var localSchemeBuilder = runtime.SchemeBuilder{
 | 
				
			||||||
 | 
						admissionregistrationv1.AddToScheme,
 | 
				
			||||||
 | 
						admissionregistrationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						appsv1.AddToScheme,
 | 
				
			||||||
 | 
						appsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						appsv1beta2.AddToScheme,
 | 
				
			||||||
 | 
						auditregistrationv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						authenticationv1.AddToScheme,
 | 
				
			||||||
 | 
						authenticationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						authorizationv1.AddToScheme,
 | 
				
			||||||
 | 
						authorizationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						autoscalingv1.AddToScheme,
 | 
				
			||||||
 | 
						autoscalingv2beta1.AddToScheme,
 | 
				
			||||||
 | 
						autoscalingv2beta2.AddToScheme,
 | 
				
			||||||
 | 
						batchv1.AddToScheme,
 | 
				
			||||||
 | 
						batchv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						batchv2alpha1.AddToScheme,
 | 
				
			||||||
 | 
						certificatesv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						coordinationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						coordinationv1.AddToScheme,
 | 
				
			||||||
 | 
						corev1.AddToScheme,
 | 
				
			||||||
 | 
						discoveryv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						discoveryv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						eventsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						extensionsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						flowcontrolv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						networkingv1.AddToScheme,
 | 
				
			||||||
 | 
						networkingv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						nodev1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						nodev1beta1.AddToScheme,
 | 
				
			||||||
 | 
						policyv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						rbacv1.AddToScheme,
 | 
				
			||||||
 | 
						rbacv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						rbacv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						schedulingv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						schedulingv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						schedulingv1.AddToScheme,
 | 
				
			||||||
 | 
						settingsv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						storagev1beta1.AddToScheme,
 | 
				
			||||||
 | 
						storagev1.AddToScheme,
 | 
				
			||||||
 | 
						storagev1alpha1.AddToScheme,
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AddToScheme adds all types of this clientset into the given scheme. This allows composition
 | 
				
			||||||
 | 
					// of clientsets, like in:
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   import (
 | 
				
			||||||
 | 
					//     "k8s.io/client-go/deprecated"
 | 
				
			||||||
 | 
					//     clientsetscheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
					//     aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
 | 
				
			||||||
 | 
					//   )
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   kclientset, _ := kubernetes.NewForConfig(c)
 | 
				
			||||||
 | 
					//   _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
 | 
				
			||||||
 | 
					// correctly.
 | 
				
			||||||
 | 
					var AddToScheme = localSchemeBuilder.AddToScheme
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						v1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"})
 | 
				
			||||||
 | 
						utilruntime.Must(AddToScheme(scheme))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										19
									
								
								staging/src/k8s.io/client-go/deprecated/import.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								staging/src/k8s.io/client-go/deprecated/import.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					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 exists to enforce this clientset's vanity import path.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package deprecated // import "k8s.io/client-go/deprecated"
 | 
				
			||||||
							
								
								
									
										73
									
								
								staging/src/k8s.io/client-go/deprecated/scheme/BUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										73
									
								
								staging/src/k8s.io/client-go/deprecated/scheme/BUILD
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,73 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "register.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/scheme",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/scheme",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/auditregistration/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authentication/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authentication/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authorization/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/authorization/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v2beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v2beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/batch/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/batch/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/batch/v2alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/certificates/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/coordination/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/coordination/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/core/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/discovery/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/discovery/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/events/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/extensions/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/flowcontrol/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/networking/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/networking/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/node/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/node/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/policy/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/rbac/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/rbac/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/rbac/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/scheduling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/scheduling/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/scheduling/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/settings/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/storage/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/storage/v1alpha1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/storage/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/util/runtime: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
							
								
								
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/scheme/doc.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/scheme/doc.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package contains the scheme of the automatically generated clientset.
 | 
				
			||||||
 | 
					package scheme
 | 
				
			||||||
							
								
								
									
										134
									
								
								staging/src/k8s.io/client-go/deprecated/scheme/register.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										134
									
								
								staging/src/k8s.io/client-go/deprecated/scheme/register.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,134 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package scheme
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						appsv1beta1 "k8s.io/api/apps/v1beta1"
 | 
				
			||||||
 | 
						appsv1beta2 "k8s.io/api/apps/v1beta2"
 | 
				
			||||||
 | 
						auditregistrationv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
 | 
				
			||||||
 | 
						authenticationv1 "k8s.io/api/authentication/v1"
 | 
				
			||||||
 | 
						authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
 | 
				
			||||||
 | 
						authorizationv1 "k8s.io/api/authorization/v1"
 | 
				
			||||||
 | 
						authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
 | 
				
			||||||
 | 
						autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
 | 
				
			||||||
 | 
						batchv1 "k8s.io/api/batch/v1"
 | 
				
			||||||
 | 
						batchv1beta1 "k8s.io/api/batch/v1beta1"
 | 
				
			||||||
 | 
						batchv2alpha1 "k8s.io/api/batch/v2alpha1"
 | 
				
			||||||
 | 
						certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
 | 
				
			||||||
 | 
						coordinationv1 "k8s.io/api/coordination/v1"
 | 
				
			||||||
 | 
						coordinationv1beta1 "k8s.io/api/coordination/v1beta1"
 | 
				
			||||||
 | 
						corev1 "k8s.io/api/core/v1"
 | 
				
			||||||
 | 
						discoveryv1alpha1 "k8s.io/api/discovery/v1alpha1"
 | 
				
			||||||
 | 
						discoveryv1beta1 "k8s.io/api/discovery/v1beta1"
 | 
				
			||||||
 | 
						eventsv1beta1 "k8s.io/api/events/v1beta1"
 | 
				
			||||||
 | 
						extensionsv1beta1 "k8s.io/api/extensions/v1beta1"
 | 
				
			||||||
 | 
						flowcontrolv1alpha1 "k8s.io/api/flowcontrol/v1alpha1"
 | 
				
			||||||
 | 
						networkingv1 "k8s.io/api/networking/v1"
 | 
				
			||||||
 | 
						networkingv1beta1 "k8s.io/api/networking/v1beta1"
 | 
				
			||||||
 | 
						nodev1alpha1 "k8s.io/api/node/v1alpha1"
 | 
				
			||||||
 | 
						nodev1beta1 "k8s.io/api/node/v1beta1"
 | 
				
			||||||
 | 
						policyv1beta1 "k8s.io/api/policy/v1beta1"
 | 
				
			||||||
 | 
						rbacv1 "k8s.io/api/rbac/v1"
 | 
				
			||||||
 | 
						rbacv1alpha1 "k8s.io/api/rbac/v1alpha1"
 | 
				
			||||||
 | 
						rbacv1beta1 "k8s.io/api/rbac/v1beta1"
 | 
				
			||||||
 | 
						schedulingv1 "k8s.io/api/scheduling/v1"
 | 
				
			||||||
 | 
						schedulingv1alpha1 "k8s.io/api/scheduling/v1alpha1"
 | 
				
			||||||
 | 
						schedulingv1beta1 "k8s.io/api/scheduling/v1beta1"
 | 
				
			||||||
 | 
						settingsv1alpha1 "k8s.io/api/settings/v1alpha1"
 | 
				
			||||||
 | 
						storagev1 "k8s.io/api/storage/v1"
 | 
				
			||||||
 | 
						storagev1alpha1 "k8s.io/api/storage/v1alpha1"
 | 
				
			||||||
 | 
						storagev1beta1 "k8s.io/api/storage/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						runtime "k8s.io/apimachinery/pkg/runtime"
 | 
				
			||||||
 | 
						schema "k8s.io/apimachinery/pkg/runtime/schema"
 | 
				
			||||||
 | 
						serializer "k8s.io/apimachinery/pkg/runtime/serializer"
 | 
				
			||||||
 | 
						utilruntime "k8s.io/apimachinery/pkg/util/runtime"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var Scheme = runtime.NewScheme()
 | 
				
			||||||
 | 
					var Codecs = serializer.NewCodecFactory(Scheme)
 | 
				
			||||||
 | 
					var ParameterCodec = runtime.NewParameterCodec(Scheme)
 | 
				
			||||||
 | 
					var localSchemeBuilder = runtime.SchemeBuilder{
 | 
				
			||||||
 | 
						admissionregistrationv1.AddToScheme,
 | 
				
			||||||
 | 
						admissionregistrationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						appsv1.AddToScheme,
 | 
				
			||||||
 | 
						appsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						appsv1beta2.AddToScheme,
 | 
				
			||||||
 | 
						auditregistrationv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						authenticationv1.AddToScheme,
 | 
				
			||||||
 | 
						authenticationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						authorizationv1.AddToScheme,
 | 
				
			||||||
 | 
						authorizationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						autoscalingv1.AddToScheme,
 | 
				
			||||||
 | 
						autoscalingv2beta1.AddToScheme,
 | 
				
			||||||
 | 
						autoscalingv2beta2.AddToScheme,
 | 
				
			||||||
 | 
						batchv1.AddToScheme,
 | 
				
			||||||
 | 
						batchv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						batchv2alpha1.AddToScheme,
 | 
				
			||||||
 | 
						certificatesv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						coordinationv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						coordinationv1.AddToScheme,
 | 
				
			||||||
 | 
						corev1.AddToScheme,
 | 
				
			||||||
 | 
						discoveryv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						discoveryv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						eventsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						extensionsv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						flowcontrolv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						networkingv1.AddToScheme,
 | 
				
			||||||
 | 
						networkingv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						nodev1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						nodev1beta1.AddToScheme,
 | 
				
			||||||
 | 
						policyv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						rbacv1.AddToScheme,
 | 
				
			||||||
 | 
						rbacv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						rbacv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						schedulingv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						schedulingv1beta1.AddToScheme,
 | 
				
			||||||
 | 
						schedulingv1.AddToScheme,
 | 
				
			||||||
 | 
						settingsv1alpha1.AddToScheme,
 | 
				
			||||||
 | 
						storagev1beta1.AddToScheme,
 | 
				
			||||||
 | 
						storagev1.AddToScheme,
 | 
				
			||||||
 | 
						storagev1alpha1.AddToScheme,
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AddToScheme adds all types of this clientset into the given scheme. This allows composition
 | 
				
			||||||
 | 
					// of clientsets, like in:
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   import (
 | 
				
			||||||
 | 
					//     "k8s.io/client-go/deprecated"
 | 
				
			||||||
 | 
					//     clientsetscheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
					//     aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
 | 
				
			||||||
 | 
					//   )
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					//   kclientset, _ := kubernetes.NewForConfig(c)
 | 
				
			||||||
 | 
					//   _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
 | 
				
			||||||
 | 
					// correctly.
 | 
				
			||||||
 | 
					var AddToScheme = localSchemeBuilder.AddToScheme
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
 | 
				
			||||||
 | 
						utilruntime.Must(AddToScheme(Scheme))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "admissionregistration_client.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					        "mutatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					        "validatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/admissionregistration/v1",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/admissionregistration/v1",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,94 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						"k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type AdmissionregistrationV1Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						MutatingWebhookConfigurationsGetter
 | 
				
			||||||
 | 
						ValidatingWebhookConfigurationsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AdmissionregistrationV1Client is used to interact with features provided by the admissionregistration.k8s.io group.
 | 
				
			||||||
 | 
					type AdmissionregistrationV1Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AdmissionregistrationV1Client) MutatingWebhookConfigurations() MutatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return newMutatingWebhookConfigurations(c)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AdmissionregistrationV1Client) ValidatingWebhookConfigurations() ValidatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return newValidatingWebhookConfigurations(c)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new AdmissionregistrationV1Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*AdmissionregistrationV1Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &AdmissionregistrationV1Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new AdmissionregistrationV1Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *AdmissionregistrationV1Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new AdmissionregistrationV1Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *AdmissionregistrationV1Client {
 | 
				
			||||||
 | 
						return &AdmissionregistrationV1Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *AdmissionregistrationV1Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "fake_admissionregistration_client.go",
 | 
				
			||||||
 | 
					        "fake_mutatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					        "fake_validatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/admissionregistration/v1/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/admissionregistration/v1/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package fake has the automatically generated clients.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						testing "k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type FakeAdmissionregistrationV1 struct {
 | 
				
			||||||
 | 
						*testing.Fake
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAdmissionregistrationV1) MutatingWebhookConfigurations() v1.MutatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return &FakeMutatingWebhookConfigurations{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAdmissionregistrationV1) ValidatingWebhookConfigurations() v1.ValidatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return &FakeValidatingWebhookConfigurations{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *FakeAdmissionregistrationV1) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						var ret *rest.RESTClient
 | 
				
			||||||
 | 
						return ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,120 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeMutatingWebhookConfigurations implements MutatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type FakeMutatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						Fake *FakeAdmissionregistrationV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var mutatingwebhookconfigurationsResource = schema.GroupVersionResource{Group: "admissionregistration.k8s.io", Version: "v1", Resource: "mutatingwebhookconfigurations"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var mutatingwebhookconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1", Kind: "MutatingWebhookConfiguration"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the mutatingWebhookConfiguration, and returns the corresponding mutatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistrationv1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootGetAction(mutatingwebhookconfigurationsResource, name), &admissionregistrationv1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) List(opts v1.ListOptions) (result *admissionregistrationv1.MutatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootListAction(mutatingwebhookconfigurationsResource, mutatingwebhookconfigurationsKind, opts), &admissionregistrationv1.MutatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &admissionregistrationv1.MutatingWebhookConfigurationList{ListMeta: obj.(*admissionregistrationv1.MutatingWebhookConfigurationList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*admissionregistrationv1.MutatingWebhookConfigurationList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewRootWatchAction(mutatingwebhookconfigurationsResource, opts))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Create(mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration) (result *admissionregistrationv1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootCreateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), &admissionregistrationv1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a mutatingWebhookConfiguration and updates it. Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Update(mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration) (result *admissionregistrationv1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), &admissionregistrationv1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the mutatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootDeleteAction(mutatingwebhookconfigurationsResource, name), &admissionregistrationv1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewRootDeleteCollectionAction(mutatingwebhookconfigurationsResource, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &admissionregistrationv1.MutatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched mutatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *admissionregistrationv1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootPatchSubresourceAction(mutatingwebhookconfigurationsResource, name, pt, data, subresources...), &admissionregistrationv1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,120 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeValidatingWebhookConfigurations implements ValidatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type FakeValidatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						Fake *FakeAdmissionregistrationV1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var validatingwebhookconfigurationsResource = schema.GroupVersionResource{Group: "admissionregistration.k8s.io", Version: "v1", Resource: "validatingwebhookconfigurations"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var validatingwebhookconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1", Kind: "ValidatingWebhookConfiguration"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the validatingWebhookConfiguration, and returns the corresponding validatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Get(name string, options v1.GetOptions) (result *admissionregistrationv1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootGetAction(validatingwebhookconfigurationsResource, name), &admissionregistrationv1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) List(opts v1.ListOptions) (result *admissionregistrationv1.ValidatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootListAction(validatingwebhookconfigurationsResource, validatingwebhookconfigurationsKind, opts), &admissionregistrationv1.ValidatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &admissionregistrationv1.ValidatingWebhookConfigurationList{ListMeta: obj.(*admissionregistrationv1.ValidatingWebhookConfigurationList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*admissionregistrationv1.ValidatingWebhookConfigurationList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewRootWatchAction(validatingwebhookconfigurationsResource, opts))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Create(validatingWebhookConfiguration *admissionregistrationv1.ValidatingWebhookConfiguration) (result *admissionregistrationv1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootCreateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), &admissionregistrationv1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a validatingWebhookConfiguration and updates it. Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Update(validatingWebhookConfiguration *admissionregistrationv1.ValidatingWebhookConfiguration) (result *admissionregistrationv1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), &admissionregistrationv1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the validatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootDeleteAction(validatingwebhookconfigurationsResource, name), &admissionregistrationv1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewRootDeleteCollectionAction(validatingwebhookconfigurationsResource, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &admissionregistrationv1.ValidatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched validatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *admissionregistrationv1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootPatchSubresourceAction(validatingwebhookconfigurationsResource, name, pt, data, subresources...), &admissionregistrationv1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*admissionregistrationv1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type MutatingWebhookConfigurationExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ValidatingWebhookConfigurationExpansion interface{}
 | 
				
			||||||
@@ -0,0 +1,165 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// MutatingWebhookConfigurationsGetter has a method to return a MutatingWebhookConfigurationInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type MutatingWebhookConfigurationsGetter interface {
 | 
				
			||||||
 | 
						MutatingWebhookConfigurations() MutatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// MutatingWebhookConfigurationInterface has methods to work with MutatingWebhookConfiguration resources.
 | 
				
			||||||
 | 
					type MutatingWebhookConfigurationInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.MutatingWebhookConfiguration) (*v1.MutatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Update(*v1.MutatingWebhookConfiguration) (*v1.MutatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.MutatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.MutatingWebhookConfigurationList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.MutatingWebhookConfiguration, err error)
 | 
				
			||||||
 | 
						MutatingWebhookConfigurationExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// mutatingWebhookConfigurations implements MutatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type mutatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newMutatingWebhookConfigurations returns a MutatingWebhookConfigurations
 | 
				
			||||||
 | 
					func newMutatingWebhookConfigurations(c *AdmissionregistrationV1Client) *mutatingWebhookConfigurations {
 | 
				
			||||||
 | 
						return &mutatingWebhookConfigurations{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the mutatingWebhookConfiguration, and returns the corresponding mutatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Get(name string, options metav1.GetOptions) (result *v1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) List(opts metav1.ListOptions) (result *v1.MutatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.MutatingWebhookConfigurationList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Create(mutatingWebhookConfiguration *v1.MutatingWebhookConfiguration) (result *v1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Body(mutatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a mutatingWebhookConfiguration and updates it. Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Update(mutatingWebhookConfiguration *v1.MutatingWebhookConfiguration) (result *v1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(mutatingWebhookConfiguration.Name).
 | 
				
			||||||
 | 
							Body(mutatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the mutatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched mutatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,165 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/admissionregistration/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ValidatingWebhookConfigurationsGetter has a method to return a ValidatingWebhookConfigurationInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type ValidatingWebhookConfigurationsGetter interface {
 | 
				
			||||||
 | 
						ValidatingWebhookConfigurations() ValidatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ValidatingWebhookConfigurationInterface has methods to work with ValidatingWebhookConfiguration resources.
 | 
				
			||||||
 | 
					type ValidatingWebhookConfigurationInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.ValidatingWebhookConfiguration) (*v1.ValidatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Update(*v1.ValidatingWebhookConfiguration) (*v1.ValidatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.ValidatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.ValidatingWebhookConfigurationList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ValidatingWebhookConfiguration, err error)
 | 
				
			||||||
 | 
						ValidatingWebhookConfigurationExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// validatingWebhookConfigurations implements ValidatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type validatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newValidatingWebhookConfigurations returns a ValidatingWebhookConfigurations
 | 
				
			||||||
 | 
					func newValidatingWebhookConfigurations(c *AdmissionregistrationV1Client) *validatingWebhookConfigurations {
 | 
				
			||||||
 | 
						return &validatingWebhookConfigurations{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the validatingWebhookConfiguration, and returns the corresponding validatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Get(name string, options metav1.GetOptions) (result *v1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) List(opts metav1.ListOptions) (result *v1.ValidatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.ValidatingWebhookConfigurationList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Create(validatingWebhookConfiguration *v1.ValidatingWebhookConfiguration) (result *v1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Body(validatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a validatingWebhookConfiguration and updates it. Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Update(validatingWebhookConfiguration *v1.ValidatingWebhookConfiguration) (result *v1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(validatingWebhookConfiguration.Name).
 | 
				
			||||||
 | 
							Body(validatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the validatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched validatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "admissionregistration_client.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					        "mutatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					        "validatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,94 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						"k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type AdmissionregistrationV1beta1Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						MutatingWebhookConfigurationsGetter
 | 
				
			||||||
 | 
						ValidatingWebhookConfigurationsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AdmissionregistrationV1beta1Client is used to interact with features provided by the admissionregistration.k8s.io group.
 | 
				
			||||||
 | 
					type AdmissionregistrationV1beta1Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AdmissionregistrationV1beta1Client) MutatingWebhookConfigurations() MutatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return newMutatingWebhookConfigurations(c)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AdmissionregistrationV1beta1Client) ValidatingWebhookConfigurations() ValidatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return newValidatingWebhookConfigurations(c)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new AdmissionregistrationV1beta1Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*AdmissionregistrationV1beta1Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &AdmissionregistrationV1beta1Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new AdmissionregistrationV1beta1Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *AdmissionregistrationV1beta1Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new AdmissionregistrationV1beta1Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *AdmissionregistrationV1beta1Client {
 | 
				
			||||||
 | 
						return &AdmissionregistrationV1beta1Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1beta1.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *AdmissionregistrationV1beta1Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
@@ -0,0 +1,39 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "fake_admissionregistration_client.go",
 | 
				
			||||||
 | 
					        "fake_mutatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					        "fake_validatingwebhookconfiguration.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package fake has the automatically generated clients.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/client-go/deprecated/typed/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						testing "k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type FakeAdmissionregistrationV1beta1 struct {
 | 
				
			||||||
 | 
						*testing.Fake
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAdmissionregistrationV1beta1) MutatingWebhookConfigurations() v1beta1.MutatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return &FakeMutatingWebhookConfigurations{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAdmissionregistrationV1beta1) ValidatingWebhookConfigurations() v1beta1.ValidatingWebhookConfigurationInterface {
 | 
				
			||||||
 | 
						return &FakeValidatingWebhookConfigurations{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *FakeAdmissionregistrationV1beta1) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						var ret *rest.RESTClient
 | 
				
			||||||
 | 
						return ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,120 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/admissionregistration/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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeMutatingWebhookConfigurations implements MutatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type FakeMutatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						Fake *FakeAdmissionregistrationV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var mutatingwebhookconfigurationsResource = schema.GroupVersionResource{Group: "admissionregistration.k8s.io", Version: "v1beta1", Resource: "mutatingwebhookconfigurations"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var mutatingwebhookconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1beta1", Kind: "MutatingWebhookConfiguration"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the mutatingWebhookConfiguration, and returns the corresponding mutatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Get(name string, options v1.GetOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootGetAction(mutatingwebhookconfigurationsResource, name), &v1beta1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) List(opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootListAction(mutatingwebhookconfigurationsResource, mutatingwebhookconfigurationsKind, opts), &v1beta1.MutatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &v1beta1.MutatingWebhookConfigurationList{ListMeta: obj.(*v1beta1.MutatingWebhookConfigurationList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*v1beta1.MutatingWebhookConfigurationList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewRootWatchAction(mutatingwebhookconfigurationsResource, opts))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Create(mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootCreateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), &v1beta1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a mutatingWebhookConfiguration and updates it. Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Update(mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateAction(mutatingwebhookconfigurationsResource, mutatingWebhookConfiguration), &v1beta1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the mutatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootDeleteAction(mutatingwebhookconfigurationsResource, name), &v1beta1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewRootDeleteCollectionAction(mutatingwebhookconfigurationsResource, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &v1beta1.MutatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched mutatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *FakeMutatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootPatchSubresourceAction(mutatingwebhookconfigurationsResource, name, pt, data, subresources...), &v1beta1.MutatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.MutatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,120 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/admissionregistration/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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeValidatingWebhookConfigurations implements ValidatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type FakeValidatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						Fake *FakeAdmissionregistrationV1beta1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var validatingwebhookconfigurationsResource = schema.GroupVersionResource{Group: "admissionregistration.k8s.io", Version: "v1beta1", Resource: "validatingwebhookconfigurations"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var validatingwebhookconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1beta1", Kind: "ValidatingWebhookConfiguration"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the validatingWebhookConfiguration, and returns the corresponding validatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Get(name string, options v1.GetOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootGetAction(validatingwebhookconfigurationsResource, name), &v1beta1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) List(opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootListAction(validatingwebhookconfigurationsResource, validatingwebhookconfigurationsKind, opts), &v1beta1.ValidatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &v1beta1.ValidatingWebhookConfigurationList{ListMeta: obj.(*v1beta1.ValidatingWebhookConfigurationList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*v1beta1.ValidatingWebhookConfigurationList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewRootWatchAction(validatingwebhookconfigurationsResource, opts))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Create(validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootCreateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), &v1beta1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a validatingWebhookConfiguration and updates it. Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Update(validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootUpdateAction(validatingwebhookconfigurationsResource, validatingWebhookConfiguration), &v1beta1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the validatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootDeleteAction(validatingwebhookconfigurationsResource, name), &v1beta1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewRootDeleteCollectionAction(validatingwebhookconfigurationsResource, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &v1beta1.ValidatingWebhookConfigurationList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched validatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *FakeValidatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewRootPatchSubresourceAction(validatingwebhookconfigurationsResource, name, pt, data, subresources...), &v1beta1.ValidatingWebhookConfiguration{})
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ValidatingWebhookConfiguration), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type MutatingWebhookConfigurationExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ValidatingWebhookConfigurationExpansion interface{}
 | 
				
			||||||
@@ -0,0 +1,165 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// MutatingWebhookConfigurationsGetter has a method to return a MutatingWebhookConfigurationInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type MutatingWebhookConfigurationsGetter interface {
 | 
				
			||||||
 | 
						MutatingWebhookConfigurations() MutatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// MutatingWebhookConfigurationInterface has methods to work with MutatingWebhookConfiguration resources.
 | 
				
			||||||
 | 
					type MutatingWebhookConfigurationInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta1.MutatingWebhookConfiguration) (*v1beta1.MutatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Update(*v1beta1.MutatingWebhookConfiguration) (*v1beta1.MutatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta1.MutatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta1.MutatingWebhookConfigurationList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.MutatingWebhookConfiguration, err error)
 | 
				
			||||||
 | 
						MutatingWebhookConfigurationExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// mutatingWebhookConfigurations implements MutatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type mutatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newMutatingWebhookConfigurations returns a MutatingWebhookConfigurations
 | 
				
			||||||
 | 
					func newMutatingWebhookConfigurations(c *AdmissionregistrationV1beta1Client) *mutatingWebhookConfigurations {
 | 
				
			||||||
 | 
						return &mutatingWebhookConfigurations{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the mutatingWebhookConfiguration, and returns the corresponding mutatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Get(name string, options v1.GetOptions) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) List(opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta1.MutatingWebhookConfigurationList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested mutatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a mutatingWebhookConfiguration and creates it.  Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Create(mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Body(mutatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a mutatingWebhookConfiguration and updates it. Returns the server's representation of the mutatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Update(mutatingWebhookConfiguration *v1beta1.MutatingWebhookConfiguration) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(mutatingWebhookConfiguration.Name).
 | 
				
			||||||
 | 
							Body(mutatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the mutatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched mutatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *mutatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.MutatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.MutatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Resource("mutatingwebhookconfigurations").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,165 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/admissionregistration/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ValidatingWebhookConfigurationsGetter has a method to return a ValidatingWebhookConfigurationInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type ValidatingWebhookConfigurationsGetter interface {
 | 
				
			||||||
 | 
						ValidatingWebhookConfigurations() ValidatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ValidatingWebhookConfigurationInterface has methods to work with ValidatingWebhookConfiguration resources.
 | 
				
			||||||
 | 
					type ValidatingWebhookConfigurationInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta1.ValidatingWebhookConfiguration) (*v1beta1.ValidatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Update(*v1beta1.ValidatingWebhookConfiguration) (*v1beta1.ValidatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta1.ValidatingWebhookConfiguration, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta1.ValidatingWebhookConfigurationList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ValidatingWebhookConfiguration, err error)
 | 
				
			||||||
 | 
						ValidatingWebhookConfigurationExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// validatingWebhookConfigurations implements ValidatingWebhookConfigurationInterface
 | 
				
			||||||
 | 
					type validatingWebhookConfigurations struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newValidatingWebhookConfigurations returns a ValidatingWebhookConfigurations
 | 
				
			||||||
 | 
					func newValidatingWebhookConfigurations(c *AdmissionregistrationV1beta1Client) *validatingWebhookConfigurations {
 | 
				
			||||||
 | 
						return &validatingWebhookConfigurations{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the validatingWebhookConfiguration, and returns the corresponding validatingWebhookConfiguration object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Get(name string, options v1.GetOptions) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) List(opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta1.ValidatingWebhookConfigurationList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested validatingWebhookConfigurations.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a validatingWebhookConfiguration and creates it.  Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Create(validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Body(validatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a validatingWebhookConfiguration and updates it. Returns the server's representation of the validatingWebhookConfiguration, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Update(validatingWebhookConfiguration *v1beta1.ValidatingWebhookConfiguration) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(validatingWebhookConfiguration.Name).
 | 
				
			||||||
 | 
							Body(validatingWebhookConfiguration).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the validatingWebhookConfiguration and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched validatingWebhookConfiguration.
 | 
				
			||||||
 | 
					func (c *validatingWebhookConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ValidatingWebhookConfiguration, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ValidatingWebhookConfiguration{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Resource("validatingwebhookconfigurations").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										44
									
								
								staging/src/k8s.io/client-go/deprecated/typed/apps/v1/BUILD
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								staging/src/k8s.io/client-go/deprecated/typed/apps/v1/BUILD
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "apps_client.go",
 | 
				
			||||||
 | 
					        "controllerrevision.go",
 | 
				
			||||||
 | 
					        "daemonset.go",
 | 
				
			||||||
 | 
					        "deployment.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					        "replicaset.go",
 | 
				
			||||||
 | 
					        "statefulset.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/apps/v1",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/apps/v1",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,109 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						"k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type AppsV1Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						ControllerRevisionsGetter
 | 
				
			||||||
 | 
						DaemonSetsGetter
 | 
				
			||||||
 | 
						DeploymentsGetter
 | 
				
			||||||
 | 
						ReplicaSetsGetter
 | 
				
			||||||
 | 
						StatefulSetsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1Client is used to interact with features provided by the apps group.
 | 
				
			||||||
 | 
					type AppsV1Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1Client) ControllerRevisions(namespace string) ControllerRevisionInterface {
 | 
				
			||||||
 | 
						return newControllerRevisions(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1Client) DaemonSets(namespace string) DaemonSetInterface {
 | 
				
			||||||
 | 
						return newDaemonSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1Client) Deployments(namespace string) DeploymentInterface {
 | 
				
			||||||
 | 
						return newDeployments(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1Client) ReplicaSets(namespace string) ReplicaSetInterface {
 | 
				
			||||||
 | 
						return newReplicaSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1Client) StatefulSets(namespace string) StatefulSetInterface {
 | 
				
			||||||
 | 
						return newStatefulSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new AppsV1Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*AppsV1Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &AppsV1Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new AppsV1Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *AppsV1Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new AppsV1Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *AppsV1Client {
 | 
				
			||||||
 | 
						return &AppsV1Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *AppsV1Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,175 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ControllerRevisionsGetter has a method to return a ControllerRevisionInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type ControllerRevisionsGetter interface {
 | 
				
			||||||
 | 
						ControllerRevisions(namespace string) ControllerRevisionInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ControllerRevisionInterface has methods to work with ControllerRevision resources.
 | 
				
			||||||
 | 
					type ControllerRevisionInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.ControllerRevision) (*v1.ControllerRevision, error)
 | 
				
			||||||
 | 
						Update(*v1.ControllerRevision) (*v1.ControllerRevision, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.ControllerRevision, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.ControllerRevisionList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ControllerRevision, err error)
 | 
				
			||||||
 | 
						ControllerRevisionExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// controllerRevisions implements ControllerRevisionInterface
 | 
				
			||||||
 | 
					type controllerRevisions struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newControllerRevisions returns a ControllerRevisions
 | 
				
			||||||
 | 
					func newControllerRevisions(c *AppsV1Client, namespace string) *controllerRevisions {
 | 
				
			||||||
 | 
						return &controllerRevisions{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Get(name string, options metav1.GetOptions) (result *v1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) List(opts metav1.ListOptions) (result *v1.ControllerRevisionList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.ControllerRevisionList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested controllerRevisions.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Create(controllerRevision *v1.ControllerRevision) (result *v1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Body(controllerRevision).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Update(controllerRevision *v1.ControllerRevision) (result *v1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(controllerRevision.Name).
 | 
				
			||||||
 | 
							Body(controllerRevision).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched controllerRevision.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,192 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DaemonSetsGetter has a method to return a DaemonSetInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type DaemonSetsGetter interface {
 | 
				
			||||||
 | 
						DaemonSets(namespace string) DaemonSetInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DaemonSetInterface has methods to work with DaemonSet resources.
 | 
				
			||||||
 | 
					type DaemonSetInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.DaemonSet) (*v1.DaemonSet, error)
 | 
				
			||||||
 | 
						Update(*v1.DaemonSet) (*v1.DaemonSet, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1.DaemonSet) (*v1.DaemonSet, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.DaemonSet, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.DaemonSetList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.DaemonSet, err error)
 | 
				
			||||||
 | 
						DaemonSetExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// daemonSets implements DaemonSetInterface
 | 
				
			||||||
 | 
					type daemonSets struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newDaemonSets returns a DaemonSets
 | 
				
			||||||
 | 
					func newDaemonSets(c *AppsV1Client, namespace string) *daemonSets {
 | 
				
			||||||
 | 
						return &daemonSets{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *daemonSets) Get(name string, options metav1.GetOptions) (result *v1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of DaemonSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *daemonSets) List(opts metav1.ListOptions) (result *v1.DaemonSetList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.DaemonSetList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested daemonSets.
 | 
				
			||||||
 | 
					func (c *daemonSets) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *daemonSets) Create(daemonSet *v1.DaemonSet) (result *v1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Body(daemonSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *daemonSets) Update(daemonSet *v1.DaemonSet) (result *v1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(daemonSet.Name).
 | 
				
			||||||
 | 
							Body(daemonSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *daemonSets) UpdateStatus(daemonSet *v1.DaemonSet) (result *v1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(daemonSet.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(daemonSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the daemonSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *daemonSets) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *daemonSets) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched daemonSet.
 | 
				
			||||||
 | 
					func (c *daemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,224 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeploymentsGetter has a method to return a DeploymentInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type DeploymentsGetter interface {
 | 
				
			||||||
 | 
						Deployments(namespace string) DeploymentInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeploymentInterface has methods to work with Deployment resources.
 | 
				
			||||||
 | 
					type DeploymentInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.Deployment) (*v1.Deployment, error)
 | 
				
			||||||
 | 
						Update(*v1.Deployment) (*v1.Deployment, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1.Deployment) (*v1.Deployment, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.Deployment, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.DeploymentList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Deployment, err error)
 | 
				
			||||||
 | 
						GetScale(deploymentName string, options metav1.GetOptions) (*autoscalingv1.Scale, error)
 | 
				
			||||||
 | 
						UpdateScale(deploymentName string, scale *autoscalingv1.Scale) (*autoscalingv1.Scale, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						DeploymentExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// deployments implements DeploymentInterface
 | 
				
			||||||
 | 
					type deployments struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newDeployments returns a Deployments
 | 
				
			||||||
 | 
					func newDeployments(c *AppsV1Client, namespace string) *deployments {
 | 
				
			||||||
 | 
						return &deployments{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Get(name string, options metav1.GetOptions) (result *v1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of Deployments that match those selectors.
 | 
				
			||||||
 | 
					func (c *deployments) List(opts metav1.ListOptions) (result *v1.DeploymentList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.DeploymentList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested deployments.
 | 
				
			||||||
 | 
					func (c *deployments) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Create(deployment *v1.Deployment) (result *v1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Update(deployment *v1.Deployment) (result *v1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deployment.Name).
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *deployments) UpdateStatus(deployment *v1.Deployment) (result *v1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deployment.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the deployment and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *deployments) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *deployments) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched deployment.
 | 
				
			||||||
 | 
					func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// GetScale takes name of the deployment, and returns the corresponding autoscalingv1.Scale object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) GetScale(deploymentName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						result = &autoscalingv1.Scale{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deploymentName).
 | 
				
			||||||
 | 
							SubResource("scale").
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateScale takes the top resource name and the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) UpdateScale(deploymentName string, scale *autoscalingv1.Scale) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						result = &autoscalingv1.Scale{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deploymentName).
 | 
				
			||||||
 | 
							SubResource("scale").
 | 
				
			||||||
 | 
							Body(scale).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/typed/apps/v1/doc.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								staging/src/k8s.io/client-go/deprecated/typed/apps/v1/doc.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
@@ -0,0 +1,43 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "fake_apps_client.go",
 | 
				
			||||||
 | 
					        "fake_controllerrevision.go",
 | 
				
			||||||
 | 
					        "fake_daemonset.go",
 | 
				
			||||||
 | 
					        "fake_deployment.go",
 | 
				
			||||||
 | 
					        "fake_replicaset.go",
 | 
				
			||||||
 | 
					        "fake_statefulset.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/apps/v1/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/apps/v1/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/autoscaling/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package fake has the automatically generated clients.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,56 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1 "k8s.io/client-go/deprecated/typed/apps/v1"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						testing "k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type FakeAppsV1 struct {
 | 
				
			||||||
 | 
						*testing.Fake
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1) ControllerRevisions(namespace string) v1.ControllerRevisionInterface {
 | 
				
			||||||
 | 
						return &FakeControllerRevisions{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1) DaemonSets(namespace string) v1.DaemonSetInterface {
 | 
				
			||||||
 | 
						return &FakeDaemonSets{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1) Deployments(namespace string) v1.DeploymentInterface {
 | 
				
			||||||
 | 
						return &FakeDeployments{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1) ReplicaSets(namespace string) v1.ReplicaSetInterface {
 | 
				
			||||||
 | 
						return &FakeReplicaSets{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1) StatefulSets(namespace string) v1.StatefulSetInterface {
 | 
				
			||||||
 | 
						return &FakeStatefulSets{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *FakeAppsV1) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						var ret *rest.RESTClient
 | 
				
			||||||
 | 
						return ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,128 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeControllerRevisions implements ControllerRevisionInterface
 | 
				
			||||||
 | 
					type FakeControllerRevisions struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var controllerrevisionsResource = schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "controllerrevisions"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var controllerrevisionsKind = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ControllerRevision"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (result *appsv1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(controllerrevisionsResource, c.ns, name), &appsv1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *appsv1.ControllerRevisionList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), &appsv1.ControllerRevisionList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &appsv1.ControllerRevisionList{ListMeta: obj.(*appsv1.ControllerRevisionList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*appsv1.ControllerRevisionList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested controllerRevisions.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(controllerrevisionsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Create(controllerRevision *appsv1.ControllerRevision) (result *appsv1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), &appsv1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Update(controllerRevision *appsv1.ControllerRevision) (result *appsv1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), &appsv1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(controllerrevisionsResource, c.ns, name), &appsv1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &appsv1.ControllerRevisionList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched controllerRevision.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *appsv1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, name, pt, data, subresources...), &appsv1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,140 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeDaemonSets implements DaemonSetInterface
 | 
				
			||||||
 | 
					type FakeDaemonSets struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var daemonsetsResource = schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "daemonsets"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var daemonsetsKind = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "DaemonSet"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) Get(name string, options v1.GetOptions) (result *appsv1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(daemonsetsResource, c.ns, name), &appsv1.DaemonSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.DaemonSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of DaemonSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) List(opts v1.ListOptions) (result *appsv1.DaemonSetList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(daemonsetsResource, daemonsetsKind, c.ns, opts), &appsv1.DaemonSetList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &appsv1.DaemonSetList{ListMeta: obj.(*appsv1.DaemonSetList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*appsv1.DaemonSetList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested daemonSets.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(daemonsetsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) Create(daemonSet *appsv1.DaemonSet) (result *appsv1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(daemonsetsResource, c.ns, daemonSet), &appsv1.DaemonSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.DaemonSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) Update(daemonSet *appsv1.DaemonSet) (result *appsv1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(daemonsetsResource, c.ns, daemonSet), &appsv1.DaemonSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.DaemonSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) UpdateStatus(daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(daemonsetsResource, "status", c.ns, daemonSet), &appsv1.DaemonSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.DaemonSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the daemonSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(daemonsetsResource, c.ns, name), &appsv1.DaemonSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(daemonsetsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &appsv1.DaemonSetList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched daemonSet.
 | 
				
			||||||
 | 
					func (c *FakeDaemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *appsv1.DaemonSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(daemonsetsResource, c.ns, name, pt, data, subresources...), &appsv1.DaemonSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.DaemonSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,163 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeDeployments implements DeploymentInterface
 | 
				
			||||||
 | 
					type FakeDeployments struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var deploymentsResource = schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var deploymentsKind = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "Deployment"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *appsv1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), &appsv1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of Deployments that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) List(opts v1.ListOptions) (result *appsv1.DeploymentList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), &appsv1.DeploymentList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &appsv1.DeploymentList{ListMeta: obj.(*appsv1.DeploymentList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*appsv1.DeploymentList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested deployments.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(deploymentsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Create(deployment *appsv1.Deployment) (result *appsv1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &appsv1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Update(deployment *appsv1.Deployment) (result *appsv1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &appsv1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeDeployments) UpdateStatus(deployment *appsv1.Deployment) (*appsv1.Deployment, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &appsv1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the deployment and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &appsv1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &appsv1.DeploymentList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched deployment.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *appsv1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, pt, data, subresources...), &appsv1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// GetScale takes name of the deployment, and returns the corresponding scale object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) GetScale(deploymentName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetSubresourceAction(deploymentsResource, c.ns, "scale", deploymentName), &autoscalingv1.Scale{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*autoscalingv1.Scale), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) UpdateScale(deploymentName string, scale *autoscalingv1.Scale) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "scale", c.ns, scale), &autoscalingv1.Scale{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*autoscalingv1.Scale), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,163 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeReplicaSets implements ReplicaSetInterface
 | 
				
			||||||
 | 
					type FakeReplicaSets struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var replicasetsResource = schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "replicasets"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var replicasetsKind = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "ReplicaSet"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) Get(name string, options v1.GetOptions) (result *appsv1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(replicasetsResource, c.ns, name), &appsv1.ReplicaSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ReplicaSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ReplicaSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) List(opts v1.ListOptions) (result *appsv1.ReplicaSetList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(replicasetsResource, replicasetsKind, c.ns, opts), &appsv1.ReplicaSetList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &appsv1.ReplicaSetList{ListMeta: obj.(*appsv1.ReplicaSetList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*appsv1.ReplicaSetList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested replicaSets.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(replicasetsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) Create(replicaSet *appsv1.ReplicaSet) (result *appsv1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(replicasetsResource, c.ns, replicaSet), &appsv1.ReplicaSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ReplicaSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a replicaSet and updates it. Returns the server's representation of the replicaSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) Update(replicaSet *appsv1.ReplicaSet) (result *appsv1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &appsv1.ReplicaSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ReplicaSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) UpdateStatus(replicaSet *appsv1.ReplicaSet) (*appsv1.ReplicaSet, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), &appsv1.ReplicaSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ReplicaSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the replicaSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(replicasetsResource, c.ns, name), &appsv1.ReplicaSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &appsv1.ReplicaSetList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched replicaSet.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *appsv1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(replicasetsResource, c.ns, name, pt, data, subresources...), &appsv1.ReplicaSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.ReplicaSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// GetScale takes name of the replicaSet, and returns the corresponding scale object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) GetScale(replicaSetName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetSubresourceAction(replicasetsResource, c.ns, "scale", replicaSetName), &autoscalingv1.Scale{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*autoscalingv1.Scale), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeReplicaSets) UpdateScale(replicaSetName string, scale *autoscalingv1.Scale) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(replicasetsResource, "scale", c.ns, scale), &autoscalingv1.Scale{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*autoscalingv1.Scale), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,163 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						appsv1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeStatefulSets implements StatefulSetInterface
 | 
				
			||||||
 | 
					type FakeStatefulSets struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var statefulsetsResource = schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "statefulsets"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var statefulsetsKind = schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSet"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *appsv1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(statefulsetsResource, c.ns, name), &appsv1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *appsv1.StatefulSetList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(statefulsetsResource, statefulsetsKind, c.ns, opts), &appsv1.StatefulSetList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &appsv1.StatefulSetList{ListMeta: obj.(*appsv1.StatefulSetList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*appsv1.StatefulSetList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested statefulSets.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(statefulsetsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a statefulSet and creates it.  Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Create(statefulSet *appsv1.StatefulSet) (result *appsv1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), &appsv1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Update(statefulSet *appsv1.StatefulSet) (result *appsv1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &appsv1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) UpdateStatus(statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &appsv1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(statefulsetsResource, c.ns, name), &appsv1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &appsv1.StatefulSetList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched statefulSet.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *appsv1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, pt, data, subresources...), &appsv1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*appsv1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// GetScale takes name of the statefulSet, and returns the corresponding scale object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) GetScale(statefulSetName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetSubresourceAction(statefulsetsResource, c.ns, "scale", statefulSetName), &autoscalingv1.Scale{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*autoscalingv1.Scale), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateScale takes the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) UpdateScale(statefulSetName string, scale *autoscalingv1.Scale) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "scale", c.ns, scale), &autoscalingv1.Scale{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*autoscalingv1.Scale), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ControllerRevisionExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type DaemonSetExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type DeploymentExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ReplicaSetExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type StatefulSetExpansion interface{}
 | 
				
			||||||
@@ -0,0 +1,224 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ReplicaSetsGetter has a method to return a ReplicaSetInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type ReplicaSetsGetter interface {
 | 
				
			||||||
 | 
						ReplicaSets(namespace string) ReplicaSetInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ReplicaSetInterface has methods to work with ReplicaSet resources.
 | 
				
			||||||
 | 
					type ReplicaSetInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.ReplicaSet) (*v1.ReplicaSet, error)
 | 
				
			||||||
 | 
						Update(*v1.ReplicaSet) (*v1.ReplicaSet, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1.ReplicaSet) (*v1.ReplicaSet, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.ReplicaSet, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.ReplicaSetList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ReplicaSet, err error)
 | 
				
			||||||
 | 
						GetScale(replicaSetName string, options metav1.GetOptions) (*autoscalingv1.Scale, error)
 | 
				
			||||||
 | 
						UpdateScale(replicaSetName string, scale *autoscalingv1.Scale) (*autoscalingv1.Scale, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ReplicaSetExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// replicaSets implements ReplicaSetInterface
 | 
				
			||||||
 | 
					type replicaSets struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newReplicaSets returns a ReplicaSets
 | 
				
			||||||
 | 
					func newReplicaSets(c *AppsV1Client, namespace string) *replicaSets {
 | 
				
			||||||
 | 
						return &replicaSets{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *replicaSets) Get(name string, options metav1.GetOptions) (result *v1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.ReplicaSet{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ReplicaSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *replicaSets) List(opts metav1.ListOptions) (result *v1.ReplicaSetList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.ReplicaSetList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested replicaSets.
 | 
				
			||||||
 | 
					func (c *replicaSets) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *replicaSets) Create(replicaSet *v1.ReplicaSet) (result *v1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.ReplicaSet{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Body(replicaSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a replicaSet and updates it. Returns the server's representation of the replicaSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *replicaSets) Update(replicaSet *v1.ReplicaSet) (result *v1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.ReplicaSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Name(replicaSet.Name).
 | 
				
			||||||
 | 
							Body(replicaSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *replicaSets) UpdateStatus(replicaSet *v1.ReplicaSet) (result *v1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.ReplicaSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Name(replicaSet.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(replicaSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the replicaSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *replicaSets) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *replicaSets) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched replicaSet.
 | 
				
			||||||
 | 
					func (c *replicaSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ReplicaSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.ReplicaSet{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// GetScale takes name of the replicaSet, and returns the corresponding autoscalingv1.Scale object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *replicaSets) GetScale(replicaSetName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						result = &autoscalingv1.Scale{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Name(replicaSetName).
 | 
				
			||||||
 | 
							SubResource("scale").
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateScale takes the top resource name and the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *replicaSets) UpdateScale(replicaSetName string, scale *autoscalingv1.Scale) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						result = &autoscalingv1.Scale{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("replicasets").
 | 
				
			||||||
 | 
							Name(replicaSetName).
 | 
				
			||||||
 | 
							SubResource("scale").
 | 
				
			||||||
 | 
							Body(scale).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,224 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1 "k8s.io/api/apps/v1"
 | 
				
			||||||
 | 
						autoscalingv1 "k8s.io/api/autoscaling/v1"
 | 
				
			||||||
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StatefulSetsGetter has a method to return a StatefulSetInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type StatefulSetsGetter interface {
 | 
				
			||||||
 | 
						StatefulSets(namespace string) StatefulSetInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StatefulSetInterface has methods to work with StatefulSet resources.
 | 
				
			||||||
 | 
					type StatefulSetInterface interface {
 | 
				
			||||||
 | 
						Create(*v1.StatefulSet) (*v1.StatefulSet, error)
 | 
				
			||||||
 | 
						Update(*v1.StatefulSet) (*v1.StatefulSet, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1.StatefulSet) (*v1.StatefulSet, error)
 | 
				
			||||||
 | 
						Delete(name string, options *metav1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options metav1.GetOptions) (*v1.StatefulSet, error)
 | 
				
			||||||
 | 
						List(opts metav1.ListOptions) (*v1.StatefulSetList, error)
 | 
				
			||||||
 | 
						Watch(opts metav1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.StatefulSet, err error)
 | 
				
			||||||
 | 
						GetScale(statefulSetName string, options metav1.GetOptions) (*autoscalingv1.Scale, error)
 | 
				
			||||||
 | 
						UpdateScale(statefulSetName string, scale *autoscalingv1.Scale) (*autoscalingv1.Scale, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						StatefulSetExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// statefulSets implements StatefulSetInterface
 | 
				
			||||||
 | 
					type statefulSets struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newStatefulSets returns a StatefulSets
 | 
				
			||||||
 | 
					func newStatefulSets(c *AppsV1Client, namespace string) *statefulSets {
 | 
				
			||||||
 | 
						return &statefulSets{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) Get(name string, options metav1.GetOptions) (result *v1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *statefulSets) List(opts metav1.ListOptions) (result *v1.StatefulSetList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1.StatefulSetList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested statefulSets.
 | 
				
			||||||
 | 
					func (c *statefulSets) Watch(opts metav1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a statefulSet and creates it.  Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) Create(statefulSet *v1.StatefulSet) (result *v1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Body(statefulSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) Update(statefulSet *v1.StatefulSet) (result *v1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(statefulSet.Name).
 | 
				
			||||||
 | 
							Body(statefulSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *statefulSets) UpdateStatus(statefulSet *v1.StatefulSet) (result *v1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(statefulSet.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(statefulSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *statefulSets) Delete(name string, options *metav1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *statefulSets) DeleteCollection(options *metav1.DeleteOptions, listOptions metav1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched statefulSet.
 | 
				
			||||||
 | 
					func (c *statefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// GetScale takes name of the statefulSet, and returns the corresponding autoscalingv1.Scale object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) GetScale(statefulSetName string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						result = &autoscalingv1.Scale{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(statefulSetName).
 | 
				
			||||||
 | 
							SubResource("scale").
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateScale takes the top resource name and the representation of a scale and updates it. Returns the server's representation of the scale, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) UpdateScale(statefulSetName string, scale *autoscalingv1.Scale) (result *autoscalingv1.Scale, err error) {
 | 
				
			||||||
 | 
						result = &autoscalingv1.Scale{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(statefulSetName).
 | 
				
			||||||
 | 
							SubResource("scale").
 | 
				
			||||||
 | 
							Body(scale).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,41 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "apps_client.go",
 | 
				
			||||||
 | 
					        "controllerrevision.go",
 | 
				
			||||||
 | 
					        "deployment.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					        "statefulset.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/apps/v1beta1",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/apps/v1beta1",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta1/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,99 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/v1beta1"
 | 
				
			||||||
 | 
						"k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type AppsV1beta1Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						ControllerRevisionsGetter
 | 
				
			||||||
 | 
						DeploymentsGetter
 | 
				
			||||||
 | 
						StatefulSetsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1beta1Client is used to interact with features provided by the apps group.
 | 
				
			||||||
 | 
					type AppsV1beta1Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta1Client) ControllerRevisions(namespace string) ControllerRevisionInterface {
 | 
				
			||||||
 | 
						return newControllerRevisions(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta1Client) Deployments(namespace string) DeploymentInterface {
 | 
				
			||||||
 | 
						return newDeployments(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta1Client) StatefulSets(namespace string) StatefulSetInterface {
 | 
				
			||||||
 | 
						return newStatefulSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new AppsV1beta1Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*AppsV1beta1Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &AppsV1beta1Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new AppsV1beta1Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *AppsV1beta1Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new AppsV1beta1Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *AppsV1beta1Client {
 | 
				
			||||||
 | 
						return &AppsV1beta1Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1beta1.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *AppsV1beta1Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,175 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ControllerRevisionsGetter has a method to return a ControllerRevisionInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type ControllerRevisionsGetter interface {
 | 
				
			||||||
 | 
						ControllerRevisions(namespace string) ControllerRevisionInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ControllerRevisionInterface has methods to work with ControllerRevision resources.
 | 
				
			||||||
 | 
					type ControllerRevisionInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta1.ControllerRevision) (*v1beta1.ControllerRevision, error)
 | 
				
			||||||
 | 
						Update(*v1beta1.ControllerRevision) (*v1beta1.ControllerRevision, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta1.ControllerRevision, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta1.ControllerRevisionList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ControllerRevision, err error)
 | 
				
			||||||
 | 
						ControllerRevisionExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// controllerRevisions implements ControllerRevisionInterface
 | 
				
			||||||
 | 
					type controllerRevisions struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newControllerRevisions returns a ControllerRevisions
 | 
				
			||||||
 | 
					func newControllerRevisions(c *AppsV1beta1Client, namespace string) *controllerRevisions {
 | 
				
			||||||
 | 
						return &controllerRevisions{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Get(name string, options v1.GetOptions) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) List(opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta1.ControllerRevisionList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested controllerRevisions.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Create(controllerRevision *v1beta1.ControllerRevision) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Body(controllerRevision).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Update(controllerRevision *v1beta1.ControllerRevision) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(controllerRevision.Name).
 | 
				
			||||||
 | 
							Body(controllerRevision).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched controllerRevision.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,192 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeploymentsGetter has a method to return a DeploymentInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type DeploymentsGetter interface {
 | 
				
			||||||
 | 
						Deployments(namespace string) DeploymentInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeploymentInterface has methods to work with Deployment resources.
 | 
				
			||||||
 | 
					type DeploymentInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta1.Deployment) (*v1beta1.Deployment, error)
 | 
				
			||||||
 | 
						Update(*v1beta1.Deployment) (*v1beta1.Deployment, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1beta1.Deployment) (*v1beta1.Deployment, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta1.Deployment, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta1.DeploymentList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error)
 | 
				
			||||||
 | 
						DeploymentExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// deployments implements DeploymentInterface
 | 
				
			||||||
 | 
					type deployments struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newDeployments returns a Deployments
 | 
				
			||||||
 | 
					func newDeployments(c *AppsV1beta1Client, namespace string) *deployments {
 | 
				
			||||||
 | 
						return &deployments{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Get(name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of Deployments that match those selectors.
 | 
				
			||||||
 | 
					func (c *deployments) List(opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta1.DeploymentList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested deployments.
 | 
				
			||||||
 | 
					func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Create(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Update(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deployment.Name).
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *deployments) UpdateStatus(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deployment.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the deployment and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *deployments) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *deployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched deployment.
 | 
				
			||||||
 | 
					func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
@@ -0,0 +1,40 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "fake_apps_client.go",
 | 
				
			||||||
 | 
					        "fake_controllerrevision.go",
 | 
				
			||||||
 | 
					        "fake_deployment.go",
 | 
				
			||||||
 | 
					        "fake_statefulset.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/apps/v1beta1/fake",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/apps/v1beta1/fake",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/testing: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"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package fake has the automatically generated clients.
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
@@ -0,0 +1,48 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/client-go/deprecated/typed/apps/v1beta1"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
						testing "k8s.io/client-go/testing"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type FakeAppsV1beta1 struct {
 | 
				
			||||||
 | 
						*testing.Fake
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1beta1) ControllerRevisions(namespace string) v1beta1.ControllerRevisionInterface {
 | 
				
			||||||
 | 
						return &FakeControllerRevisions{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1beta1) Deployments(namespace string) v1beta1.DeploymentInterface {
 | 
				
			||||||
 | 
						return &FakeDeployments{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *FakeAppsV1beta1) StatefulSets(namespace string) v1beta1.StatefulSetInterface {
 | 
				
			||||||
 | 
						return &FakeStatefulSets{c, namespace}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *FakeAppsV1beta1) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						var ret *rest.RESTClient
 | 
				
			||||||
 | 
						return ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,128 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeControllerRevisions implements ControllerRevisionInterface
 | 
				
			||||||
 | 
					type FakeControllerRevisions struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1beta1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var controllerrevisionsResource = schema.GroupVersionResource{Group: "apps", Version: "v1beta1", Resource: "controllerrevisions"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var controllerrevisionsKind = schema.GroupVersionKind{Group: "apps", Version: "v1beta1", Kind: "ControllerRevision"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Get(name string, options v1.GetOptions) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(controllerrevisionsResource, c.ns, name), &v1beta1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) List(opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(controllerrevisionsResource, controllerrevisionsKind, c.ns, opts), &v1beta1.ControllerRevisionList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &v1beta1.ControllerRevisionList{ListMeta: obj.(*v1beta1.ControllerRevisionList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*v1beta1.ControllerRevisionList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested controllerRevisions.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(controllerrevisionsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Create(controllerRevision *v1beta1.ControllerRevision) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(controllerrevisionsResource, c.ns, controllerRevision), &v1beta1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Update(controllerRevision *v1beta1.ControllerRevision) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(controllerrevisionsResource, c.ns, controllerRevision), &v1beta1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(controllerrevisionsResource, c.ns, name), &v1beta1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(controllerrevisionsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &v1beta1.ControllerRevisionList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched controllerRevision.
 | 
				
			||||||
 | 
					func (c *FakeControllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(controllerrevisionsResource, c.ns, name, pt, data, subresources...), &v1beta1.ControllerRevision{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.ControllerRevision), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,140 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeDeployments implements DeploymentInterface
 | 
				
			||||||
 | 
					type FakeDeployments struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1beta1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var deploymentsResource = schema.GroupVersionResource{Group: "apps", Version: "v1beta1", Resource: "deployments"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var deploymentsKind = schema.GroupVersionKind{Group: "apps", Version: "v1beta1", Kind: "Deployment"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Get(name string, options v1.GetOptions) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of Deployments that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) List(opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(deploymentsResource, deploymentsKind, c.ns, opts), &v1beta1.DeploymentList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &v1beta1.DeploymentList{ListMeta: obj.(*v1beta1.DeploymentList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*v1beta1.DeploymentList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested deployments.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(deploymentsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Create(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Update(deployment *v1beta1.Deployment) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(deploymentsResource, c.ns, deployment), &v1beta1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeDeployments) UpdateStatus(deployment *v1beta1.Deployment) (*v1beta1.Deployment, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(deploymentsResource, "status", c.ns, deployment), &v1beta1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the deployment and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched deployment.
 | 
				
			||||||
 | 
					func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, pt, data, subresources...), &v1beta1.Deployment{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.Deployment), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,140 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package fake
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/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"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// FakeStatefulSets implements StatefulSetInterface
 | 
				
			||||||
 | 
					type FakeStatefulSets struct {
 | 
				
			||||||
 | 
						Fake *FakeAppsV1beta1
 | 
				
			||||||
 | 
						ns   string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var statefulsetsResource = schema.GroupVersionResource{Group: "apps", Version: "v1beta1", Resource: "statefulsets"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var statefulsetsKind = schema.GroupVersionKind{Group: "apps", Version: "v1beta1", Kind: "StatefulSet"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Get(name string, options v1.GetOptions) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewGetAction(statefulsetsResource, c.ns, name), &v1beta1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) List(opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewListAction(statefulsetsResource, statefulsetsKind, c.ns, opts), &v1beta1.StatefulSetList{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						label, _, _ := testing.ExtractFromListOptions(opts)
 | 
				
			||||||
 | 
						if label == nil {
 | 
				
			||||||
 | 
							label = labels.Everything()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						list := &v1beta1.StatefulSetList{ListMeta: obj.(*v1beta1.StatefulSetList).ListMeta}
 | 
				
			||||||
 | 
						for _, item := range obj.(*v1beta1.StatefulSetList).Items {
 | 
				
			||||||
 | 
							if label.Matches(labels.Set(item.Labels)) {
 | 
				
			||||||
 | 
								list.Items = append(list.Items, item)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return list, err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested statefulSets.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						return c.Fake.
 | 
				
			||||||
 | 
							InvokesWatch(testing.NewWatchAction(statefulsetsResource, c.ns, opts))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a statefulSet and creates it.  Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Create(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewCreateAction(statefulsetsResource, c.ns, statefulSet), &v1beta1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Update(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateAction(statefulsetsResource, c.ns, statefulSet), &v1beta1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) UpdateStatus(statefulSet *v1beta1.StatefulSet) (*v1beta1.StatefulSet, error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewUpdateSubresourceAction(statefulsetsResource, "status", c.ns, statefulSet), &v1beta1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						_, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewDeleteAction(statefulsetsResource, c.ns, name), &v1beta1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						action := testing.NewDeleteCollectionAction(statefulsetsResource, c.ns, listOptions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						_, err := c.Fake.Invokes(action, &v1beta1.StatefulSetList{})
 | 
				
			||||||
 | 
						return err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched statefulSet.
 | 
				
			||||||
 | 
					func (c *FakeStatefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						obj, err := c.Fake.
 | 
				
			||||||
 | 
							Invokes(testing.NewPatchSubresourceAction(statefulsetsResource, c.ns, name, pt, data, subresources...), &v1beta1.StatefulSet{})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if obj == nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return obj.(*v1beta1.StatefulSet), err
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type ControllerRevisionExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type DeploymentExpansion interface{}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type StatefulSetExpansion interface{}
 | 
				
			||||||
@@ -0,0 +1,192 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta1 "k8s.io/api/apps/v1beta1"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StatefulSetsGetter has a method to return a StatefulSetInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type StatefulSetsGetter interface {
 | 
				
			||||||
 | 
						StatefulSets(namespace string) StatefulSetInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// StatefulSetInterface has methods to work with StatefulSet resources.
 | 
				
			||||||
 | 
					type StatefulSetInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta1.StatefulSet) (*v1beta1.StatefulSet, error)
 | 
				
			||||||
 | 
						Update(*v1beta1.StatefulSet) (*v1beta1.StatefulSet, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1beta1.StatefulSet) (*v1beta1.StatefulSet, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta1.StatefulSet, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta1.StatefulSetList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.StatefulSet, err error)
 | 
				
			||||||
 | 
						StatefulSetExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// statefulSets implements StatefulSetInterface
 | 
				
			||||||
 | 
					type statefulSets struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newStatefulSets returns a StatefulSets
 | 
				
			||||||
 | 
					func newStatefulSets(c *AppsV1beta1Client, namespace string) *statefulSets {
 | 
				
			||||||
 | 
						return &statefulSets{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the statefulSet, and returns the corresponding statefulSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) Get(name string, options v1.GetOptions) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of StatefulSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *statefulSets) List(opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta1.StatefulSetList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested statefulSets.
 | 
				
			||||||
 | 
					func (c *statefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a statefulSet and creates it.  Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) Create(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Body(statefulSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a statefulSet and updates it. Returns the server's representation of the statefulSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *statefulSets) Update(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(statefulSet.Name).
 | 
				
			||||||
 | 
							Body(statefulSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *statefulSets) UpdateStatus(statefulSet *v1beta1.StatefulSet) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(statefulSet.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(statefulSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the statefulSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *statefulSets) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *statefulSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched statefulSet.
 | 
				
			||||||
 | 
					func (c *statefulSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.StatefulSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta1.StatefulSet{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("statefulsets").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,43 @@
 | 
				
			|||||||
 | 
					load("@io_bazel_rules_go//go:def.bzl", "go_library")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					go_library(
 | 
				
			||||||
 | 
					    name = "go_default_library",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        "apps_client.go",
 | 
				
			||||||
 | 
					        "controllerrevision.go",
 | 
				
			||||||
 | 
					        "daemonset.go",
 | 
				
			||||||
 | 
					        "deployment.go",
 | 
				
			||||||
 | 
					        "doc.go",
 | 
				
			||||||
 | 
					        "generated_expansion.go",
 | 
				
			||||||
 | 
					        "replicaset.go",
 | 
				
			||||||
 | 
					        "statefulset.go",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/deprecated/typed/apps/v1beta2",
 | 
				
			||||||
 | 
					    importpath = "k8s.io/client-go/deprecated/typed/apps/v1beta2",
 | 
				
			||||||
 | 
					    visibility = ["//staging/src/k8s.io/client-go/deprecated:__subpackages__"],
 | 
				
			||||||
 | 
					    deps = [
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/api/apps/v1beta2:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/scheme:go_default_library",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/rest:go_default_library",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "package-srcs",
 | 
				
			||||||
 | 
					    srcs = glob(["**"]),
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:private"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					filegroup(
 | 
				
			||||||
 | 
					    name = "all-srcs",
 | 
				
			||||||
 | 
					    srcs = [
 | 
				
			||||||
 | 
					        ":package-srcs",
 | 
				
			||||||
 | 
					        "//staging/src/k8s.io/client-go/deprecated/typed/apps/v1beta2/fake:all-srcs",
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    tags = ["automanaged"],
 | 
				
			||||||
 | 
					    visibility = ["//visibility:public"],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
@@ -0,0 +1,109 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						v1beta2 "k8s.io/api/apps/v1beta2"
 | 
				
			||||||
 | 
						"k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type AppsV1beta2Interface interface {
 | 
				
			||||||
 | 
						RESTClient() rest.Interface
 | 
				
			||||||
 | 
						ControllerRevisionsGetter
 | 
				
			||||||
 | 
						DaemonSetsGetter
 | 
				
			||||||
 | 
						DeploymentsGetter
 | 
				
			||||||
 | 
						ReplicaSetsGetter
 | 
				
			||||||
 | 
						StatefulSetsGetter
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// AppsV1beta2Client is used to interact with features provided by the apps group.
 | 
				
			||||||
 | 
					type AppsV1beta2Client struct {
 | 
				
			||||||
 | 
						restClient rest.Interface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta2Client) ControllerRevisions(namespace string) ControllerRevisionInterface {
 | 
				
			||||||
 | 
						return newControllerRevisions(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta2Client) DaemonSets(namespace string) DaemonSetInterface {
 | 
				
			||||||
 | 
						return newDaemonSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta2Client) Deployments(namespace string) DeploymentInterface {
 | 
				
			||||||
 | 
						return newDeployments(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta2Client) ReplicaSets(namespace string) ReplicaSetInterface {
 | 
				
			||||||
 | 
						return newReplicaSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *AppsV1beta2Client) StatefulSets(namespace string) StatefulSetInterface {
 | 
				
			||||||
 | 
						return newStatefulSets(c, namespace)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfig creates a new AppsV1beta2Client for the given config.
 | 
				
			||||||
 | 
					func NewForConfig(c *rest.Config) (*AppsV1beta2Client, error) {
 | 
				
			||||||
 | 
						config := *c
 | 
				
			||||||
 | 
						if err := setConfigDefaults(&config); err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						client, err := rest.RESTClientFor(&config)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return &AppsV1beta2Client{client}, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// NewForConfigOrDie creates a new AppsV1beta2Client for the given config and
 | 
				
			||||||
 | 
					// panics if there is an error in the config.
 | 
				
			||||||
 | 
					func NewForConfigOrDie(c *rest.Config) *AppsV1beta2Client {
 | 
				
			||||||
 | 
						client, err := NewForConfig(c)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return client
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// New creates a new AppsV1beta2Client for the given RESTClient.
 | 
				
			||||||
 | 
					func New(c rest.Interface) *AppsV1beta2Client {
 | 
				
			||||||
 | 
						return &AppsV1beta2Client{c}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func setConfigDefaults(config *rest.Config) error {
 | 
				
			||||||
 | 
						gv := v1beta2.SchemeGroupVersion
 | 
				
			||||||
 | 
						config.GroupVersion = &gv
 | 
				
			||||||
 | 
						config.APIPath = "/apis"
 | 
				
			||||||
 | 
						config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if config.UserAgent == "" {
 | 
				
			||||||
 | 
							config.UserAgent = rest.DefaultKubernetesUserAgent()
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// RESTClient returns a RESTClient that is used to communicate
 | 
				
			||||||
 | 
					// with API server by this client implementation.
 | 
				
			||||||
 | 
					func (c *AppsV1beta2Client) RESTClient() rest.Interface {
 | 
				
			||||||
 | 
						if c == nil {
 | 
				
			||||||
 | 
							return nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.restClient
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,175 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta2 "k8s.io/api/apps/v1beta2"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ControllerRevisionsGetter has a method to return a ControllerRevisionInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type ControllerRevisionsGetter interface {
 | 
				
			||||||
 | 
						ControllerRevisions(namespace string) ControllerRevisionInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ControllerRevisionInterface has methods to work with ControllerRevision resources.
 | 
				
			||||||
 | 
					type ControllerRevisionInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta2.ControllerRevision) (*v1beta2.ControllerRevision, error)
 | 
				
			||||||
 | 
						Update(*v1beta2.ControllerRevision) (*v1beta2.ControllerRevision, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta2.ControllerRevision, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta2.ControllerRevisionList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.ControllerRevision, err error)
 | 
				
			||||||
 | 
						ControllerRevisionExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// controllerRevisions implements ControllerRevisionInterface
 | 
				
			||||||
 | 
					type controllerRevisions struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newControllerRevisions returns a ControllerRevisions
 | 
				
			||||||
 | 
					func newControllerRevisions(c *AppsV1beta2Client, namespace string) *controllerRevisions {
 | 
				
			||||||
 | 
						return &controllerRevisions{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the controllerRevision, and returns the corresponding controllerRevision object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Get(name string, options v1.GetOptions) (result *v1beta2.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) List(opts v1.ListOptions) (result *v1beta2.ControllerRevisionList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta2.ControllerRevisionList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested controllerRevisions.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a controllerRevision and creates it.  Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Create(controllerRevision *v1beta2.ControllerRevision) (result *v1beta2.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Body(controllerRevision).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a controllerRevision and updates it. Returns the server's representation of the controllerRevision, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Update(controllerRevision *v1beta2.ControllerRevision) (result *v1beta2.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(controllerRevision.Name).
 | 
				
			||||||
 | 
							Body(controllerRevision).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the controllerRevision and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched controllerRevision.
 | 
				
			||||||
 | 
					func (c *controllerRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.ControllerRevision, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.ControllerRevision{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("controllerrevisions").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,192 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta2 "k8s.io/api/apps/v1beta2"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DaemonSetsGetter has a method to return a DaemonSetInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type DaemonSetsGetter interface {
 | 
				
			||||||
 | 
						DaemonSets(namespace string) DaemonSetInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DaemonSetInterface has methods to work with DaemonSet resources.
 | 
				
			||||||
 | 
					type DaemonSetInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error)
 | 
				
			||||||
 | 
						Update(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta2.DaemonSet, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta2.DaemonSetList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.DaemonSet, err error)
 | 
				
			||||||
 | 
						DaemonSetExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// daemonSets implements DaemonSetInterface
 | 
				
			||||||
 | 
					type daemonSets struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newDaemonSets returns a DaemonSets
 | 
				
			||||||
 | 
					func newDaemonSets(c *AppsV1beta2Client, namespace string) *daemonSets {
 | 
				
			||||||
 | 
						return &daemonSets{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the daemonSet, and returns the corresponding daemonSet object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *daemonSets) Get(name string, options v1.GetOptions) (result *v1beta2.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of DaemonSets that match those selectors.
 | 
				
			||||||
 | 
					func (c *daemonSets) List(opts v1.ListOptions) (result *v1beta2.DaemonSetList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta2.DaemonSetList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested daemonSets.
 | 
				
			||||||
 | 
					func (c *daemonSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a daemonSet and creates it.  Returns the server's representation of the daemonSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *daemonSets) Create(daemonSet *v1beta2.DaemonSet) (result *v1beta2.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Body(daemonSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a daemonSet and updates it. Returns the server's representation of the daemonSet, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *daemonSets) Update(daemonSet *v1beta2.DaemonSet) (result *v1beta2.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(daemonSet.Name).
 | 
				
			||||||
 | 
							Body(daemonSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *daemonSets) UpdateStatus(daemonSet *v1beta2.DaemonSet) (result *v1beta2.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(daemonSet.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(daemonSet).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the daemonSet and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *daemonSets) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *daemonSets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched daemonSet.
 | 
				
			||||||
 | 
					func (c *daemonSets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.DaemonSet, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.DaemonSet{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("daemonsets").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,192 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1beta2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						"context"
 | 
				
			||||||
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						v1beta2 "k8s.io/api/apps/v1beta2"
 | 
				
			||||||
 | 
						v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
 | 
						types "k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
 | 
						watch "k8s.io/apimachinery/pkg/watch"
 | 
				
			||||||
 | 
						scheme "k8s.io/client-go/deprecated/scheme"
 | 
				
			||||||
 | 
						rest "k8s.io/client-go/rest"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeploymentsGetter has a method to return a DeploymentInterface.
 | 
				
			||||||
 | 
					// A group's client should implement this interface.
 | 
				
			||||||
 | 
					type DeploymentsGetter interface {
 | 
				
			||||||
 | 
						Deployments(namespace string) DeploymentInterface
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeploymentInterface has methods to work with Deployment resources.
 | 
				
			||||||
 | 
					type DeploymentInterface interface {
 | 
				
			||||||
 | 
						Create(*v1beta2.Deployment) (*v1beta2.Deployment, error)
 | 
				
			||||||
 | 
						Update(*v1beta2.Deployment) (*v1beta2.Deployment, error)
 | 
				
			||||||
 | 
						UpdateStatus(*v1beta2.Deployment) (*v1beta2.Deployment, error)
 | 
				
			||||||
 | 
						Delete(name string, options *v1.DeleteOptions) error
 | 
				
			||||||
 | 
						DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
 | 
				
			||||||
 | 
						Get(name string, options v1.GetOptions) (*v1beta2.Deployment, error)
 | 
				
			||||||
 | 
						List(opts v1.ListOptions) (*v1beta2.DeploymentList, error)
 | 
				
			||||||
 | 
						Watch(opts v1.ListOptions) (watch.Interface, error)
 | 
				
			||||||
 | 
						Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.Deployment, err error)
 | 
				
			||||||
 | 
						DeploymentExpansion
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// deployments implements DeploymentInterface
 | 
				
			||||||
 | 
					type deployments struct {
 | 
				
			||||||
 | 
						client rest.Interface
 | 
				
			||||||
 | 
						ns     string
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// newDeployments returns a Deployments
 | 
				
			||||||
 | 
					func newDeployments(c *AppsV1beta2Client, namespace string) *deployments {
 | 
				
			||||||
 | 
						return &deployments{
 | 
				
			||||||
 | 
							client: c.RESTClient(),
 | 
				
			||||||
 | 
							ns:     namespace,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Get takes name of the deployment, and returns the corresponding deployment object, and an error if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Get(name string, options v1.GetOptions) (result *v1beta2.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							VersionedParams(&options, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List takes label and field selectors, and returns the list of Deployments that match those selectors.
 | 
				
			||||||
 | 
					func (c *deployments) List(opts v1.ListOptions) (result *v1beta2.DeploymentList, err error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						result = &v1beta2.DeploymentList{}
 | 
				
			||||||
 | 
						err = c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Watch returns a watch.Interface that watches the requested deployments.
 | 
				
			||||||
 | 
					func (c *deployments) Watch(opts v1.ListOptions) (watch.Interface, error) {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if opts.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						opts.Watch = true
 | 
				
			||||||
 | 
						return c.client.Get().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&opts, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Watch(context.TODO())
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Create takes the representation of a deployment and creates it.  Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Create(deployment *v1beta2.Deployment) (result *v1beta2.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Post().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Update takes the representation of a deployment and updates it. Returns the server's representation of the deployment, and an error, if there is any.
 | 
				
			||||||
 | 
					func (c *deployments) Update(deployment *v1beta2.Deployment) (result *v1beta2.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deployment.Name).
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// UpdateStatus was generated because the type contains a Status member.
 | 
				
			||||||
 | 
					// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (c *deployments) UpdateStatus(deployment *v1beta2.Deployment) (result *v1beta2.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Put().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(deployment.Name).
 | 
				
			||||||
 | 
							SubResource("status").
 | 
				
			||||||
 | 
							Body(deployment).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Delete takes name of the deployment and deletes it. Returns an error if one occurs.
 | 
				
			||||||
 | 
					func (c *deployments) Delete(name string, options *v1.DeleteOptions) error {
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// DeleteCollection deletes a collection of objects.
 | 
				
			||||||
 | 
					func (c *deployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
 | 
				
			||||||
 | 
						var timeout time.Duration
 | 
				
			||||||
 | 
						if listOptions.TimeoutSeconds != nil {
 | 
				
			||||||
 | 
							timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return c.client.Delete().
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							VersionedParams(&listOptions, scheme.ParameterCodec).
 | 
				
			||||||
 | 
							Timeout(timeout).
 | 
				
			||||||
 | 
							Body(options).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Error()
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Patch applies the patch and returns the patched deployment.
 | 
				
			||||||
 | 
					func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.Deployment, err error) {
 | 
				
			||||||
 | 
						result = &v1beta2.Deployment{}
 | 
				
			||||||
 | 
						err = c.client.Patch(pt).
 | 
				
			||||||
 | 
							Namespace(c.ns).
 | 
				
			||||||
 | 
							Resource("deployments").
 | 
				
			||||||
 | 
							SubResource(subresources...).
 | 
				
			||||||
 | 
							Name(name).
 | 
				
			||||||
 | 
							Body(data).
 | 
				
			||||||
 | 
							Do(context.TODO()).
 | 
				
			||||||
 | 
							Into(result)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 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.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Code generated by client-gen. DO NOT EDIT.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This package has the automatically generated typed clients.
 | 
				
			||||||
 | 
					package v1beta2
 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user