mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
update staging client
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
9b5d1af3ca
commit
5bb53133a9
@ -342,6 +342,8 @@ staging/src/k8s.io/client-go/informers/policy/v1beta1
|
|||||||
staging/src/k8s.io/client-go/informers/rbac
|
staging/src/k8s.io/client-go/informers/rbac
|
||||||
staging/src/k8s.io/client-go/informers/rbac/v1alpha1
|
staging/src/k8s.io/client-go/informers/rbac/v1alpha1
|
||||||
staging/src/k8s.io/client-go/informers/rbac/v1beta1
|
staging/src/k8s.io/client-go/informers/rbac/v1beta1
|
||||||
|
staging/src/k8s.io/client-go/informers/settings
|
||||||
|
staging/src/k8s.io/client-go/informers/settings/v1alpha1
|
||||||
staging/src/k8s.io/client-go/informers/storage
|
staging/src/k8s.io/client-go/informers/storage
|
||||||
staging/src/k8s.io/client-go/informers/storage/v1beta1
|
staging/src/k8s.io/client-go/informers/storage/v1beta1
|
||||||
staging/src/k8s.io/client-go/listers/apps/v1beta1
|
staging/src/k8s.io/client-go/listers/apps/v1beta1
|
||||||
@ -355,6 +357,7 @@ staging/src/k8s.io/client-go/listers/extensions/v1beta1
|
|||||||
staging/src/k8s.io/client-go/listers/policy/v1beta1
|
staging/src/k8s.io/client-go/listers/policy/v1beta1
|
||||||
staging/src/k8s.io/client-go/listers/rbac/v1alpha1
|
staging/src/k8s.io/client-go/listers/rbac/v1alpha1
|
||||||
staging/src/k8s.io/client-go/listers/rbac/v1beta1
|
staging/src/k8s.io/client-go/listers/rbac/v1beta1
|
||||||
|
staging/src/k8s.io/client-go/listers/settings/v1alpha1
|
||||||
staging/src/k8s.io/client-go/listers/storage/v1beta1
|
staging/src/k8s.io/client-go/listers/storage/v1beta1
|
||||||
staging/src/k8s.io/client-go/plugin/pkg/client/auth
|
staging/src/k8s.io/client-go/plugin/pkg/client/auth
|
||||||
staging/src/k8s.io/client-go/plugin/pkg/client/auth/gcp
|
staging/src/k8s.io/client-go/plugin/pkg/client/auth/gcp
|
||||||
|
@ -30,6 +30,7 @@ import (
|
|||||||
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
|
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
|
||||||
policy "k8s.io/client-go/informers/policy"
|
policy "k8s.io/client-go/informers/policy"
|
||||||
rbac "k8s.io/client-go/informers/rbac"
|
rbac "k8s.io/client-go/informers/rbac"
|
||||||
|
settings "k8s.io/client-go/informers/settings"
|
||||||
storage "k8s.io/client-go/informers/storage"
|
storage "k8s.io/client-go/informers/storage"
|
||||||
kubernetes "k8s.io/client-go/kubernetes"
|
kubernetes "k8s.io/client-go/kubernetes"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
@ -103,6 +104,7 @@ type SharedInformerFactory interface {
|
|||||||
Extensions() extensions.Interface
|
Extensions() extensions.Interface
|
||||||
Policy() policy.Interface
|
Policy() policy.Interface
|
||||||
Rbac() rbac.Interface
|
Rbac() rbac.Interface
|
||||||
|
Settings() settings.Interface
|
||||||
Storage() storage.Interface
|
Storage() storage.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,6 +140,10 @@ func (f *sharedInformerFactory) Rbac() rbac.Interface {
|
|||||||
return rbac.New(f)
|
return rbac.New(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (f *sharedInformerFactory) Settings() settings.Interface {
|
||||||
|
return settings.New(f)
|
||||||
|
}
|
||||||
|
|
||||||
func (f *sharedInformerFactory) Storage() storage.Interface {
|
func (f *sharedInformerFactory) Storage() storage.Interface {
|
||||||
return storage.New(f)
|
return storage.New(f)
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@ import (
|
|||||||
policy_v1beta1 "k8s.io/client-go/pkg/apis/policy/v1beta1"
|
policy_v1beta1 "k8s.io/client-go/pkg/apis/policy/v1beta1"
|
||||||
v1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1"
|
v1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1"
|
||||||
rbac_v1beta1 "k8s.io/client-go/pkg/apis/rbac/v1beta1"
|
rbac_v1beta1 "k8s.io/client-go/pkg/apis/rbac/v1beta1"
|
||||||
|
settings_v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
storage_v1beta1 "k8s.io/client-go/pkg/apis/storage/v1beta1"
|
storage_v1beta1 "k8s.io/client-go/pkg/apis/storage/v1beta1"
|
||||||
cache "k8s.io/client-go/tools/cache"
|
cache "k8s.io/client-go/tools/cache"
|
||||||
)
|
)
|
||||||
@ -162,6 +163,10 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource
|
|||||||
case rbac_v1beta1.SchemeGroupVersion.WithResource("rolebindings"):
|
case rbac_v1beta1.SchemeGroupVersion.WithResource("rolebindings"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Rbac().V1beta1().RoleBindings().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Rbac().V1beta1().RoleBindings().Informer()}, nil
|
||||||
|
|
||||||
|
// Group=Settings, Version=V1alpha1
|
||||||
|
case settings_v1alpha1.SchemeGroupVersion.WithResource("podpresets"):
|
||||||
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Settings().V1alpha1().PodPresets().Informer()}, nil
|
||||||
|
|
||||||
// Group=Storage, Version=V1beta1
|
// Group=Storage, Version=V1beta1
|
||||||
case storage_v1beta1.SchemeGroupVersion.WithResource("storageclasses"):
|
case storage_v1beta1.SchemeGroupVersion.WithResource("storageclasses"):
|
||||||
return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1beta1().StorageClasses().Informer()}, nil
|
return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1beta1().StorageClasses().Informer()}, nil
|
||||||
|
44
staging/src/k8s.io/client-go/informers/settings/interface.go
Normal file
44
staging/src/k8s.io/client-go/informers/settings/interface.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was automatically generated by informer-gen
|
||||||
|
|
||||||
|
package settings
|
||||||
|
|
||||||
|
import (
|
||||||
|
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
|
||||||
|
v1alpha1 "k8s.io/client-go/informers/settings/v1alpha1"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Interface provides access to each of this group's versions.
|
||||||
|
type Interface interface {
|
||||||
|
// V1alpha1 provides access to shared informers for resources in V1alpha1.
|
||||||
|
V1alpha1() v1alpha1.Interface
|
||||||
|
}
|
||||||
|
|
||||||
|
type group struct {
|
||||||
|
internalinterfaces.SharedInformerFactory
|
||||||
|
}
|
||||||
|
|
||||||
|
// New returns a new Interface.
|
||||||
|
func New(f internalinterfaces.SharedInformerFactory) Interface {
|
||||||
|
return &group{f}
|
||||||
|
}
|
||||||
|
|
||||||
|
// V1alpha1 returns a new v1alpha1.Interface.
|
||||||
|
func (g *group) V1alpha1() v1alpha1.Interface {
|
||||||
|
return v1alpha1.New(g.SharedInformerFactory)
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was automatically generated by informer-gen
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Interface provides access to all the informers in this group version.
|
||||||
|
type Interface interface {
|
||||||
|
// PodPresets returns a PodPresetInformer.
|
||||||
|
PodPresets() PodPresetInformer
|
||||||
|
}
|
||||||
|
|
||||||
|
type version struct {
|
||||||
|
internalinterfaces.SharedInformerFactory
|
||||||
|
}
|
||||||
|
|
||||||
|
// New returns a new Interface.
|
||||||
|
func New(f internalinterfaces.SharedInformerFactory) Interface {
|
||||||
|
return &version{f}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresets returns a PodPresetInformer.
|
||||||
|
func (v *version) PodPresets() PodPresetInformer {
|
||||||
|
return &podPresetInformer{factory: v.SharedInformerFactory}
|
||||||
|
}
|
@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was automatically generated by informer-gen
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
|
watch "k8s.io/apimachinery/pkg/watch"
|
||||||
|
internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
|
||||||
|
kubernetes "k8s.io/client-go/kubernetes"
|
||||||
|
v1alpha1 "k8s.io/client-go/listers/settings/v1alpha1"
|
||||||
|
settings_v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
|
cache "k8s.io/client-go/tools/cache"
|
||||||
|
time "time"
|
||||||
|
)
|
||||||
|
|
||||||
|
// PodPresetInformer provides access to a shared informer and lister for
|
||||||
|
// PodPresets.
|
||||||
|
type PodPresetInformer interface {
|
||||||
|
Informer() cache.SharedIndexInformer
|
||||||
|
Lister() v1alpha1.PodPresetLister
|
||||||
|
}
|
||||||
|
|
||||||
|
type podPresetInformer struct {
|
||||||
|
factory internalinterfaces.SharedInformerFactory
|
||||||
|
}
|
||||||
|
|
||||||
|
func newPodPresetInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer {
|
||||||
|
sharedIndexInformer := cache.NewSharedIndexInformer(
|
||||||
|
&cache.ListWatch{
|
||||||
|
ListFunc: func(options v1.ListOptions) (runtime.Object, error) {
|
||||||
|
return client.SettingsV1alpha1().PodPresets(v1.NamespaceAll).List(options)
|
||||||
|
},
|
||||||
|
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) {
|
||||||
|
return client.SettingsV1alpha1().PodPresets(v1.NamespaceAll).Watch(options)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
&settings_v1alpha1.PodPreset{},
|
||||||
|
resyncPeriod,
|
||||||
|
cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc},
|
||||||
|
)
|
||||||
|
|
||||||
|
return sharedIndexInformer
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *podPresetInformer) Informer() cache.SharedIndexInformer {
|
||||||
|
return f.factory.InformerFor(&settings_v1alpha1.PodPreset{}, newPodPresetInformer)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *podPresetInformer) Lister() v1alpha1.PodPresetLister {
|
||||||
|
return v1alpha1.NewPodPresetLister(f.Informer().GetIndexer())
|
||||||
|
}
|
@ -34,6 +34,7 @@ import (
|
|||||||
policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
|
policyv1beta1 "k8s.io/client-go/kubernetes/typed/policy/v1beta1"
|
||||||
rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
|
rbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1"
|
||||||
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
|
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
|
||||||
|
settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
|
||||||
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
|
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
|
||||||
rest "k8s.io/client-go/rest"
|
rest "k8s.io/client-go/rest"
|
||||||
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
flowcontrol "k8s.io/client-go/util/flowcontrol"
|
||||||
@ -76,6 +77,9 @@ type Interface interface {
|
|||||||
// Deprecated: please explicitly pick a version if possible.
|
// Deprecated: please explicitly pick a version if possible.
|
||||||
Rbac() rbacv1beta1.RbacV1beta1Interface
|
Rbac() rbacv1beta1.RbacV1beta1Interface
|
||||||
RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
|
RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface
|
||||||
|
SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface
|
||||||
|
// Deprecated: please explicitly pick a version if possible.
|
||||||
|
Settings() settingsv1alpha1.SettingsV1alpha1Interface
|
||||||
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
|
StorageV1beta1() storagev1beta1.StorageV1beta1Interface
|
||||||
// Deprecated: please explicitly pick a version if possible.
|
// Deprecated: please explicitly pick a version if possible.
|
||||||
Storage() storagev1beta1.StorageV1beta1Interface
|
Storage() storagev1beta1.StorageV1beta1Interface
|
||||||
@ -100,6 +104,7 @@ type Clientset struct {
|
|||||||
*policyv1beta1.PolicyV1beta1Client
|
*policyv1beta1.PolicyV1beta1Client
|
||||||
*rbacv1beta1.RbacV1beta1Client
|
*rbacv1beta1.RbacV1beta1Client
|
||||||
*rbacv1alpha1.RbacV1alpha1Client
|
*rbacv1alpha1.RbacV1alpha1Client
|
||||||
|
*settingsv1alpha1.SettingsV1alpha1Client
|
||||||
*storagev1beta1.StorageV1beta1Client
|
*storagev1beta1.StorageV1beta1Client
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -313,6 +318,23 @@ func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
|
|||||||
return c.RbacV1alpha1Client
|
return c.RbacV1alpha1Client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
|
||||||
|
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
|
||||||
|
if c == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return c.SettingsV1alpha1Client
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Settings retrieves the default version of SettingsClient.
|
||||||
|
// Please explicitly pick a version.
|
||||||
|
func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
|
||||||
|
if c == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return c.SettingsV1alpha1Client
|
||||||
|
}
|
||||||
|
|
||||||
// StorageV1beta1 retrieves the StorageV1beta1Client
|
// StorageV1beta1 retrieves the StorageV1beta1Client
|
||||||
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
||||||
if c == nil {
|
if c == nil {
|
||||||
@ -406,6 +428,10 @@ func NewForConfig(c *rest.Config) (*Clientset, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
cs.SettingsV1alpha1Client, err = settingsv1alpha1.NewForConfig(&configShallowCopy)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
cs.StorageV1beta1Client, err = storagev1beta1.NewForConfig(&configShallowCopy)
|
cs.StorageV1beta1Client, err = storagev1beta1.NewForConfig(&configShallowCopy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -438,6 +464,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset {
|
|||||||
cs.PolicyV1beta1Client = policyv1beta1.NewForConfigOrDie(c)
|
cs.PolicyV1beta1Client = policyv1beta1.NewForConfigOrDie(c)
|
||||||
cs.RbacV1beta1Client = rbacv1beta1.NewForConfigOrDie(c)
|
cs.RbacV1beta1Client = rbacv1beta1.NewForConfigOrDie(c)
|
||||||
cs.RbacV1alpha1Client = rbacv1alpha1.NewForConfigOrDie(c)
|
cs.RbacV1alpha1Client = rbacv1alpha1.NewForConfigOrDie(c)
|
||||||
|
cs.SettingsV1alpha1Client = settingsv1alpha1.NewForConfigOrDie(c)
|
||||||
cs.StorageV1beta1Client = storagev1beta1.NewForConfigOrDie(c)
|
cs.StorageV1beta1Client = storagev1beta1.NewForConfigOrDie(c)
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
|
||||||
@ -462,6 +489,7 @@ func New(c rest.Interface) *Clientset {
|
|||||||
cs.PolicyV1beta1Client = policyv1beta1.New(c)
|
cs.PolicyV1beta1Client = policyv1beta1.New(c)
|
||||||
cs.RbacV1beta1Client = rbacv1beta1.New(c)
|
cs.RbacV1beta1Client = rbacv1beta1.New(c)
|
||||||
cs.RbacV1alpha1Client = rbacv1alpha1.New(c)
|
cs.RbacV1alpha1Client = rbacv1alpha1.New(c)
|
||||||
|
cs.SettingsV1alpha1Client = settingsv1alpha1.New(c)
|
||||||
cs.StorageV1beta1Client = storagev1beta1.New(c)
|
cs.StorageV1beta1Client = storagev1beta1.New(c)
|
||||||
|
|
||||||
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
|
||||||
|
@ -52,6 +52,8 @@ import (
|
|||||||
fakerbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake"
|
fakerbacv1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake"
|
||||||
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
|
rbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1"
|
||||||
fakerbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake"
|
fakerbacv1beta1 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake"
|
||||||
|
settingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
|
||||||
|
fakesettingsv1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake"
|
||||||
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
|
storagev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1"
|
||||||
fakestoragev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake"
|
fakestoragev1beta1 "k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake"
|
||||||
"k8s.io/client-go/testing"
|
"k8s.io/client-go/testing"
|
||||||
@ -215,6 +217,16 @@ func (c *Clientset) RbacV1alpha1() rbacv1alpha1.RbacV1alpha1Interface {
|
|||||||
return &fakerbacv1alpha1.FakeRbacV1alpha1{Fake: &c.Fake}
|
return &fakerbacv1alpha1.FakeRbacV1alpha1{Fake: &c.Fake}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SettingsV1alpha1 retrieves the SettingsV1alpha1Client
|
||||||
|
func (c *Clientset) SettingsV1alpha1() settingsv1alpha1.SettingsV1alpha1Interface {
|
||||||
|
return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Settings retrieves the SettingsV1alpha1Client
|
||||||
|
func (c *Clientset) Settings() settingsv1alpha1.SettingsV1alpha1Interface {
|
||||||
|
return &fakesettingsv1alpha1.FakeSettingsV1alpha1{Fake: &c.Fake}
|
||||||
|
}
|
||||||
|
|
||||||
// StorageV1beta1 retrieves the StorageV1beta1Client
|
// StorageV1beta1 retrieves the StorageV1beta1Client
|
||||||
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
func (c *Clientset) StorageV1beta1() storagev1beta1.StorageV1beta1Interface {
|
||||||
return &fakestoragev1beta1.FakeStorageV1beta1{Fake: &c.Fake}
|
return &fakestoragev1beta1.FakeStorageV1beta1{Fake: &c.Fake}
|
||||||
|
@ -33,6 +33,7 @@ import (
|
|||||||
extensions "k8s.io/client-go/pkg/apis/extensions/install"
|
extensions "k8s.io/client-go/pkg/apis/extensions/install"
|
||||||
policy "k8s.io/client-go/pkg/apis/policy/install"
|
policy "k8s.io/client-go/pkg/apis/policy/install"
|
||||||
rbac "k8s.io/client-go/pkg/apis/rbac/install"
|
rbac "k8s.io/client-go/pkg/apis/rbac/install"
|
||||||
|
settings "k8s.io/client-go/pkg/apis/settings/install"
|
||||||
storage "k8s.io/client-go/pkg/apis/storage/install"
|
storage "k8s.io/client-go/pkg/apis/storage/install"
|
||||||
os "os"
|
os "os"
|
||||||
)
|
)
|
||||||
@ -61,6 +62,7 @@ func Install(groupFactoryRegistry announced.APIGroupFactoryRegistry, registry *r
|
|||||||
extensions.Install(groupFactoryRegistry, registry, scheme)
|
extensions.Install(groupFactoryRegistry, registry, scheme)
|
||||||
policy.Install(groupFactoryRegistry, registry, scheme)
|
policy.Install(groupFactoryRegistry, registry, scheme)
|
||||||
rbac.Install(groupFactoryRegistry, registry, scheme)
|
rbac.Install(groupFactoryRegistry, registry, scheme)
|
||||||
|
settings.Install(groupFactoryRegistry, registry, scheme)
|
||||||
storage.Install(groupFactoryRegistry, registry, scheme)
|
storage.Install(groupFactoryRegistry, registry, scheme)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@ import (
|
|||||||
_ "k8s.io/client-go/pkg/apis/extensions/install"
|
_ "k8s.io/client-go/pkg/apis/extensions/install"
|
||||||
_ "k8s.io/client-go/pkg/apis/policy/install"
|
_ "k8s.io/client-go/pkg/apis/policy/install"
|
||||||
_ "k8s.io/client-go/pkg/apis/rbac/install"
|
_ "k8s.io/client-go/pkg/apis/rbac/install"
|
||||||
|
_ "k8s.io/client-go/pkg/apis/settings/install"
|
||||||
_ "k8s.io/client-go/pkg/apis/storage/install"
|
_ "k8s.io/client-go/pkg/apis/storage/install"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ import (
|
|||||||
policyv1beta1 "k8s.io/client-go/pkg/apis/policy/v1beta1"
|
policyv1beta1 "k8s.io/client-go/pkg/apis/policy/v1beta1"
|
||||||
rbacv1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1"
|
rbacv1alpha1 "k8s.io/client-go/pkg/apis/rbac/v1alpha1"
|
||||||
rbacv1beta1 "k8s.io/client-go/pkg/apis/rbac/v1beta1"
|
rbacv1beta1 "k8s.io/client-go/pkg/apis/rbac/v1beta1"
|
||||||
|
settingsv1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
storagev1beta1 "k8s.io/client-go/pkg/apis/storage/v1beta1"
|
storagev1beta1 "k8s.io/client-go/pkg/apis/storage/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ func AddToScheme(scheme *runtime.Scheme) {
|
|||||||
policyv1beta1.AddToScheme(scheme)
|
policyv1beta1.AddToScheme(scheme)
|
||||||
rbacv1beta1.AddToScheme(scheme)
|
rbacv1beta1.AddToScheme(scheme)
|
||||||
rbacv1alpha1.AddToScheme(scheme)
|
rbacv1alpha1.AddToScheme(scheme)
|
||||||
|
settingsv1alpha1.AddToScheme(scheme)
|
||||||
storagev1beta1.AddToScheme(scheme)
|
storagev1beta1.AddToScheme(scheme)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
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 package is generated by client-gen with custom arguments.
|
||||||
|
|
||||||
|
// This package has the automatically generated typed clients.
|
||||||
|
package v1alpha1
|
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
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 package is generated by client-gen with custom arguments.
|
||||||
|
|
||||||
|
// Package fake has the automatically generated clients.
|
||||||
|
package fake
|
@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package fake
|
||||||
|
|
||||||
|
import (
|
||||||
|
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"
|
||||||
|
v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
|
testing "k8s.io/client-go/testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FakePodPresets implements PodPresetInterface
|
||||||
|
type FakePodPresets struct {
|
||||||
|
Fake *FakeSettingsV1alpha1
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
var podpresetsResource = schema.GroupVersionResource{Group: "settings.k8s.io", Version: "v1alpha1", Resource: "podpresets"}
|
||||||
|
|
||||||
|
func (c *FakePodPresets) Create(podPreset *v1alpha1.PodPreset) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(testing.NewCreateAction(podpresetsResource, c.ns, podPreset), &v1alpha1.PodPreset{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.PodPreset), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakePodPresets) Update(podPreset *v1alpha1.PodPreset) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(testing.NewUpdateAction(podpresetsResource, c.ns, podPreset), &v1alpha1.PodPreset{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.PodPreset), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakePodPresets) Delete(name string, options *v1.DeleteOptions) error {
|
||||||
|
_, err := c.Fake.
|
||||||
|
Invokes(testing.NewDeleteAction(podpresetsResource, c.ns, name), &v1alpha1.PodPreset{})
|
||||||
|
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakePodPresets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
|
||||||
|
action := testing.NewDeleteCollectionAction(podpresetsResource, c.ns, listOptions)
|
||||||
|
|
||||||
|
_, err := c.Fake.Invokes(action, &v1alpha1.PodPresetList{})
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakePodPresets) Get(name string, options v1.GetOptions) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(testing.NewGetAction(podpresetsResource, c.ns, name), &v1alpha1.PodPreset{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.PodPreset), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakePodPresets) List(opts v1.ListOptions) (result *v1alpha1.PodPresetList, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(testing.NewListAction(podpresetsResource, c.ns, opts), &v1alpha1.PodPresetList{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||||
|
if label == nil {
|
||||||
|
label = labels.Everything()
|
||||||
|
}
|
||||||
|
list := &v1alpha1.PodPresetList{}
|
||||||
|
for _, item := range obj.(*v1alpha1.PodPresetList).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 podPresets.
|
||||||
|
func (c *FakePodPresets) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
||||||
|
return c.Fake.
|
||||||
|
InvokesWatch(testing.NewWatchAction(podpresetsResource, c.ns, opts))
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch applies the patch and returns the patched podPreset.
|
||||||
|
func (c *FakePodPresets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
obj, err := c.Fake.
|
||||||
|
Invokes(testing.NewPatchSubresourceAction(podpresetsResource, c.ns, name, data, subresources...), &v1alpha1.PodPreset{})
|
||||||
|
|
||||||
|
if obj == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.PodPreset), err
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package fake
|
||||||
|
|
||||||
|
import (
|
||||||
|
v1alpha1 "k8s.io/client-go/kubernetes/typed/settings/v1alpha1"
|
||||||
|
rest "k8s.io/client-go/rest"
|
||||||
|
testing "k8s.io/client-go/testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
type FakeSettingsV1alpha1 struct {
|
||||||
|
*testing.Fake
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeSettingsV1alpha1) PodPresets(namespace string) v1alpha1.PodPresetInterface {
|
||||||
|
return &FakePodPresets{c, namespace}
|
||||||
|
}
|
||||||
|
|
||||||
|
// RESTClient returns a RESTClient that is used to communicate
|
||||||
|
// with API server by this client implementation.
|
||||||
|
func (c *FakeSettingsV1alpha1) RESTClient() rest.Interface {
|
||||||
|
var ret *rest.RESTClient
|
||||||
|
return ret
|
||||||
|
}
|
@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
type PodPresetExpansion interface{}
|
@ -0,0 +1,155 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
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/kubernetes/scheme"
|
||||||
|
v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
|
rest "k8s.io/client-go/rest"
|
||||||
|
)
|
||||||
|
|
||||||
|
// PodPresetsGetter has a method to return a PodPresetInterface.
|
||||||
|
// A group's client should implement this interface.
|
||||||
|
type PodPresetsGetter interface {
|
||||||
|
PodPresets(namespace string) PodPresetInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetInterface has methods to work with PodPreset resources.
|
||||||
|
type PodPresetInterface interface {
|
||||||
|
Create(*v1alpha1.PodPreset) (*v1alpha1.PodPreset, error)
|
||||||
|
Update(*v1alpha1.PodPreset) (*v1alpha1.PodPreset, error)
|
||||||
|
Delete(name string, options *v1.DeleteOptions) error
|
||||||
|
DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
|
||||||
|
Get(name string, options v1.GetOptions) (*v1alpha1.PodPreset, error)
|
||||||
|
List(opts v1.ListOptions) (*v1alpha1.PodPresetList, error)
|
||||||
|
Watch(opts v1.ListOptions) (watch.Interface, error)
|
||||||
|
Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodPreset, err error)
|
||||||
|
PodPresetExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// podPresets implements PodPresetInterface
|
||||||
|
type podPresets struct {
|
||||||
|
client rest.Interface
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
// newPodPresets returns a PodPresets
|
||||||
|
func newPodPresets(c *SettingsV1alpha1Client, namespace string) *podPresets {
|
||||||
|
return &podPresets{
|
||||||
|
client: c.RESTClient(),
|
||||||
|
ns: namespace,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create takes the representation of a podPreset and creates it. Returns the server's representation of the podPreset, and an error, if there is any.
|
||||||
|
func (c *podPresets) Create(podPreset *v1alpha1.PodPreset) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
result = &v1alpha1.PodPreset{}
|
||||||
|
err = c.client.Post().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
Body(podPreset).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update takes the representation of a podPreset and updates it. Returns the server's representation of the podPreset, and an error, if there is any.
|
||||||
|
func (c *podPresets) Update(podPreset *v1alpha1.PodPreset) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
result = &v1alpha1.PodPreset{}
|
||||||
|
err = c.client.Put().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
Name(podPreset.Name).
|
||||||
|
Body(podPreset).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete takes name of the podPreset and deletes it. Returns an error if one occurs.
|
||||||
|
func (c *podPresets) Delete(name string, options *v1.DeleteOptions) error {
|
||||||
|
return c.client.Delete().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
Name(name).
|
||||||
|
Body(options).
|
||||||
|
Do().
|
||||||
|
Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeleteCollection deletes a collection of objects.
|
||||||
|
func (c *podPresets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
|
||||||
|
return c.client.Delete().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
VersionedParams(&listOptions, scheme.ParameterCodec).
|
||||||
|
Body(options).
|
||||||
|
Do().
|
||||||
|
Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get takes name of the podPreset, and returns the corresponding podPreset object, and an error if there is any.
|
||||||
|
func (c *podPresets) Get(name string, options v1.GetOptions) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
result = &v1alpha1.PodPreset{}
|
||||||
|
err = c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
Name(name).
|
||||||
|
VersionedParams(&options, scheme.ParameterCodec).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// List takes label and field selectors, and returns the list of PodPresets that match those selectors.
|
||||||
|
func (c *podPresets) List(opts v1.ListOptions) (result *v1alpha1.PodPresetList, err error) {
|
||||||
|
result = &v1alpha1.PodPresetList{}
|
||||||
|
err = c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
VersionedParams(&opts, scheme.ParameterCodec).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Watch returns a watch.Interface that watches the requested podPresets.
|
||||||
|
func (c *podPresets) Watch(opts v1.ListOptions) (watch.Interface, error) {
|
||||||
|
opts.Watch = true
|
||||||
|
return c.client.Get().
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
VersionedParams(&opts, scheme.ParameterCodec).
|
||||||
|
Watch()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch applies the patch and returns the patched podPreset.
|
||||||
|
func (c *podPresets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodPreset, err error) {
|
||||||
|
result = &v1alpha1.PodPreset{}
|
||||||
|
err = c.client.Patch(pt).
|
||||||
|
Namespace(c.ns).
|
||||||
|
Resource("podpresets").
|
||||||
|
SubResource(subresources...).
|
||||||
|
Name(name).
|
||||||
|
Body(data).
|
||||||
|
Do().
|
||||||
|
Into(result)
|
||||||
|
return
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
|
||||||
|
"k8s.io/client-go/kubernetes/scheme"
|
||||||
|
v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
|
rest "k8s.io/client-go/rest"
|
||||||
|
)
|
||||||
|
|
||||||
|
type SettingsV1alpha1Interface interface {
|
||||||
|
RESTClient() rest.Interface
|
||||||
|
PodPresetsGetter
|
||||||
|
}
|
||||||
|
|
||||||
|
// SettingsV1alpha1Client is used to interact with features provided by the settings.k8s.io group.
|
||||||
|
type SettingsV1alpha1Client struct {
|
||||||
|
restClient rest.Interface
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *SettingsV1alpha1Client) PodPresets(namespace string) PodPresetInterface {
|
||||||
|
return newPodPresets(c, namespace)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewForConfig creates a new SettingsV1alpha1Client for the given config.
|
||||||
|
func NewForConfig(c *rest.Config) (*SettingsV1alpha1Client, error) {
|
||||||
|
config := *c
|
||||||
|
if err := setConfigDefaults(&config); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
client, err := rest.RESTClientFor(&config)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &SettingsV1alpha1Client{client}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewForConfigOrDie creates a new SettingsV1alpha1Client for the given config and
|
||||||
|
// panics if there is an error in the config.
|
||||||
|
func NewForConfigOrDie(c *rest.Config) *SettingsV1alpha1Client {
|
||||||
|
client, err := NewForConfig(c)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
return client
|
||||||
|
}
|
||||||
|
|
||||||
|
// New creates a new SettingsV1alpha1Client for the given RESTClient.
|
||||||
|
func New(c rest.Interface) *SettingsV1alpha1Client {
|
||||||
|
return &SettingsV1alpha1Client{c}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setConfigDefaults(config *rest.Config) error {
|
||||||
|
gv := v1alpha1.SchemeGroupVersion
|
||||||
|
config.GroupVersion = &gv
|
||||||
|
config.APIPath = "/apis"
|
||||||
|
config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs}
|
||||||
|
|
||||||
|
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 *SettingsV1alpha1Client) RESTClient() rest.Interface {
|
||||||
|
if c == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return c.restClient
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was automatically generated by lister-gen
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
// PodPresetListerExpansion allows custom methods to be added to
|
||||||
|
// PodPresetLister.
|
||||||
|
type PodPresetListerExpansion interface{}
|
||||||
|
|
||||||
|
// PodPresetNamespaceListerExpansion allows custom methods to be added to
|
||||||
|
// PodPresetNamespaeLister.
|
||||||
|
type PodPresetNamespaceListerExpansion interface{}
|
@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was automatically generated by lister-gen
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
"k8s.io/apimachinery/pkg/api/errors"
|
||||||
|
"k8s.io/apimachinery/pkg/labels"
|
||||||
|
settings "k8s.io/client-go/pkg/apis/settings"
|
||||||
|
v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
|
"k8s.io/client-go/tools/cache"
|
||||||
|
)
|
||||||
|
|
||||||
|
// PodPresetLister helps list PodPresets.
|
||||||
|
type PodPresetLister interface {
|
||||||
|
// List lists all PodPresets in the indexer.
|
||||||
|
List(selector labels.Selector) (ret []*v1alpha1.PodPreset, err error)
|
||||||
|
// PodPresets returns an object that can list and get PodPresets.
|
||||||
|
PodPresets(namespace string) PodPresetNamespaceLister
|
||||||
|
PodPresetListerExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// podPresetLister implements the PodPresetLister interface.
|
||||||
|
type podPresetLister struct {
|
||||||
|
indexer cache.Indexer
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewPodPresetLister returns a new PodPresetLister.
|
||||||
|
func NewPodPresetLister(indexer cache.Indexer) PodPresetLister {
|
||||||
|
return &podPresetLister{indexer: indexer}
|
||||||
|
}
|
||||||
|
|
||||||
|
// List lists all PodPresets in the indexer.
|
||||||
|
func (s *podPresetLister) List(selector labels.Selector) (ret []*v1alpha1.PodPreset, err error) {
|
||||||
|
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
|
||||||
|
ret = append(ret, m.(*v1alpha1.PodPreset))
|
||||||
|
})
|
||||||
|
return ret, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresets returns an object that can list and get PodPresets.
|
||||||
|
func (s *podPresetLister) PodPresets(namespace string) PodPresetNamespaceLister {
|
||||||
|
return podPresetNamespaceLister{indexer: s.indexer, namespace: namespace}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetNamespaceLister helps list and get PodPresets.
|
||||||
|
type PodPresetNamespaceLister interface {
|
||||||
|
// List lists all PodPresets in the indexer for a given namespace.
|
||||||
|
List(selector labels.Selector) (ret []*v1alpha1.PodPreset, err error)
|
||||||
|
// Get retrieves the PodPreset from the indexer for a given namespace and name.
|
||||||
|
Get(name string) (*v1alpha1.PodPreset, error)
|
||||||
|
PodPresetNamespaceListerExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// podPresetNamespaceLister implements the PodPresetNamespaceLister
|
||||||
|
// interface.
|
||||||
|
type podPresetNamespaceLister struct {
|
||||||
|
indexer cache.Indexer
|
||||||
|
namespace string
|
||||||
|
}
|
||||||
|
|
||||||
|
// List lists all PodPresets in the indexer for a given namespace.
|
||||||
|
func (s podPresetNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.PodPreset, err error) {
|
||||||
|
err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
|
||||||
|
ret = append(ret, m.(*v1alpha1.PodPreset))
|
||||||
|
})
|
||||||
|
return ret, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get retrieves the PodPreset from the indexer for a given namespace and name.
|
||||||
|
func (s podPresetNamespaceLister) Get(name string) (*v1alpha1.PodPreset, error) {
|
||||||
|
obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if !exists {
|
||||||
|
return nil, errors.NewNotFound(settings.Resource("podpreset"), name)
|
||||||
|
}
|
||||||
|
return obj.(*v1alpha1.PodPreset), nil
|
||||||
|
}
|
@ -26,8 +26,8 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/apis/extensions/v1beta1/generated.proto";
|
import "k8s.io/client-go/pkg/apis/extensions/v1beta1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1";
|
option go_package = "v1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
@ -27,7 +27,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1";
|
option go_package = "v1";
|
||||||
|
@ -27,8 +27,8 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto";
|
import "k8s.io/client-go/pkg/apis/autoscaling/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v2alpha1";
|
option go_package = "v2alpha1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1";
|
option go_package = "v1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v2alpha1";
|
option go_package = "v2alpha1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
@ -27,7 +27,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1alpha1";
|
option go_package = "v1alpha1";
|
||||||
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
18
staging/src/k8s.io/client-go/pkg/apis/settings/doc.go
Normal file
18
staging/src/k8s.io/client-go/pkg/apis/settings/doc.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// +groupName=settings.k8s.io
|
||||||
|
package settings
|
@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Package install installs the settings API group, making it available as
|
||||||
|
// an option to all of the API encoding/decoding machinery.
|
||||||
|
package install
|
||||||
|
|
||||||
|
import (
|
||||||
|
"k8s.io/apimachinery/pkg/apimachinery/announced"
|
||||||
|
"k8s.io/apimachinery/pkg/apimachinery/registered"
|
||||||
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
|
"k8s.io/client-go/pkg/api"
|
||||||
|
"k8s.io/client-go/pkg/apis/settings"
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
Install(api.GroupFactoryRegistry, api.Registry, api.Scheme)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Install registers the API group and adds types to a scheme
|
||||||
|
func Install(groupFactoryRegistry announced.APIGroupFactoryRegistry, registry *registered.APIRegistrationManager, scheme *runtime.Scheme) {
|
||||||
|
if err := announced.NewGroupMetaFactory(
|
||||||
|
&announced.GroupMetaFactoryArgs{
|
||||||
|
GroupName: settings.GroupName,
|
||||||
|
VersionPreferenceOrder: []string{v1alpha1.SchemeGroupVersion.Version},
|
||||||
|
ImportPrefix: "k8s.io/client-go/pkg/apis/settings",
|
||||||
|
AddInternalObjectsToScheme: settings.AddToScheme,
|
||||||
|
},
|
||||||
|
announced.VersionToSchemeFunc{
|
||||||
|
v1alpha1.SchemeGroupVersion.Version: v1alpha1.AddToScheme,
|
||||||
|
},
|
||||||
|
).Announce(groupFactoryRegistry).RegisterAndEnable(registry, scheme); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
52
staging/src/k8s.io/client-go/pkg/apis/settings/register.go
Normal file
52
staging/src/k8s.io/client-go/pkg/apis/settings/register.go
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package settings
|
||||||
|
|
||||||
|
import (
|
||||||
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||||
|
AddToScheme = SchemeBuilder.AddToScheme
|
||||||
|
)
|
||||||
|
|
||||||
|
// GroupName is the group name use in this package
|
||||||
|
const GroupName = "settings.k8s.io"
|
||||||
|
|
||||||
|
// SchemeGroupVersion is group version used to register these objects
|
||||||
|
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
||||||
|
|
||||||
|
// Kind takes an unqualified kind and returns a Group qualified GroupKind
|
||||||
|
func Kind(kind string) schema.GroupKind {
|
||||||
|
return SchemeGroupVersion.WithKind(kind).GroupKind()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resource takes an unqualified resource and returns a Group qualified GroupResource
|
||||||
|
func Resource(resource string) schema.GroupResource {
|
||||||
|
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adds the list of known types to api.Scheme.
|
||||||
|
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||||
|
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||||
|
&PodPreset{},
|
||||||
|
&PodPresetList{},
|
||||||
|
)
|
||||||
|
return nil
|
||||||
|
}
|
63
staging/src/k8s.io/client-go/pkg/apis/settings/types.go
Normal file
63
staging/src/k8s.io/client-go/pkg/apis/settings/types.go
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package settings
|
||||||
|
|
||||||
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/client-go/pkg/api"
|
||||||
|
)
|
||||||
|
|
||||||
|
// +genclient=true
|
||||||
|
|
||||||
|
// PodPreset is a policy resource that defines additional runtime
|
||||||
|
// requirements for a Pod.
|
||||||
|
type PodPreset struct {
|
||||||
|
metav1.TypeMeta
|
||||||
|
// +optional
|
||||||
|
metav1.ObjectMeta
|
||||||
|
|
||||||
|
// +optional
|
||||||
|
Spec PodPresetSpec
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetSpec is a description of a pod injection policy.
|
||||||
|
type PodPresetSpec struct {
|
||||||
|
// Selector is a label query over a set of resources, in this case pods.
|
||||||
|
// Required.
|
||||||
|
Selector metav1.LabelSelector
|
||||||
|
// Env defines the collection of EnvVar to inject into containers.
|
||||||
|
// +optional
|
||||||
|
Env []api.EnvVar
|
||||||
|
// EnvFrom defines the collection of EnvFromSource to inject into containers.
|
||||||
|
// +optional
|
||||||
|
EnvFrom []api.EnvFromSource
|
||||||
|
// Volumes defines the collection of Volume to inject into the pod.
|
||||||
|
// +optional
|
||||||
|
Volumes []api.Volume
|
||||||
|
// VolumeMounts defines the collection of VolumeMount to inject into containers.
|
||||||
|
// +optional
|
||||||
|
VolumeMounts []api.VolumeMount
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetList is a list of PodPreset objects.
|
||||||
|
type PodPresetList struct {
|
||||||
|
metav1.TypeMeta
|
||||||
|
// +optional
|
||||||
|
metav1.ListMeta
|
||||||
|
|
||||||
|
Items []PodPreset
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// +groupName=settings.k8s.io
|
||||||
|
package v1alpha1
|
@ -0,0 +1,924 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Code generated by protoc-gen-gogo.
|
||||||
|
// source: k8s.io/kubernetes/pkg/apis/settings/v1alpha1/generated.proto
|
||||||
|
// DO NOT EDIT!
|
||||||
|
|
||||||
|
/*
|
||||||
|
Package v1alpha1 is a generated protocol buffer package.
|
||||||
|
|
||||||
|
It is generated from these files:
|
||||||
|
k8s.io/kubernetes/pkg/apis/settings/v1alpha1/generated.proto
|
||||||
|
|
||||||
|
It has these top-level messages:
|
||||||
|
PodPreset
|
||||||
|
PodPresetList
|
||||||
|
PodPresetSpec
|
||||||
|
*/
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import proto "github.com/gogo/protobuf/proto"
|
||||||
|
import fmt "fmt"
|
||||||
|
import math "math"
|
||||||
|
|
||||||
|
import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/pkg/api/v1"
|
||||||
|
|
||||||
|
import strings "strings"
|
||||||
|
import reflect "reflect"
|
||||||
|
|
||||||
|
import io "io"
|
||||||
|
|
||||||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
|
var _ = proto.Marshal
|
||||||
|
var _ = fmt.Errorf
|
||||||
|
var _ = math.Inf
|
||||||
|
|
||||||
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the proto package it is being compiled against.
|
||||||
|
const _ = proto.GoGoProtoPackageIsVersion1
|
||||||
|
|
||||||
|
func (m *PodPreset) Reset() { *m = PodPreset{} }
|
||||||
|
func (*PodPreset) ProtoMessage() {}
|
||||||
|
func (*PodPreset) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
|
||||||
|
|
||||||
|
func (m *PodPresetList) Reset() { *m = PodPresetList{} }
|
||||||
|
func (*PodPresetList) ProtoMessage() {}
|
||||||
|
func (*PodPresetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
|
||||||
|
|
||||||
|
func (m *PodPresetSpec) Reset() { *m = PodPresetSpec{} }
|
||||||
|
func (*PodPresetSpec) ProtoMessage() {}
|
||||||
|
func (*PodPresetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
proto.RegisterType((*PodPreset)(nil), "k8s.io.client-go.pkg.apis.settings.v1alpha1.PodPreset")
|
||||||
|
proto.RegisterType((*PodPresetList)(nil), "k8s.io.client-go.pkg.apis.settings.v1alpha1.PodPresetList")
|
||||||
|
proto.RegisterType((*PodPresetSpec)(nil), "k8s.io.client-go.pkg.apis.settings.v1alpha1.PodPresetSpec")
|
||||||
|
}
|
||||||
|
func (m *PodPreset) Marshal() (data []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
data = make([]byte, size)
|
||||||
|
n, err := m.MarshalTo(data)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return data[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPreset) MarshalTo(data []byte) (int, error) {
|
||||||
|
var i int
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
data[i] = 0xa
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
|
||||||
|
n1, err := m.ObjectMeta.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n1
|
||||||
|
data[i] = 0x12
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
|
||||||
|
n2, err := m.Spec.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n2
|
||||||
|
return i, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPresetList) Marshal() (data []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
data = make([]byte, size)
|
||||||
|
n, err := m.MarshalTo(data)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return data[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPresetList) MarshalTo(data []byte) (int, error) {
|
||||||
|
var i int
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
data[i] = 0xa
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
|
||||||
|
n3, err := m.ListMeta.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n3
|
||||||
|
if len(m.Items) > 0 {
|
||||||
|
for _, msg := range m.Items {
|
||||||
|
data[i] = 0x12
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(msg.Size()))
|
||||||
|
n, err := msg.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return i, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPresetSpec) Marshal() (data []byte, err error) {
|
||||||
|
size := m.Size()
|
||||||
|
data = make([]byte, size)
|
||||||
|
n, err := m.MarshalTo(data)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return data[:n], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPresetSpec) MarshalTo(data []byte) (int, error) {
|
||||||
|
var i int
|
||||||
|
_ = i
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
data[i] = 0xa
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(m.Selector.Size()))
|
||||||
|
n4, err := m.Selector.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n4
|
||||||
|
if len(m.Env) > 0 {
|
||||||
|
for _, msg := range m.Env {
|
||||||
|
data[i] = 0x12
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(msg.Size()))
|
||||||
|
n, err := msg.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(m.EnvFrom) > 0 {
|
||||||
|
for _, msg := range m.EnvFrom {
|
||||||
|
data[i] = 0x1a
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(msg.Size()))
|
||||||
|
n, err := msg.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(m.Volumes) > 0 {
|
||||||
|
for _, msg := range m.Volumes {
|
||||||
|
data[i] = 0x22
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(msg.Size()))
|
||||||
|
n, err := msg.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(m.VolumeMounts) > 0 {
|
||||||
|
for _, msg := range m.VolumeMounts {
|
||||||
|
data[i] = 0x2a
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(data, i, uint64(msg.Size()))
|
||||||
|
n, err := msg.MarshalTo(data[i:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
i += n
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return i, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func encodeFixed64Generated(data []byte, offset int, v uint64) int {
|
||||||
|
data[offset] = uint8(v)
|
||||||
|
data[offset+1] = uint8(v >> 8)
|
||||||
|
data[offset+2] = uint8(v >> 16)
|
||||||
|
data[offset+3] = uint8(v >> 24)
|
||||||
|
data[offset+4] = uint8(v >> 32)
|
||||||
|
data[offset+5] = uint8(v >> 40)
|
||||||
|
data[offset+6] = uint8(v >> 48)
|
||||||
|
data[offset+7] = uint8(v >> 56)
|
||||||
|
return offset + 8
|
||||||
|
}
|
||||||
|
func encodeFixed32Generated(data []byte, offset int, v uint32) int {
|
||||||
|
data[offset] = uint8(v)
|
||||||
|
data[offset+1] = uint8(v >> 8)
|
||||||
|
data[offset+2] = uint8(v >> 16)
|
||||||
|
data[offset+3] = uint8(v >> 24)
|
||||||
|
return offset + 4
|
||||||
|
}
|
||||||
|
func encodeVarintGenerated(data []byte, offset int, v uint64) int {
|
||||||
|
for v >= 1<<7 {
|
||||||
|
data[offset] = uint8(v&0x7f | 0x80)
|
||||||
|
v >>= 7
|
||||||
|
offset++
|
||||||
|
}
|
||||||
|
data[offset] = uint8(v)
|
||||||
|
return offset + 1
|
||||||
|
}
|
||||||
|
func (m *PodPreset) Size() (n int) {
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
l = m.ObjectMeta.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
l = m.Spec.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPresetList) Size() (n int) {
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
l = m.ListMeta.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
if len(m.Items) > 0 {
|
||||||
|
for _, e := range m.Items {
|
||||||
|
l = e.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *PodPresetSpec) Size() (n int) {
|
||||||
|
var l int
|
||||||
|
_ = l
|
||||||
|
l = m.Selector.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
if len(m.Env) > 0 {
|
||||||
|
for _, e := range m.Env {
|
||||||
|
l = e.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(m.EnvFrom) > 0 {
|
||||||
|
for _, e := range m.EnvFrom {
|
||||||
|
l = e.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(m.Volumes) > 0 {
|
||||||
|
for _, e := range m.Volumes {
|
||||||
|
l = e.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(m.VolumeMounts) > 0 {
|
||||||
|
for _, e := range m.VolumeMounts {
|
||||||
|
l = e.Size()
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
|
||||||
|
func sovGenerated(x uint64) (n int) {
|
||||||
|
for {
|
||||||
|
n++
|
||||||
|
x >>= 7
|
||||||
|
if x == 0 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return n
|
||||||
|
}
|
||||||
|
func sozGenerated(x uint64) (n int) {
|
||||||
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||||
|
}
|
||||||
|
func (this *PodPreset) String() string {
|
||||||
|
if this == nil {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
s := strings.Join([]string{`&PodPreset{`,
|
||||||
|
`ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
||||||
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodPresetSpec", "PodPresetSpec", 1), `&`, ``, 1) + `,`,
|
||||||
|
`}`,
|
||||||
|
}, "")
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (this *PodPresetList) String() string {
|
||||||
|
if this == nil {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
s := strings.Join([]string{`&PodPresetList{`,
|
||||||
|
`ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
||||||
|
`Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "PodPreset", "PodPreset", 1), `&`, ``, 1) + `,`,
|
||||||
|
`}`,
|
||||||
|
}, "")
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (this *PodPresetSpec) String() string {
|
||||||
|
if this == nil {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
s := strings.Join([]string{`&PodPresetSpec{`,
|
||||||
|
`Selector:` + strings.Replace(strings.Replace(this.Selector.String(), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`,
|
||||||
|
`Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_kubernetes_pkg_api_v1.EnvVar", 1), `&`, ``, 1) + `,`,
|
||||||
|
`EnvFrom:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EnvFrom), "EnvFromSource", "k8s_io_kubernetes_pkg_api_v1.EnvFromSource", 1), `&`, ``, 1) + `,`,
|
||||||
|
`Volumes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "k8s_io_kubernetes_pkg_api_v1.Volume", 1), `&`, ``, 1) + `,`,
|
||||||
|
`VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "k8s_io_kubernetes_pkg_api_v1.VolumeMount", 1), `&`, ``, 1) + `,`,
|
||||||
|
`}`,
|
||||||
|
}, "")
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func valueToStringGenerated(v interface{}) string {
|
||||||
|
rv := reflect.ValueOf(v)
|
||||||
|
if rv.IsNil() {
|
||||||
|
return "nil"
|
||||||
|
}
|
||||||
|
pv := reflect.Indirect(rv).Interface()
|
||||||
|
return fmt.Sprintf("*%v", pv)
|
||||||
|
}
|
||||||
|
func (m *PodPreset) Unmarshal(data []byte) error {
|
||||||
|
l := len(data)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: PodPreset: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: PodPreset: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 2:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipGenerated(data[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func (m *PodPresetList) Unmarshal(data []byte) error {
|
||||||
|
l := len(data)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: PodPresetList: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: PodPresetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 2:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.Items = append(m.Items, PodPreset{})
|
||||||
|
if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipGenerated(data[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func (m *PodPresetSpec) Unmarshal(data []byte) error {
|
||||||
|
l := len(data)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
preIndex := iNdEx
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fieldNum := int32(wire >> 3)
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
if wireType == 4 {
|
||||||
|
return fmt.Errorf("proto: PodPresetSpec: wiretype end group for non-group")
|
||||||
|
}
|
||||||
|
if fieldNum <= 0 {
|
||||||
|
return fmt.Errorf("proto: PodPresetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||||
|
}
|
||||||
|
switch fieldNum {
|
||||||
|
case 1:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 2:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.Env = append(m.Env, k8s_io_kubernetes_pkg_api_v1.EnvVar{})
|
||||||
|
if err := m.Env[len(m.Env)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 3:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.EnvFrom = append(m.EnvFrom, k8s_io_kubernetes_pkg_api_v1.EnvFromSource{})
|
||||||
|
if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 4:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.Volumes = append(m.Volumes, k8s_io_kubernetes_pkg_api_v1.Volume{})
|
||||||
|
if err := m.Volumes[len(m.Volumes)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
case 5:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType)
|
||||||
|
}
|
||||||
|
var msglen int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
msglen |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if msglen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + msglen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.VolumeMounts = append(m.VolumeMounts, k8s_io_kubernetes_pkg_api_v1.VolumeMount{})
|
||||||
|
if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
iNdEx = postIndex
|
||||||
|
default:
|
||||||
|
iNdEx = preIndex
|
||||||
|
skippy, err := skipGenerated(data[iNdEx:])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if skippy < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
if (iNdEx + skippy) > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx += skippy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if iNdEx > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func skipGenerated(data []byte) (n int, err error) {
|
||||||
|
l := len(data)
|
||||||
|
iNdEx := 0
|
||||||
|
for iNdEx < l {
|
||||||
|
var wire uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return 0, ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
wire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
wireType := int(wire & 0x7)
|
||||||
|
switch wireType {
|
||||||
|
case 0:
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return 0, ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
iNdEx++
|
||||||
|
if data[iNdEx-1] < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return iNdEx, nil
|
||||||
|
case 1:
|
||||||
|
iNdEx += 8
|
||||||
|
return iNdEx, nil
|
||||||
|
case 2:
|
||||||
|
var length int
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return 0, ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
length |= (int(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
iNdEx += length
|
||||||
|
if length < 0 {
|
||||||
|
return 0, ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
return iNdEx, nil
|
||||||
|
case 3:
|
||||||
|
for {
|
||||||
|
var innerWire uint64
|
||||||
|
var start int = iNdEx
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return 0, ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := data[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
innerWire |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
innerWireType := int(innerWire & 0x7)
|
||||||
|
if innerWireType == 4 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
next, err := skipGenerated(data[start:])
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
iNdEx = start + next
|
||||||
|
}
|
||||||
|
return iNdEx, nil
|
||||||
|
case 4:
|
||||||
|
return iNdEx, nil
|
||||||
|
case 5:
|
||||||
|
iNdEx += 4
|
||||||
|
return iNdEx, nil
|
||||||
|
default:
|
||||||
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
panic("unreachable")
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
||||||
|
)
|
||||||
|
|
||||||
|
var fileDescriptorGenerated = []byte{
|
||||||
|
// 550 bytes of a gzipped FileDescriptorProto
|
||||||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x8b, 0xd3, 0x40,
|
||||||
|
0x14, 0xc7, 0x9b, 0x6d, 0x4b, 0xeb, 0xb4, 0x8b, 0x12, 0x3c, 0x84, 0x1e, 0xb2, 0x4b, 0xf1, 0xb0,
|
||||||
|
0xea, 0x3a, 0xb1, 0xab, 0xa8, 0xa0, 0xa7, 0xc8, 0x0a, 0x82, 0xcb, 0x2e, 0x29, 0xf4, 0x20, 0x2b,
|
||||||
|
0x38, 0x4d, 0x9f, 0x69, 0x6c, 0x93, 0x09, 0x33, 0x93, 0xa0, 0x37, 0x3f, 0x82, 0x5f, 0x4a, 0x28,
|
||||||
|
0xe8, 0x61, 0x8f, 0x9e, 0x16, 0x5b, 0xbf, 0x88, 0xcc, 0x74, 0xd2, 0x44, 0xba, 0x65, 0xab, 0xb7,
|
||||||
|
0x79, 0x8f, 0xf7, 0xff, 0xbd, 0xff, 0x3f, 0x2f, 0xe8, 0xc5, 0xe4, 0x19, 0xc7, 0x21, 0x75, 0x26,
|
||||||
|
0xe9, 0x10, 0x58, 0x0c, 0x02, 0xb8, 0x93, 0x4c, 0x02, 0x87, 0x24, 0x21, 0x77, 0x38, 0x08, 0x11,
|
||||||
|
0xc6, 0x01, 0x77, 0xb2, 0x1e, 0x99, 0x26, 0x63, 0xd2, 0x73, 0x02, 0x88, 0x81, 0x11, 0x01, 0x23,
|
||||||
|
0x9c, 0x30, 0x2a, 0xa8, 0x79, 0xb8, 0x54, 0xe3, 0x42, 0x8d, 0x93, 0x49, 0x80, 0xa5, 0x1a, 0xe7,
|
||||||
|
0x6a, 0x9c, 0xab, 0x3b, 0x0f, 0x82, 0x50, 0x8c, 0xd3, 0x21, 0xf6, 0x69, 0xe4, 0x04, 0x34, 0xa0,
|
||||||
|
0x8e, 0x82, 0x0c, 0xd3, 0x0f, 0xaa, 0x52, 0x85, 0x7a, 0x2d, 0xe1, 0x9d, 0xc7, 0xda, 0x1a, 0x49,
|
||||||
|
0xc2, 0x88, 0xf8, 0xe3, 0x30, 0x06, 0xf6, 0xb9, 0x30, 0x17, 0x81, 0x20, 0x4e, 0xb6, 0x66, 0xa9,
|
||||||
|
0xe3, 0x6c, 0x52, 0xb1, 0x34, 0x16, 0x61, 0x04, 0x6b, 0x82, 0x27, 0xd7, 0x09, 0xb8, 0x3f, 0x86,
|
||||||
|
0x88, 0xac, 0xe9, 0x4a, 0xf6, 0x38, 0xb0, 0x0c, 0x58, 0xe1, 0x0d, 0x3e, 0x91, 0x28, 0x99, 0xc2,
|
||||||
|
0x55, 0xf6, 0x0e, 0x37, 0x7e, 0xef, 0x2b, 0xa6, 0xbb, 0x3f, 0x0c, 0x74, 0xe3, 0x8c, 0x8e, 0xce,
|
||||||
|
0x18, 0x70, 0x10, 0xe6, 0x7b, 0xd4, 0x94, 0xa9, 0x47, 0x44, 0x10, 0xcb, 0xd8, 0x37, 0x0e, 0x5a,
|
||||||
|
0x47, 0x0f, 0xb1, 0x3e, 0x40, 0xd9, 0x7c, 0x71, 0x02, 0x39, 0x8d, 0xb3, 0x1e, 0x3e, 0x1d, 0x7e,
|
||||||
|
0x04, 0x5f, 0x9c, 0x80, 0x20, 0xae, 0x39, 0xbb, 0xdc, 0xab, 0x2c, 0x2e, 0xf7, 0x50, 0xd1, 0xf3,
|
||||||
|
0x56, 0x54, 0xf3, 0x1d, 0xaa, 0xf1, 0x04, 0x7c, 0x6b, 0x47, 0xd1, 0x9f, 0xe3, 0x7f, 0x39, 0x2f,
|
||||||
|
0x5e, 0x19, 0xed, 0x27, 0xe0, 0xbb, 0x6d, 0xbd, 0xa8, 0x26, 0x2b, 0x4f, 0x61, 0xbb, 0xdf, 0x0d,
|
||||||
|
0xb4, 0xbb, 0x9a, 0x7a, 0x13, 0x72, 0x61, 0x9e, 0xaf, 0x45, 0xc2, 0xdb, 0x45, 0x92, 0x6a, 0x15,
|
||||||
|
0xe8, 0x96, 0xde, 0xd3, 0xcc, 0x3b, 0xa5, 0x38, 0xe7, 0xa8, 0x1e, 0x0a, 0x88, 0xb8, 0xb5, 0xb3,
|
||||||
|
0x5f, 0x3d, 0x68, 0x1d, 0x3d, 0xfd, 0xcf, 0x3c, 0xee, 0xae, 0xde, 0x51, 0x7f, 0x2d, 0x69, 0xde,
|
||||||
|
0x12, 0xda, 0xfd, 0x56, 0x2d, 0xa5, 0x91, 0x29, 0x4d, 0x82, 0x9a, 0x1c, 0xa6, 0xe0, 0x0b, 0xca,
|
||||||
|
0x74, 0x9a, 0x47, 0x5b, 0xa6, 0x21, 0x43, 0x98, 0xf6, 0xb5, 0xb4, 0x88, 0x94, 0x77, 0xbc, 0x15,
|
||||||
|
0xd6, 0x7c, 0x89, 0xaa, 0x10, 0x67, 0x3a, 0xd0, 0x9d, 0xcd, 0x81, 0x24, 0xf5, 0x38, 0xce, 0x06,
|
||||||
|
0x84, 0xb9, 0x2d, 0x8d, 0xab, 0x1e, 0xc7, 0x99, 0x27, 0xd5, 0xe6, 0x00, 0x35, 0x20, 0xce, 0x5e,
|
||||||
|
0x31, 0x1a, 0x59, 0x55, 0x05, 0xba, 0x7f, 0x2d, 0x48, 0x0e, 0xf7, 0x69, 0xca, 0x7c, 0x70, 0x6f,
|
||||||
|
0x6a, 0x5e, 0x43, 0xb7, 0xbd, 0x1c, 0x66, 0x9e, 0xa2, 0x46, 0x46, 0xa7, 0x69, 0x04, 0xdc, 0xaa,
|
||||||
|
0x6d, 0x63, 0x70, 0xa0, 0x86, 0x0b, 0xe0, 0xb2, 0xe6, 0x5e, 0x4e, 0x31, 0x7d, 0xd4, 0x5e, 0x3e,
|
||||||
|
0x4f, 0x68, 0x1a, 0x0b, 0x6e, 0xd5, 0x15, 0xf5, 0xee, 0x36, 0x54, 0xa5, 0x70, 0x6f, 0x6b, 0x74,
|
||||||
|
0xbb, 0xd4, 0xe4, 0xde, 0x5f, 0x50, 0xf7, 0xde, 0x6c, 0x6e, 0x57, 0x2e, 0xe6, 0x76, 0xe5, 0xe7,
|
||||||
|
0xdc, 0xae, 0x7c, 0x59, 0xd8, 0xc6, 0x6c, 0x61, 0x1b, 0x17, 0x0b, 0xdb, 0xf8, 0xb5, 0xb0, 0x8d,
|
||||||
|
0xaf, 0xbf, 0xed, 0xca, 0xdb, 0x66, 0xfe, 0x4f, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x91, 0x84,
|
||||||
|
0x03, 0x10, 0x2f, 0x05, 0x00, 0x00,
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// This file was autogenerated by go-to-protobuf. Do not edit it manually!
|
||||||
|
|
||||||
|
syntax = 'proto2';
|
||||||
|
|
||||||
|
package k8s.io.kubernetes.pkg.apis.settings.v1alpha1;
|
||||||
|
|
||||||
|
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
|
||||||
|
import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
||||||
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
|
// Package-wide variables from generator "generated".
|
||||||
|
option go_package = "v1alpha1";
|
||||||
|
|
||||||
|
// PodPreset is a policy resource that defines additional runtime
|
||||||
|
// requirements for a Pod.
|
||||||
|
message PodPreset {
|
||||||
|
// +optional
|
||||||
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
|
// +optional
|
||||||
|
optional PodPresetSpec spec = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetList is a list of PodPreset objects.
|
||||||
|
message PodPresetList {
|
||||||
|
// Standard list metadata.
|
||||||
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
|
// +optional
|
||||||
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||||
|
|
||||||
|
// Items is a list of schema objects.
|
||||||
|
repeated PodPreset items = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetSpec is a description of a pod injection policy.
|
||||||
|
message PodPresetSpec {
|
||||||
|
// Selector is a label query over a set of resources, in this case pods.
|
||||||
|
// Required.
|
||||||
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
|
||||||
|
|
||||||
|
// Env defines the collection of EnvVar to inject into containers.
|
||||||
|
// +optional
|
||||||
|
repeated k8s.io.kubernetes.pkg.api.v1.EnvVar env = 2;
|
||||||
|
|
||||||
|
// EnvFrom defines the collection of EnvFromSource to inject into containers.
|
||||||
|
// +optional
|
||||||
|
repeated k8s.io.kubernetes.pkg.api.v1.EnvFromSource envFrom = 3;
|
||||||
|
|
||||||
|
// Volumes defines the collection of Volume to inject into the pod.
|
||||||
|
// +optional
|
||||||
|
repeated k8s.io.kubernetes.pkg.api.v1.Volume volumes = 4;
|
||||||
|
|
||||||
|
// VolumeMounts defines the collection of VolumeMount to inject into containers.
|
||||||
|
// +optional
|
||||||
|
repeated k8s.io.kubernetes.pkg.api.v1.VolumeMount volumeMounts = 5;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
|
)
|
||||||
|
|
||||||
|
// GroupName is the group name use in this package
|
||||||
|
const GroupName = "settings.k8s.io"
|
||||||
|
|
||||||
|
// SchemeGroupVersion is group version used to register these objects
|
||||||
|
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
||||||
|
|
||||||
|
// Resource takes an unqualified resource and returns a Group qualified GroupResource
|
||||||
|
func Resource(resource string) schema.GroupResource {
|
||||||
|
return SchemeGroupVersion.WithResource(resource).GroupResource()
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||||
|
AddToScheme = SchemeBuilder.AddToScheme
|
||||||
|
)
|
||||||
|
|
||||||
|
// Adds the list of known types to api.Scheme.
|
||||||
|
func addKnownTypes(scheme *runtime.Scheme) error {
|
||||||
|
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||||
|
&PodPreset{},
|
||||||
|
&PodPresetList{},
|
||||||
|
)
|
||||||
|
metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
|
return nil
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
"k8s.io/client-go/pkg/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
// +genclient=true
|
||||||
|
|
||||||
|
// PodPreset is a policy resource that defines additional runtime
|
||||||
|
// requirements for a Pod.
|
||||||
|
type PodPreset struct {
|
||||||
|
metav1.TypeMeta `json:",inline"`
|
||||||
|
// +optional
|
||||||
|
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
|
// +optional
|
||||||
|
Spec PodPresetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetSpec is a description of a pod injection policy.
|
||||||
|
type PodPresetSpec struct {
|
||||||
|
// Selector is a label query over a set of resources, in this case pods.
|
||||||
|
// Required.
|
||||||
|
Selector metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"`
|
||||||
|
|
||||||
|
// Env defines the collection of EnvVar to inject into containers.
|
||||||
|
// +optional
|
||||||
|
Env []v1.EnvVar `json:"env,omitempty" protobuf:"bytes,2,rep,name=env"`
|
||||||
|
// EnvFrom defines the collection of EnvFromSource to inject into containers.
|
||||||
|
// +optional
|
||||||
|
EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,3,rep,name=envFrom"`
|
||||||
|
// Volumes defines the collection of Volume to inject into the pod.
|
||||||
|
// +optional
|
||||||
|
Volumes []v1.Volume `json:"volumes,omitempty" protobuf:"bytes,4,rep,name=volumes"`
|
||||||
|
// VolumeMounts defines the collection of VolumeMount to inject into containers.
|
||||||
|
// +optional
|
||||||
|
VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,5,rep,name=volumeMounts"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodPresetList is a list of PodPreset objects.
|
||||||
|
type PodPresetList struct {
|
||||||
|
metav1.TypeMeta `json:",inline"`
|
||||||
|
// Standard list metadata.
|
||||||
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
|
// +optional
|
||||||
|
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
|
// Items is a list of schema objects.
|
||||||
|
Items []PodPreset `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
// This file contains a collection of methods that can be used from go-restful to
|
||||||
|
// generate Swagger API documentation for its models. Please read this PR for more
|
||||||
|
// information on the implementation: https://github.com/emicklei/go-restful/pull/215
|
||||||
|
//
|
||||||
|
// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
|
||||||
|
// they are on one line! For multiple line or blocks that you want to ignore use ---.
|
||||||
|
// Any context after a --- is ignored.
|
||||||
|
//
|
||||||
|
// Those methods can be generated by using hack/update-generated-swagger-docs.sh
|
||||||
|
|
||||||
|
// AUTO-GENERATED FUNCTIONS START HERE
|
||||||
|
var map_PodPreset = map[string]string{
|
||||||
|
"": "PodPreset is a policy resource that defines additional runtime requirements for a Pod.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PodPreset) SwaggerDoc() map[string]string {
|
||||||
|
return map_PodPreset
|
||||||
|
}
|
||||||
|
|
||||||
|
var map_PodPresetList = map[string]string{
|
||||||
|
"": "PodPresetList is a list of PodPreset objects.",
|
||||||
|
"metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
|
"items": "Items is a list of schema objects.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PodPresetList) SwaggerDoc() map[string]string {
|
||||||
|
return map_PodPresetList
|
||||||
|
}
|
||||||
|
|
||||||
|
var map_PodPresetSpec = map[string]string{
|
||||||
|
"": "PodPresetSpec is a description of a pod injection policy.",
|
||||||
|
"selector": "Selector is a label query over a set of resources, in this case pods. Required.",
|
||||||
|
"env": "Env defines the collection of EnvVar to inject into containers.",
|
||||||
|
"envFrom": "EnvFrom defines the collection of EnvFromSource to inject into containers.",
|
||||||
|
"volumes": "Volumes defines the collection of Volume to inject into the pod.",
|
||||||
|
"volumeMounts": "VolumeMounts defines the collection of VolumeMount to inject into containers.",
|
||||||
|
}
|
||||||
|
|
||||||
|
func (PodPresetSpec) SwaggerDoc() map[string]string {
|
||||||
|
return map_PodPresetSpec
|
||||||
|
}
|
||||||
|
|
||||||
|
// AUTO-GENERATED FUNCTIONS END HERE
|
@ -0,0 +1,159 @@
|
|||||||
|
// +build !ignore_autogenerated
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was autogenerated by conversion-gen. Do not edit it manually!
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||||
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
|
api "k8s.io/client-go/pkg/api"
|
||||||
|
v1 "k8s.io/client-go/pkg/api/v1"
|
||||||
|
settings "k8s.io/client-go/pkg/apis/settings"
|
||||||
|
unsafe "unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
SchemeBuilder.Register(RegisterConversions)
|
||||||
|
}
|
||||||
|
|
||||||
|
// RegisterConversions adds conversion functions to the given scheme.
|
||||||
|
// Public to allow building arbitrary schemes.
|
||||||
|
func RegisterConversions(scheme *runtime.Scheme) error {
|
||||||
|
return scheme.AddGeneratedConversionFuncs(
|
||||||
|
Convert_v1alpha1_PodPreset_To_settings_PodPreset,
|
||||||
|
Convert_settings_PodPreset_To_v1alpha1_PodPreset,
|
||||||
|
Convert_v1alpha1_PodPresetList_To_settings_PodPresetList,
|
||||||
|
Convert_settings_PodPresetList_To_v1alpha1_PodPresetList,
|
||||||
|
Convert_v1alpha1_PodPresetSpec_To_settings_PodPresetSpec,
|
||||||
|
Convert_settings_PodPresetSpec_To_v1alpha1_PodPresetSpec,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_v1alpha1_PodPreset_To_settings_PodPreset(in *PodPreset, out *settings.PodPreset, s conversion.Scope) error {
|
||||||
|
out.ObjectMeta = in.ObjectMeta
|
||||||
|
if err := Convert_v1alpha1_PodPresetSpec_To_settings_PodPresetSpec(&in.Spec, &out.Spec, s); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Convert_v1alpha1_PodPreset_To_settings_PodPreset(in *PodPreset, out *settings.PodPreset, s conversion.Scope) error {
|
||||||
|
return autoConvert_v1alpha1_PodPreset_To_settings_PodPreset(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_settings_PodPreset_To_v1alpha1_PodPreset(in *settings.PodPreset, out *PodPreset, s conversion.Scope) error {
|
||||||
|
out.ObjectMeta = in.ObjectMeta
|
||||||
|
if err := Convert_settings_PodPresetSpec_To_v1alpha1_PodPresetSpec(&in.Spec, &out.Spec, s); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Convert_settings_PodPreset_To_v1alpha1_PodPreset(in *settings.PodPreset, out *PodPreset, s conversion.Scope) error {
|
||||||
|
return autoConvert_settings_PodPreset_To_v1alpha1_PodPreset(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_v1alpha1_PodPresetList_To_settings_PodPresetList(in *PodPresetList, out *settings.PodPresetList, s conversion.Scope) error {
|
||||||
|
out.ListMeta = in.ListMeta
|
||||||
|
if in.Items != nil {
|
||||||
|
in, out := &in.Items, &out.Items
|
||||||
|
*out = make([]settings.PodPreset, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := Convert_v1alpha1_PodPreset_To_settings_PodPreset(&(*in)[i], &(*out)[i], s); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Items = nil
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Convert_v1alpha1_PodPresetList_To_settings_PodPresetList(in *PodPresetList, out *settings.PodPresetList, s conversion.Scope) error {
|
||||||
|
return autoConvert_v1alpha1_PodPresetList_To_settings_PodPresetList(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_settings_PodPresetList_To_v1alpha1_PodPresetList(in *settings.PodPresetList, out *PodPresetList, s conversion.Scope) error {
|
||||||
|
out.ListMeta = in.ListMeta
|
||||||
|
if in.Items != nil {
|
||||||
|
in, out := &in.Items, &out.Items
|
||||||
|
*out = make([]PodPreset, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := Convert_settings_PodPreset_To_v1alpha1_PodPreset(&(*in)[i], &(*out)[i], s); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Items = nil
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Convert_settings_PodPresetList_To_v1alpha1_PodPresetList(in *settings.PodPresetList, out *PodPresetList, s conversion.Scope) error {
|
||||||
|
return autoConvert_settings_PodPresetList_To_v1alpha1_PodPresetList(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_v1alpha1_PodPresetSpec_To_settings_PodPresetSpec(in *PodPresetSpec, out *settings.PodPresetSpec, s conversion.Scope) error {
|
||||||
|
out.Selector = in.Selector
|
||||||
|
out.Env = *(*[]api.EnvVar)(unsafe.Pointer(&in.Env))
|
||||||
|
out.EnvFrom = *(*[]api.EnvFromSource)(unsafe.Pointer(&in.EnvFrom))
|
||||||
|
if in.Volumes != nil {
|
||||||
|
in, out := &in.Volumes, &out.Volumes
|
||||||
|
*out = make([]api.Volume, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
// TODO: Inefficient conversion - can we improve it?
|
||||||
|
if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Volumes = nil
|
||||||
|
}
|
||||||
|
out.VolumeMounts = *(*[]api.VolumeMount)(unsafe.Pointer(&in.VolumeMounts))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Convert_v1alpha1_PodPresetSpec_To_settings_PodPresetSpec(in *PodPresetSpec, out *settings.PodPresetSpec, s conversion.Scope) error {
|
||||||
|
return autoConvert_v1alpha1_PodPresetSpec_To_settings_PodPresetSpec(in, out, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func autoConvert_settings_PodPresetSpec_To_v1alpha1_PodPresetSpec(in *settings.PodPresetSpec, out *PodPresetSpec, s conversion.Scope) error {
|
||||||
|
out.Selector = in.Selector
|
||||||
|
out.Env = *(*[]v1.EnvVar)(unsafe.Pointer(&in.Env))
|
||||||
|
out.EnvFrom = *(*[]v1.EnvFromSource)(unsafe.Pointer(&in.EnvFrom))
|
||||||
|
if in.Volumes != nil {
|
||||||
|
in, out := &in.Volumes, &out.Volumes
|
||||||
|
*out = make([]v1.Volume, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
// TODO: Inefficient conversion - can we improve it?
|
||||||
|
if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Volumes = nil
|
||||||
|
}
|
||||||
|
out.VolumeMounts = *(*[]v1.VolumeMount)(unsafe.Pointer(&in.VolumeMounts))
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Convert_settings_PodPresetSpec_To_v1alpha1_PodPresetSpec(in *settings.PodPresetSpec, out *PodPresetSpec, s conversion.Scope) error {
|
||||||
|
return autoConvert_settings_PodPresetSpec_To_v1alpha1_PodPresetSpec(in, out, s)
|
||||||
|
}
|
@ -0,0 +1,124 @@
|
|||||||
|
// +build !ignore_autogenerated
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||||
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
|
api_v1 "k8s.io/client-go/pkg/api/v1"
|
||||||
|
reflect "reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
SchemeBuilder.Register(RegisterDeepCopies)
|
||||||
|
}
|
||||||
|
|
||||||
|
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
|
||||||
|
// to allow building arbitrary schemes.
|
||||||
|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||||
|
return scheme.AddGeneratedDeepCopyFuncs(
|
||||||
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodPreset, InType: reflect.TypeOf(&PodPreset{})},
|
||||||
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodPresetList, InType: reflect.TypeOf(&PodPresetList{})},
|
||||||
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodPresetSpec, InType: reflect.TypeOf(&PodPresetSpec{})},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeepCopy_v1alpha1_PodPreset(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
|
{
|
||||||
|
in := in.(*PodPreset)
|
||||||
|
out := out.(*PodPreset)
|
||||||
|
*out = *in
|
||||||
|
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
|
||||||
|
return err
|
||||||
|
} else {
|
||||||
|
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
|
||||||
|
}
|
||||||
|
if err := DeepCopy_v1alpha1_PodPresetSpec(&in.Spec, &out.Spec, c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeepCopy_v1alpha1_PodPresetList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
|
{
|
||||||
|
in := in.(*PodPresetList)
|
||||||
|
out := out.(*PodPresetList)
|
||||||
|
*out = *in
|
||||||
|
if in.Items != nil {
|
||||||
|
in, out := &in.Items, &out.Items
|
||||||
|
*out = make([]PodPreset, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := DeepCopy_v1alpha1_PodPreset(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeepCopy_v1alpha1_PodPresetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
|
{
|
||||||
|
in := in.(*PodPresetSpec)
|
||||||
|
out := out.(*PodPresetSpec)
|
||||||
|
*out = *in
|
||||||
|
if newVal, err := c.DeepCopy(&in.Selector); err != nil {
|
||||||
|
return err
|
||||||
|
} else {
|
||||||
|
out.Selector = *newVal.(*v1.LabelSelector)
|
||||||
|
}
|
||||||
|
if in.Env != nil {
|
||||||
|
in, out := &in.Env, &out.Env
|
||||||
|
*out = make([]api_v1.EnvVar, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := api_v1.DeepCopy_v1_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if in.EnvFrom != nil {
|
||||||
|
in, out := &in.EnvFrom, &out.EnvFrom
|
||||||
|
*out = make([]api_v1.EnvFromSource, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := api_v1.DeepCopy_v1_EnvFromSource(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if in.Volumes != nil {
|
||||||
|
in, out := &in.Volumes, &out.Volumes
|
||||||
|
*out = make([]api_v1.Volume, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := api_v1.DeepCopy_v1_Volume(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if in.VolumeMounts != nil {
|
||||||
|
in, out := &in.VolumeMounts, &out.VolumeMounts
|
||||||
|
*out = make([]api_v1.VolumeMount, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,95 @@
|
|||||||
|
// +build !ignore_autogenerated
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was autogenerated by defaulter-gen. Do not edit it manually!
|
||||||
|
|
||||||
|
package v1alpha1
|
||||||
|
|
||||||
|
import (
|
||||||
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
|
v1 "k8s.io/client-go/pkg/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
// RegisterDefaults adds defaulters functions to the given scheme.
|
||||||
|
// Public to allow building arbitrary schemes.
|
||||||
|
// All generated defaulters are covering - they call all nested defaulters.
|
||||||
|
func RegisterDefaults(scheme *runtime.Scheme) error {
|
||||||
|
scheme.AddTypeDefaultingFunc(&PodPreset{}, func(obj interface{}) { SetObjectDefaults_PodPreset(obj.(*PodPreset)) })
|
||||||
|
scheme.AddTypeDefaultingFunc(&PodPresetList{}, func(obj interface{}) { SetObjectDefaults_PodPresetList(obj.(*PodPresetList)) })
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetObjectDefaults_PodPreset(in *PodPreset) {
|
||||||
|
for i := range in.Spec.Env {
|
||||||
|
a := &in.Spec.Env[i]
|
||||||
|
if a.ValueFrom != nil {
|
||||||
|
if a.ValueFrom.FieldRef != nil {
|
||||||
|
v1.SetDefaults_ObjectFieldSelector(a.ValueFrom.FieldRef)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for i := range in.Spec.Volumes {
|
||||||
|
a := &in.Spec.Volumes[i]
|
||||||
|
v1.SetDefaults_Volume(a)
|
||||||
|
if a.VolumeSource.Secret != nil {
|
||||||
|
v1.SetDefaults_SecretVolumeSource(a.VolumeSource.Secret)
|
||||||
|
}
|
||||||
|
if a.VolumeSource.ISCSI != nil {
|
||||||
|
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||||
|
}
|
||||||
|
if a.VolumeSource.RBD != nil {
|
||||||
|
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||||
|
}
|
||||||
|
if a.VolumeSource.DownwardAPI != nil {
|
||||||
|
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||||
|
for j := range a.VolumeSource.DownwardAPI.Items {
|
||||||
|
b := &a.VolumeSource.DownwardAPI.Items[j]
|
||||||
|
if b.FieldRef != nil {
|
||||||
|
v1.SetDefaults_ObjectFieldSelector(b.FieldRef)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if a.VolumeSource.ConfigMap != nil {
|
||||||
|
v1.SetDefaults_ConfigMapVolumeSource(a.VolumeSource.ConfigMap)
|
||||||
|
}
|
||||||
|
if a.VolumeSource.AzureDisk != nil {
|
||||||
|
v1.SetDefaults_AzureDiskVolumeSource(a.VolumeSource.AzureDisk)
|
||||||
|
}
|
||||||
|
if a.VolumeSource.Projected != nil {
|
||||||
|
v1.SetDefaults_ProjectedVolumeSource(a.VolumeSource.Projected)
|
||||||
|
for j := range a.VolumeSource.Projected.Sources {
|
||||||
|
b := &a.VolumeSource.Projected.Sources[j]
|
||||||
|
if b.DownwardAPI != nil {
|
||||||
|
for k := range b.DownwardAPI.Items {
|
||||||
|
c := &b.DownwardAPI.Items[k]
|
||||||
|
if c.FieldRef != nil {
|
||||||
|
v1.SetDefaults_ObjectFieldSelector(c.FieldRef)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetObjectDefaults_PodPresetList(in *PodPresetList) {
|
||||||
|
for i := range in.Items {
|
||||||
|
a := &in.Items[i]
|
||||||
|
SetObjectDefaults_PodPreset(a)
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,124 @@
|
|||||||
|
// +build !ignore_autogenerated
|
||||||
|
|
||||||
|
/*
|
||||||
|
Copyright 2017 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
|
||||||
|
|
||||||
|
package settings
|
||||||
|
|
||||||
|
import (
|
||||||
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||||
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
|
api "k8s.io/client-go/pkg/api"
|
||||||
|
reflect "reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
SchemeBuilder.Register(RegisterDeepCopies)
|
||||||
|
}
|
||||||
|
|
||||||
|
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
|
||||||
|
// to allow building arbitrary schemes.
|
||||||
|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||||
|
return scheme.AddGeneratedDeepCopyFuncs(
|
||||||
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPreset, InType: reflect.TypeOf(&PodPreset{})},
|
||||||
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPresetList, InType: reflect.TypeOf(&PodPresetList{})},
|
||||||
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPresetSpec, InType: reflect.TypeOf(&PodPresetSpec{})},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeepCopy_settings_PodPreset(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
|
{
|
||||||
|
in := in.(*PodPreset)
|
||||||
|
out := out.(*PodPreset)
|
||||||
|
*out = *in
|
||||||
|
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
|
||||||
|
return err
|
||||||
|
} else {
|
||||||
|
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
|
||||||
|
}
|
||||||
|
if err := DeepCopy_settings_PodPresetSpec(&in.Spec, &out.Spec, c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeepCopy_settings_PodPresetList(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
|
{
|
||||||
|
in := in.(*PodPresetList)
|
||||||
|
out := out.(*PodPresetList)
|
||||||
|
*out = *in
|
||||||
|
if in.Items != nil {
|
||||||
|
in, out := &in.Items, &out.Items
|
||||||
|
*out = make([]PodPreset, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := DeepCopy_settings_PodPreset(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeepCopy_settings_PodPresetSpec(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||||
|
{
|
||||||
|
in := in.(*PodPresetSpec)
|
||||||
|
out := out.(*PodPresetSpec)
|
||||||
|
*out = *in
|
||||||
|
if newVal, err := c.DeepCopy(&in.Selector); err != nil {
|
||||||
|
return err
|
||||||
|
} else {
|
||||||
|
out.Selector = *newVal.(*v1.LabelSelector)
|
||||||
|
}
|
||||||
|
if in.Env != nil {
|
||||||
|
in, out := &in.Env, &out.Env
|
||||||
|
*out = make([]api.EnvVar, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := api.DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if in.EnvFrom != nil {
|
||||||
|
in, out := &in.EnvFrom, &out.EnvFrom
|
||||||
|
*out = make([]api.EnvFromSource, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := api.DeepCopy_api_EnvFromSource(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if in.Volumes != nil {
|
||||||
|
in, out := &in.Volumes, &out.Volumes
|
||||||
|
*out = make([]api.Volume, len(*in))
|
||||||
|
for i := range *in {
|
||||||
|
if err := api.DeepCopy_api_Volume(&(*in)[i], &(*out)[i], c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if in.VolumeMounts != nil {
|
||||||
|
in, out := &in.VolumeMounts, &out.VolumeMounts
|
||||||
|
*out = make([]api.VolumeMount, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
@ -26,7 +26,7 @@ import "k8s.io/apimachinery/pkg/runtime/generated.proto";
|
|||||||
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
||||||
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
||||||
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
import "k8s.io/apiserver/pkg/apis/example/v1/generated.proto";
|
||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
|
import "k8s.io/client-go/pkg/api/v1/generated.proto";
|
||||||
|
|
||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
839
vendor/BUILD
vendored
839
vendor/BUILD
vendored
@ -4873,6 +4873,70 @@ go_library(
|
|||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/libopenstorage/openstorage/api",
|
||||||
|
srcs = [
|
||||||
|
"github.com/libopenstorage/openstorage/api/api.go",
|
||||||
|
"github.com/libopenstorage/openstorage/api/api.pb.go",
|
||||||
|
"github.com/libopenstorage/openstorage/api/status.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:github.com/golang/protobuf/proto",
|
||||||
|
"//vendor:go.pedge.io/pb/go/google/protobuf",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/libopenstorage/openstorage/api/client",
|
||||||
|
srcs = [
|
||||||
|
"github.com/libopenstorage/openstorage/api/client/client.go",
|
||||||
|
"github.com/libopenstorage/openstorage/api/client/request.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/libopenstorage/openstorage/api/client/volume",
|
||||||
|
srcs = [
|
||||||
|
"github.com/libopenstorage/openstorage/api/client/volume/client.go",
|
||||||
|
"github.com/libopenstorage/openstorage/api/client/volume/volume.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:github.com/libopenstorage/openstorage/api",
|
||||||
|
"//vendor:github.com/libopenstorage/openstorage/api/client",
|
||||||
|
"//vendor:github.com/libopenstorage/openstorage/volume",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/libopenstorage/openstorage/api/spec",
|
||||||
|
srcs = ["github.com/libopenstorage/openstorage/api/spec/spec_handler.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:github.com/libopenstorage/openstorage/api",
|
||||||
|
"//vendor:github.com/libopenstorage/openstorage/pkg/units",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/libopenstorage/openstorage/pkg/units",
|
||||||
|
srcs = ["github.com/libopenstorage/openstorage/pkg/units/units.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/libopenstorage/openstorage/volume",
|
||||||
|
srcs = [
|
||||||
|
"github.com/libopenstorage/openstorage/volume/volume.go",
|
||||||
|
"github.com/libopenstorage/openstorage/volume/volume_driver_registry.go",
|
||||||
|
"github.com/libopenstorage/openstorage/volume/volume_not_supported.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = ["//vendor:github.com/libopenstorage/openstorage/api"],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "github.com/lpabon/godbc",
|
name = "github.com/lpabon/godbc",
|
||||||
srcs = ["github.com/lpabon/godbc/godbc.go"],
|
srcs = ["github.com/lpabon/godbc/godbc.go"],
|
||||||
@ -5398,6 +5462,24 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable",
|
||||||
|
srcs = [
|
||||||
|
"github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go",
|
||||||
|
"github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/noncolorable.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty",
|
||||||
|
srcs = [
|
||||||
|
"github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go",
|
||||||
|
"github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "github.com/onsi/ginkgo/types",
|
name = "github.com/onsi/ginkgo/types",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -7141,6 +7223,25 @@ go_library(
|
|||||||
deps = ["//vendor:github.com/garyburd/redigo/redis"],
|
deps = ["//vendor:github.com/garyburd/redigo/redis"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "go.pedge.io/pb/go/google/protobuf",
|
||||||
|
srcs = [
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/any.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/api.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/duration.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/empty.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/field_mask.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/protobuf.gen.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/source_context.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/struct.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/timestamp.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/type.pb.go",
|
||||||
|
"go.pedge.io/pb/go/google/protobuf/wrappers.pb.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = ["//vendor:github.com/golang/protobuf/proto"],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "go4.org/errorutil",
|
name = "go4.org/errorutil",
|
||||||
srcs = ["go4.org/errorutil/highlight.go"],
|
srcs = ["go4.org/errorutil/highlight.go"],
|
||||||
@ -8438,6 +8539,13 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_test(
|
||||||
|
name = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured_test",
|
||||||
|
srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go"],
|
||||||
|
library = ":k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
name = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||||
srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go"],
|
srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go"],
|
||||||
@ -12534,6 +12642,17 @@ go_binary(
|
|||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_test(
|
||||||
|
name = "k8s.io/client-go/examples/third-party-resources_test",
|
||||||
|
srcs = ["k8s.io/client-go/examples/third-party-resources/types_test.go"],
|
||||||
|
library = ":k8s.io/client-go/examples/third-party-resources",
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/client-go/examples/third-party-resources",
|
name = "k8s.io/client-go/examples/third-party-resources",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -12575,6 +12694,7 @@ go_library(
|
|||||||
"//vendor:k8s.io/client-go/informers/internalinterfaces",
|
"//vendor:k8s.io/client-go/informers/internalinterfaces",
|
||||||
"//vendor:k8s.io/client-go/informers/policy",
|
"//vendor:k8s.io/client-go/informers/policy",
|
||||||
"//vendor:k8s.io/client-go/informers/rbac",
|
"//vendor:k8s.io/client-go/informers/rbac",
|
||||||
|
"//vendor:k8s.io/client-go/informers/settings",
|
||||||
"//vendor:k8s.io/client-go/informers/storage",
|
"//vendor:k8s.io/client-go/informers/storage",
|
||||||
"//vendor:k8s.io/client-go/kubernetes",
|
"//vendor:k8s.io/client-go/kubernetes",
|
||||||
"//vendor:k8s.io/client-go/pkg/api/v1",
|
"//vendor:k8s.io/client-go/pkg/api/v1",
|
||||||
@ -12588,6 +12708,7 @@ go_library(
|
|||||||
"//vendor:k8s.io/client-go/pkg/apis/policy/v1beta1",
|
"//vendor:k8s.io/client-go/pkg/apis/policy/v1beta1",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1alpha1",
|
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1alpha1",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1beta1",
|
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/storage/v1beta1",
|
"//vendor:k8s.io/client-go/pkg/apis/storage/v1beta1",
|
||||||
"//vendor:k8s.io/client-go/tools/cache",
|
"//vendor:k8s.io/client-go/tools/cache",
|
||||||
],
|
],
|
||||||
@ -12924,6 +13045,35 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/informers/settings",
|
||||||
|
srcs = ["k8s.io/client-go/informers/settings/interface.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/client-go/informers/internalinterfaces",
|
||||||
|
"//vendor:k8s.io/client-go/informers/settings/v1alpha1",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/informers/settings/v1alpha1",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/informers/settings/v1alpha1/interface.go",
|
||||||
|
"k8s.io/client-go/informers/settings/v1alpha1/podpreset.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
||||||
|
"//vendor:k8s.io/client-go/informers/internalinterfaces",
|
||||||
|
"//vendor:k8s.io/client-go/kubernetes",
|
||||||
|
"//vendor:k8s.io/client-go/listers/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/tools/cache",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/client-go/informers/storage",
|
name = "k8s.io/client-go/informers/storage",
|
||||||
srcs = ["k8s.io/client-go/informers/storage/interface.go"],
|
srcs = ["k8s.io/client-go/informers/storage/interface.go"],
|
||||||
@ -12979,6 +13129,7 @@ go_library(
|
|||||||
"//vendor:k8s.io/client-go/kubernetes/typed/policy/v1beta1",
|
"//vendor:k8s.io/client-go/kubernetes/typed/policy/v1beta1",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1alpha1",
|
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1alpha1",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1beta1",
|
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/kubernetes/typed/settings/v1alpha1",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/storage/v1beta1",
|
"//vendor:k8s.io/client-go/kubernetes/typed/storage/v1beta1",
|
||||||
"//vendor:k8s.io/client-go/pkg/api",
|
"//vendor:k8s.io/client-go/pkg/api",
|
||||||
"//vendor:k8s.io/client-go/pkg/api/install",
|
"//vendor:k8s.io/client-go/pkg/api/install",
|
||||||
@ -12991,6 +13142,7 @@ go_library(
|
|||||||
"//vendor:k8s.io/client-go/pkg/apis/extensions/install",
|
"//vendor:k8s.io/client-go/pkg/apis/extensions/install",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/policy/install",
|
"//vendor:k8s.io/client-go/pkg/apis/policy/install",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/rbac/install",
|
"//vendor:k8s.io/client-go/pkg/apis/rbac/install",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/install",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/storage/install",
|
"//vendor:k8s.io/client-go/pkg/apis/storage/install",
|
||||||
"//vendor:k8s.io/client-go/rest",
|
"//vendor:k8s.io/client-go/rest",
|
||||||
"//vendor:k8s.io/client-go/util/flowcontrol",
|
"//vendor:k8s.io/client-go/util/flowcontrol",
|
||||||
@ -13046,6 +13198,8 @@ go_library(
|
|||||||
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake",
|
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1beta1",
|
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1beta1",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake",
|
"//vendor:k8s.io/client-go/kubernetes/typed/rbac/v1beta1/fake",
|
||||||
|
"//vendor:k8s.io/client-go/kubernetes/typed/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/storage/v1beta1",
|
"//vendor:k8s.io/client-go/kubernetes/typed/storage/v1beta1",
|
||||||
"//vendor:k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake",
|
"//vendor:k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake",
|
||||||
"//vendor:k8s.io/client-go/pkg/api/install",
|
"//vendor:k8s.io/client-go/pkg/api/install",
|
||||||
@ -13058,11 +13212,44 @@ go_library(
|
|||||||
"//vendor:k8s.io/client-go/pkg/apis/extensions/install",
|
"//vendor:k8s.io/client-go/pkg/apis/extensions/install",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/policy/install",
|
"//vendor:k8s.io/client-go/pkg/apis/policy/install",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/rbac/install",
|
"//vendor:k8s.io/client-go/pkg/apis/rbac/install",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/install",
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/storage/install",
|
"//vendor:k8s.io/client-go/pkg/apis/storage/install",
|
||||||
"//vendor:k8s.io/client-go/testing",
|
"//vendor:k8s.io/client-go/testing",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/kubernetes/scheme",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/kubernetes/scheme/doc.go",
|
||||||
|
"k8s.io/client-go/kubernetes/scheme/register.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/api/v1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/apps/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/authentication/v1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/authentication/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/authorization/v1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/authorization/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/autoscaling/v1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/autoscaling/v2alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/batch/v1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/batch/v2alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/certificates/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/extensions/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/policy/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1beta1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/storage/v1beta1",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/client-go/kubernetes/typed/apps/v1beta1",
|
name = "k8s.io/client-go/kubernetes/typed/apps/v1beta1",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -13762,6 +13949,47 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/kubernetes/typed/settings/v1alpha1",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/doc.go",
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/generated_expansion.go",
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/podpreset.go",
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/settings_client.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/types",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
||||||
|
"//vendor:k8s.io/client-go/kubernetes/scheme",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/rest",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake/doc.go",
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake/fake_podpreset.go",
|
||||||
|
"k8s.io/client-go/kubernetes/typed/settings/v1alpha1/fake/fake_settings_client.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/labels",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/types",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/watch",
|
||||||
|
"//vendor:k8s.io/client-go/kubernetes/typed/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/rest",
|
||||||
|
"//vendor:k8s.io/client-go/testing",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/client-go/kubernetes/typed/storage/v1beta1",
|
name = "k8s.io/client-go/kubernetes/typed/storage/v1beta1",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -14032,6 +14260,22 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/listers/settings/v1alpha1",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/listers/settings/v1alpha1/expansion_generated.go",
|
||||||
|
"k8s.io/client-go/listers/settings/v1alpha1/podpreset.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/api/errors",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/labels",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
"//vendor:k8s.io/client-go/tools/cache",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/client-go/listers/storage/v1beta1",
|
name = "k8s.io/client-go/listers/storage/v1beta1",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -14864,6 +15108,63 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/pkg/apis/settings",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/doc.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/register.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/types.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/zz_generated.deepcopy.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/api",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/pkg/apis/settings/install",
|
||||||
|
srcs = ["k8s.io/client-go/pkg/apis/settings/install/install.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/api",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/client-go/pkg/apis/settings/v1alpha1",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/doc.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/generated.pb.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/register.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/types.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/types_swagger_doc_generated.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/zz_generated.conversion.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/zz_generated.deepcopy.go",
|
||||||
|
"k8s.io/client-go/pkg/apis/settings/v1alpha1/zz_generated.defaults.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:github.com/gogo/protobuf/proto",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/api",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/api/v1",
|
||||||
|
"//vendor:k8s.io/client-go/pkg/apis/settings",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/client-go/pkg/apis/storage",
|
name = "k8s.io/client-go/pkg/apis/storage",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -16031,6 +16332,22 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme/doc.go",
|
||||||
|
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme/register.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
|
"//vendor:k8s.io/kube-aggregator/pkg/apis/apiregistration/v1alpha1",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/typed/apiregistration/v1alpha1",
|
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/typed/apiregistration/v1alpha1",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -16114,6 +16431,24 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/scheme",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/scheme/doc.go",
|
||||||
|
"k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/scheme/register.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
|
"//vendor:k8s.io/kube-aggregator/pkg/apis/apiregistration/install",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/typed/apiregistration/internalversion",
|
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/typed/apiregistration/internalversion",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -16356,350 +16691,6 @@ go_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
go_binary(
|
|
||||||
name = "k8s.io/sample-apiserver_bin",
|
|
||||||
library = ":k8s.io/sample-apiserver",
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver",
|
|
||||||
srcs = ["k8s.io/sample-apiserver/main.go"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/util/logs",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/cmd/server",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/apis/wardle",
|
|
||||||
srcs = [
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/doc.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/register.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/types.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/zz_generated.deepcopy.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_test(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/apis/wardle/install_test",
|
|
||||||
srcs = ["k8s.io/sample-apiserver/pkg/apis/wardle/install/install_test.go"],
|
|
||||||
library = ":k8s.io/sample-apiserver/pkg/apis/wardle/install",
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = ["//vendor:k8s.io/apimachinery/pkg/api/testing"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/apis/wardle/install",
|
|
||||||
srcs = ["k8s.io/sample-apiserver/pkg/apis/wardle/install/install.go"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/util/sets",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
|
||||||
srcs = [
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/doc.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/register.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/types.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/zz_generated.conversion.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/zz_generated.deepcopy.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_test(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/apiserver_test",
|
|
||||||
srcs = ["k8s.io/sample-apiserver/pkg/apiserver/scheme_test.go"],
|
|
||||||
library = ":k8s.io/sample-apiserver/pkg/apiserver",
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = ["//vendor:k8s.io/apimachinery/pkg/api/testing"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/apiserver",
|
|
||||||
srcs = ["k8s.io/sample-apiserver/pkg/apiserver/apiserver.go"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/version",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/registry/rest",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/server",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/install",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/registry/wardle",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/cmd/server",
|
|
||||||
srcs = ["k8s.io/sample-apiserver/pkg/cmd/server/start.go"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:github.com/spf13/cobra",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/server",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/server/options",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apiserver",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/sample-apiserver/pkg/registry/wardle",
|
|
||||||
srcs = [
|
|
||||||
"k8s.io/sample-apiserver/pkg/registry/wardle/etcd.go",
|
|
||||||
"k8s.io/sample-apiserver/pkg/registry/wardle/strategy.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/fields",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/labels",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/util/validation/field",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/endpoints/request",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/registry/generic",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/registry/generic/registry",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/storage",
|
|
||||||
"//vendor:k8s.io/apiserver/pkg/storage/names",
|
|
||||||
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "package-srcs",
|
|
||||||
srcs = glob(["**"]),
|
|
||||||
tags = ["automanaged"],
|
|
||||||
visibility = ["//visibility:private"],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "all-srcs",
|
|
||||||
srcs = [":package-srcs"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_test(
|
|
||||||
name = "k8s.io/client-go/examples/third-party-resources_test",
|
|
||||||
srcs = ["k8s.io/client-go/examples/third-party-resources/types_test.go"],
|
|
||||||
library = ":k8s.io/client-go/examples/third-party-resources",
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme",
|
|
||||||
srcs = [
|
|
||||||
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme/doc.go",
|
|
||||||
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme/register.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
|
||||||
"//vendor:k8s.io/kube-aggregator/pkg/apis/apiregistration/v1alpha1",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/scheme",
|
|
||||||
srcs = [
|
|
||||||
"k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/scheme/doc.go",
|
|
||||||
"k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset/scheme/register.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
|
||||||
"//vendor:k8s.io/kube-aggregator/pkg/apis/apiregistration/install",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_test(
|
|
||||||
name = "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured_test",
|
|
||||||
srcs = ["k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go"],
|
|
||||||
library = ":k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable",
|
|
||||||
srcs = [
|
|
||||||
"github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go",
|
|
||||||
"github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/noncolorable.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty",
|
|
||||||
srcs = [
|
|
||||||
"github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go",
|
|
||||||
"github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "k8s.io/client-go/kubernetes/scheme",
|
|
||||||
srcs = [
|
|
||||||
"k8s.io/client-go/kubernetes/scheme/doc.go",
|
|
||||||
"k8s.io/client-go/kubernetes/scheme/register.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
|
||||||
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/api/v1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/apps/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/authentication/v1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/authentication/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/authorization/v1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/authorization/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/autoscaling/v1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/autoscaling/v2alpha1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/batch/v1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/batch/v2alpha1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/certificates/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/extensions/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/policy/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1alpha1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/rbac/v1beta1",
|
|
||||||
"//vendor:k8s.io/client-go/pkg/apis/storage/v1beta1",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "vbom.ml/util/sortorder",
|
|
||||||
srcs = [
|
|
||||||
"vbom.ml/util/sortorder/doc.go",
|
|
||||||
"vbom.ml/util/sortorder/natsort.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/libopenstorage/openstorage/api",
|
|
||||||
srcs = [
|
|
||||||
"github.com/libopenstorage/openstorage/api/api.go",
|
|
||||||
"github.com/libopenstorage/openstorage/api/api.pb.go",
|
|
||||||
"github.com/libopenstorage/openstorage/api/status.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:github.com/golang/protobuf/proto",
|
|
||||||
"//vendor:go.pedge.io/pb/go/google/protobuf",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/libopenstorage/openstorage/api/client",
|
|
||||||
srcs = [
|
|
||||||
"github.com/libopenstorage/openstorage/api/client/client.go",
|
|
||||||
"github.com/libopenstorage/openstorage/api/client/request.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/libopenstorage/openstorage/api/client/volume",
|
|
||||||
srcs = [
|
|
||||||
"github.com/libopenstorage/openstorage/api/client/volume/client.go",
|
|
||||||
"github.com/libopenstorage/openstorage/api/client/volume/volume.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:github.com/libopenstorage/openstorage/api",
|
|
||||||
"//vendor:github.com/libopenstorage/openstorage/api/client",
|
|
||||||
"//vendor:github.com/libopenstorage/openstorage/volume",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/libopenstorage/openstorage/api/spec",
|
|
||||||
srcs = ["github.com/libopenstorage/openstorage/api/spec/spec_handler.go"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = [
|
|
||||||
"//vendor:github.com/libopenstorage/openstorage/api",
|
|
||||||
"//vendor:github.com/libopenstorage/openstorage/pkg/units",
|
|
||||||
],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/libopenstorage/openstorage/pkg/units",
|
|
||||||
srcs = ["github.com/libopenstorage/openstorage/pkg/units/units.go"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "github.com/libopenstorage/openstorage/volume",
|
|
||||||
srcs = [
|
|
||||||
"github.com/libopenstorage/openstorage/volume/volume.go",
|
|
||||||
"github.com/libopenstorage/openstorage/volume/volume_driver_registry.go",
|
|
||||||
"github.com/libopenstorage/openstorage/volume/volume_not_supported.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = ["//vendor:github.com/libopenstorage/openstorage/api"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
|
||||||
name = "go.pedge.io/pb/go/google/protobuf",
|
|
||||||
srcs = [
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/any.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/api.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/duration.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/empty.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/field_mask.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/protobuf.gen.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/source_context.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/struct.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/timestamp.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/type.pb.go",
|
|
||||||
"go.pedge.io/pb/go/google/protobuf/wrappers.pb.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
deps = ["//vendor:github.com/golang/protobuf/proto"],
|
|
||||||
)
|
|
||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "k8s.io/metrics/pkg/apis/custom_metrics",
|
name = "k8s.io/metrics/pkg/apis/custom_metrics",
|
||||||
srcs = [
|
srcs = [
|
||||||
@ -16946,3 +16937,163 @@ go_library(
|
|||||||
"//vendor:k8s.io/metrics/pkg/client/custom_metrics",
|
"//vendor:k8s.io/metrics/pkg/client/custom_metrics",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go_binary(
|
||||||
|
name = "k8s.io/sample-apiserver_bin",
|
||||||
|
library = ":k8s.io/sample-apiserver",
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver",
|
||||||
|
srcs = ["k8s.io/sample-apiserver/main.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/util/logs",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/cmd/server",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/apis/wardle",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/doc.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/register.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/types.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/zz_generated.deepcopy.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_test(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/apis/wardle/install_test",
|
||||||
|
srcs = ["k8s.io/sample-apiserver/pkg/apis/wardle/install/install_test.go"],
|
||||||
|
library = ":k8s.io/sample-apiserver/pkg/apis/wardle/install",
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = ["//vendor:k8s.io/apimachinery/pkg/api/testing"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/apis/wardle/install",
|
||||||
|
srcs = ["k8s.io/sample-apiserver/pkg/apis/wardle/install/install.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/util/sets",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/doc.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/register.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/types.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/zz_generated.conversion.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1/zz_generated.deepcopy.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_test(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/apiserver_test",
|
||||||
|
srcs = ["k8s.io/sample-apiserver/pkg/apiserver/scheme_test.go"],
|
||||||
|
library = ":k8s.io/sample-apiserver/pkg/apiserver",
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = ["//vendor:k8s.io/apimachinery/pkg/api/testing"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/apiserver",
|
||||||
|
srcs = ["k8s.io/sample-apiserver/pkg/apiserver/apiserver.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/version",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/registry/rest",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/server",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/install",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/registry/wardle",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/cmd/server",
|
||||||
|
srcs = ["k8s.io/sample-apiserver/pkg/cmd/server/start.go"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:github.com/spf13/cobra",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/server",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/server/options",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle/v1alpha1",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apiserver",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "k8s.io/sample-apiserver/pkg/registry/wardle",
|
||||||
|
srcs = [
|
||||||
|
"k8s.io/sample-apiserver/pkg/registry/wardle/etcd.go",
|
||||||
|
"k8s.io/sample-apiserver/pkg/registry/wardle/strategy.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
deps = [
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/fields",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/labels",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||||||
|
"//vendor:k8s.io/apimachinery/pkg/util/validation/field",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/endpoints/request",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/registry/generic",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/registry/generic/registry",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/storage",
|
||||||
|
"//vendor:k8s.io/apiserver/pkg/storage/names",
|
||||||
|
"//vendor:k8s.io/sample-apiserver/pkg/apis/wardle",
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "vbom.ml/util/sortorder",
|
||||||
|
srcs = [
|
||||||
|
"vbom.ml/util/sortorder/doc.go",
|
||||||
|
"vbom.ml/util/sortorder/natsort.go",
|
||||||
|
],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
|
||||||
|
filegroup(
|
||||||
|
name = "package-srcs",
|
||||||
|
srcs = glob(["**"]),
|
||||||
|
tags = ["automanaged"],
|
||||||
|
visibility = ["//visibility:private"],
|
||||||
|
)
|
||||||
|
|
||||||
|
filegroup(
|
||||||
|
name = "all-srcs",
|
||||||
|
srcs = [":package-srcs"],
|
||||||
|
tags = ["automanaged"],
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user