From d100d5644661c288d52dbe0456a9c7d184f61d31 Mon Sep 17 00:00:00 2001 From: p0lyn0mial Date: Mon, 23 Jan 2017 20:02:52 +0100 Subject: [PATCH] Added shortNames to meta.v1.APIResource. The shortNames would be used to allow kubectl to have short names representations of resources from aggregated API servers. --- staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go b/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go index feb5e72e99c..11fc5b60f3e 100644 --- a/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go +++ b/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go @@ -648,6 +648,8 @@ type APIResource struct { // verbs is a list of supported kube verbs (this includes get, list, watch, create, // update, patch, delete, deletecollection, and proxy) Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"` + // shortNames is a list of suggested short names of the resource. + ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"` } // Verbs masks the value so protobuf can generate