From 348d44d4ec22ee0c501539dfaca6bd7829566b2f Mon Sep 17 00:00:00 2001 From: yue9944882 <291271447@qq.com> Date: Tue, 27 Aug 2019 20:10:42 +0800 Subject: [PATCH] completely remove student subresources --- .../miskatonic/v1beta1/book_student_types.go | 31 ----------------- .../v1beta1/pencil_student_types.go | 33 ------------------- 2 files changed, 64 deletions(-) delete mode 100644 example/basic/pkg/apis/miskatonic/v1beta1/book_student_types.go delete mode 100644 example/basic/pkg/apis/miskatonic/v1beta1/pencil_student_types.go diff --git a/example/basic/pkg/apis/miskatonic/v1beta1/book_student_types.go b/example/basic/pkg/apis/miskatonic/v1beta1/book_student_types.go deleted file mode 100644 index ef2c6abeef..0000000000 --- a/example/basic/pkg/apis/miskatonic/v1beta1/book_student_types.go +++ /dev/null @@ -1,31 +0,0 @@ -/* -Copyright YEAR 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 v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type StudentBook struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Price int `json:"price"` -} diff --git a/example/basic/pkg/apis/miskatonic/v1beta1/pencil_student_types.go b/example/basic/pkg/apis/miskatonic/v1beta1/pencil_student_types.go deleted file mode 100644 index cd5639f9ae..0000000000 --- a/example/basic/pkg/apis/miskatonic/v1beta1/pencil_student_types.go +++ /dev/null @@ -1,33 +0,0 @@ - -/* -Copyright YEAR 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 v1beta1 - -import ( - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// +subresource-request -type StudentPencil struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` -}