generate UpdateScale and GetScale verbs for scalable resources

This commit is contained in:
Michal Fojtik
2017-08-30 20:32:08 +02:00
parent ba731a6cca
commit 7d2be1c521
26 changed files with 552 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ import (
)
// +genclient
// +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/kubernetes/pkg/apis/extensions.Scale
// +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/kubernetes/pkg/apis/extensions.Scale,result=k8s.io/kubernetes/pkg/apis/extensions.Scale
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// StatefulSet represents a set of pods with consistent identities.