From ee04a566ab7a2a04214ef7b24a76fe09c9336f40 Mon Sep 17 00:00:00 2001 From: shinytang6 <1074461480@qq.com> Date: Sun, 20 Jun 2021 20:04:26 +0800 Subject: [PATCH] fix(controller): rm useless subresource status Signed-off-by: shinytang6 <1074461480@qq.com> --- artifacts/deploy/policy.karmada.io_propagationpolicies.yaml | 2 -- pkg/apis/policy/v1alpha1/propagation_types.go | 1 - 2 files changed, 3 deletions(-) diff --git a/artifacts/deploy/policy.karmada.io_propagationpolicies.yaml b/artifacts/deploy/policy.karmada.io_propagationpolicies.yaml index f7d86daaa..76567d320 100644 --- a/artifacts/deploy/policy.karmada.io_propagationpolicies.yaml +++ b/artifacts/deploy/policy.karmada.io_propagationpolicies.yaml @@ -327,8 +327,6 @@ spec: type: object served: true storage: true - subresources: - status: {} status: acceptedNames: kind: "" diff --git a/pkg/apis/policy/v1alpha1/propagation_types.go b/pkg/apis/policy/v1alpha1/propagation_types.go index 970a825dd..bd85dd986 100644 --- a/pkg/apis/policy/v1alpha1/propagation_types.go +++ b/pkg/apis/policy/v1alpha1/propagation_types.go @@ -7,7 +7,6 @@ import ( // +genclient // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// +kubebuilder:subresource:status // +kubebuilder:resource:shortName=pp // PropagationPolicy represents the policy that propagates a group of resources to one or more clusters.