From 7deb9c274650fa5f63ae71d75559e88bc8a40b33 Mon Sep 17 00:00:00 2001 From: Xinzhao Xu Date: Wed, 16 Feb 2022 11:13:59 +0800 Subject: [PATCH] update codegen --- api/ks-openapi-spec/swagger.json | 10 +++++----- api/openapi-spec/swagger.json | 4 ++++ config/crds/cluster.kubesphere.io_clusters.yaml | 4 ++++ .../api/cluster/v1alpha1/openapi_generated.go | 7 +++++++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/api/ks-openapi-spec/swagger.json b/api/ks-openapi-spec/swagger.json index e3bb9106f..a6f46261e 100644 --- a/api/ks-openapi-spec/swagger.json +++ b/api/ks-openapi-spec/swagger.json @@ -21081,10 +21081,10 @@ }, "v1alpha2.Node": { "required": [ - "rank", + "labelMinor", "id", "label", - "labelMinor", + "rank", "controls" ], "properties": { @@ -21192,10 +21192,10 @@ }, "v1alpha2.NodeSummary": { "required": [ - "labelMinor", - "rank", "id", - "label" + "label", + "labelMinor", + "rank" ], "properties": { "adjacency": { diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 0509f2cfe..f2b1abc2b 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -10770,6 +10770,10 @@ "description": "Region is the name of the region in which all of the nodes in the cluster exist. e.g. 'us-east1'.", "type": "string" }, + "uid": { + "description": "UID is the kube-system namespace UID of the cluster, which represents the unique ID of the cluster.", + "type": "string" + }, "zones": { "description": "Zones are the names of availability zones in which the nodes of the cluster exist, e.g. 'us-east1-a'.", "type": "array", diff --git a/config/crds/cluster.kubesphere.io_clusters.yaml b/config/crds/cluster.kubesphere.io_clusters.yaml index dc22c6bad..30a110964 100644 --- a/config/crds/cluster.kubesphere.io_clusters.yaml +++ b/config/crds/cluster.kubesphere.io_clusters.yaml @@ -167,6 +167,10 @@ spec: description: Region is the name of the region in which all of the nodes in the cluster exist. e.g. 'us-east1'. type: string + uid: + description: UID is the kube-system namespace UID of the cluster, + which represents the unique ID of the cluster. + type: string zones: description: Zones are the names of availability zones in which the nodes of the cluster exist, e.g. 'us-east1-a'. diff --git a/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go b/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go index a5c86e07e..d38039921 100644 --- a/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go +++ b/staging/src/kubesphere.io/api/cluster/v1alpha1/openapi_generated.go @@ -14439,6 +14439,13 @@ func schema_kubesphereio_api_cluster_v1alpha1_ClusterStatus(ref common.Reference }, }, }, + "uid": { + SchemaProps: spec.SchemaProps{ + Description: "UID is the kube-system namespace UID of the cluster, which represents the unique ID of the cluster.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, },