enable status as subresource of each CRD

This commit is contained in:
RainbowMango 2020-12-19 17:29:53 +08:00 committed by Hongcai Ren
parent 8c312961f9
commit 2406e4ce82
4 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
// +genclient:nonNamespaced
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:scope="Cluster"
// +kubebuilder:subresource:status
// MemberCluster represents the desire state and status of a member cluster.
type MemberCluster struct {

View File

@ -6,6 +6,7 @@ import (
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// PropagationBinding represents a binding of a kubernetes resource with a propagation policy.
type PropagationBinding struct {

View File

@ -7,6 +7,7 @@ import (
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// PropagationPolicy represents the policy that propagates a group of resources to one or more clusters.
type PropagationPolicy struct {

View File

@ -7,6 +7,7 @@ import (
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// PropagationWork defines a list of resources to be deployed on the member cluster.
type PropagationWork struct {