2019-03-14 14:56:06 +00:00
|
|
|
/*
|
|
|
|
The MIT License (MIT)
|
|
|
|
|
2023-01-02 11:12:05 +00:00
|
|
|
Copyright (c) 2016-2020 Containous SAS; 2020-2023 Traefik Labs
|
2019-03-14 14:56:06 +00:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Code generated by client-gen. DO NOT EDIT.
|
|
|
|
|
|
|
|
package scheme
|
|
|
|
|
|
|
|
import (
|
2023-03-21 11:00:46 +00:00
|
|
|
traefikcontainousv1alpha1 "github.com/traefik/traefik/v3/pkg/provider/kubernetes/crd/traefikcontainous/v1alpha1"
|
|
|
|
traefikv1alpha1 "github.com/traefik/traefik/v3/pkg/provider/kubernetes/crd/traefikio/v1alpha1"
|
2019-03-14 14:56:06 +00:00
|
|
|
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"
|
2019-08-05 16:24:03 +00:00
|
|
|
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
2019-03-14 14:56:06 +00:00
|
|
|
)
|
|
|
|
|
2020-09-16 13:46:04 +00:00
|
|
|
var Scheme = runtime.NewScheme()
|
|
|
|
var Codecs = serializer.NewCodecFactory(Scheme)
|
|
|
|
var ParameterCodec = runtime.NewParameterCodec(Scheme)
|
|
|
|
var localSchemeBuilder = runtime.SchemeBuilder{
|
2023-03-20 14:38:08 +00:00
|
|
|
traefikcontainousv1alpha1.AddToScheme,
|
2020-09-16 13:46:04 +00:00
|
|
|
traefikv1alpha1.AddToScheme,
|
|
|
|
}
|
2019-03-14 14:56:06 +00:00
|
|
|
|
|
|
|
// AddToScheme adds all types of this clientset into the given scheme. This allows composition
|
|
|
|
// of clientsets, like in:
|
|
|
|
//
|
2022-08-18 09:24:08 +00:00
|
|
|
// import (
|
|
|
|
// "k8s.io/client-go/kubernetes"
|
|
|
|
// clientsetscheme "k8s.io/client-go/kubernetes/scheme"
|
|
|
|
// aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
|
|
|
|
// )
|
2019-03-14 14:56:06 +00:00
|
|
|
//
|
2022-08-18 09:24:08 +00:00
|
|
|
// kclientset, _ := kubernetes.NewForConfig(c)
|
|
|
|
// _ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)
|
2019-03-14 14:56:06 +00:00
|
|
|
//
|
|
|
|
// After this, RawExtensions in Kubernetes types will serialize kube-aggregator types
|
|
|
|
// correctly.
|
2019-08-05 16:24:03 +00:00
|
|
|
var AddToScheme = localSchemeBuilder.AddToScheme
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
v1.AddToGroupVersion(Scheme, schema.GroupVersion{Version: "v1"})
|
|
|
|
utilruntime.Must(AddToScheme(Scheme))
|
2019-03-14 14:56:06 +00:00
|
|
|
}
|