From 48e7782d4f3d128cf2e7ee56cc7845e90d266273 Mon Sep 17 00:00:00 2001 From: Hongcai Ren Date: Fri, 5 Mar 2021 19:26:26 +0800 Subject: [PATCH] Remove Accepted field from Cluster API (#189) Signed-off-by: RainbowMango --- artifacts/deploy/cluster.karmada.io_clusters.yaml | 7 ------- pkg/apis/cluster/v1alpha1/types.go | 8 -------- 2 files changed, 15 deletions(-) diff --git a/artifacts/deploy/cluster.karmada.io_clusters.yaml b/artifacts/deploy/cluster.karmada.io_clusters.yaml index a12fbbf74..249f2278a 100644 --- a/artifacts/deploy/cluster.karmada.io_clusters.yaml +++ b/artifacts/deploy/cluster.karmada.io_clusters.yaml @@ -47,13 +47,6 @@ spec: description: Spec represents the specification of the desired behavior of member cluster. properties: - accepted: - description: Accepted represents if the member cluster has been accepted - by control plane. Default value is false. If member cluster working - in 'Delegation' mode, this always be true. If member cluster working - in 'SelfManagement' mode, this will turn to true only after administrator - accepted the request from member cluster. - type: boolean apiEndpoint: description: The API endpoint of the member cluster. This can be a hostname, hostname:port, IP or IP:port. diff --git a/pkg/apis/cluster/v1alpha1/types.go b/pkg/apis/cluster/v1alpha1/types.go index c21917ebc..1323da880 100644 --- a/pkg/apis/cluster/v1alpha1/types.go +++ b/pkg/apis/cluster/v1alpha1/types.go @@ -34,14 +34,6 @@ type ClusterSpec struct { // +optional ManageMode ClusterManageMode `json:"manageMode,omitempty"` - // Accepted represents if the member cluster has been accepted by control plane. - // Default value is false. - // If member cluster working in 'Delegation' mode, this always be true. - // If member cluster working in 'SelfManagement' mode, this will turn to true only after administrator - // accepted the request from member cluster. - // +optional - Accepted bool `json:"accepted,omitempty"` - // The API endpoint of the member cluster. This can be a hostname, // hostname:port, IP or IP:port. // +optional