From 331aa861d43bc08c113b4614631dbab8eca8e22b Mon Sep 17 00:00:00 2001 From: Lukas Krejci Date: Wed, 9 Oct 2024 11:55:20 +0200 Subject: [PATCH] Remove ToolchainCluster.spec.apiEndpoint field. (#449) --- api/v1alpha1/docs/apiref.adoc | 9 --------- api/v1alpha1/toolchaincluster_types.go | 10 ---------- api/v1alpha1/zz_generated.openapi.go | 7 ------- 3 files changed, 26 deletions(-) diff --git a/api/v1alpha1/docs/apiref.adoc b/api/v1alpha1/docs/apiref.adoc index 1cd03f22..9912b345 100644 --- a/api/v1alpha1/docs/apiref.adoc +++ b/api/v1alpha1/docs/apiref.adoc @@ -3334,15 +3334,6 @@ ToolchainClusterSpec defines the desired state of ToolchainCluster [cols="20a,50a,15a,15a", options="header"] |=== | Field | Description | Default | Validation -| *`apiEndpoint`* __string__ | The API endpoint of the member cluster. This can be a hostname, + -hostname:port, IP or IP:port. + - - -Be aware that this is kept in the spec only for compatibility reasons + -and doesn't serve any purpose. Use the Status.APIEndpoint instead. + - - -Deprecated: This is not used for anything. + | | | *`secretRef`* __xref:{anchor_prefix}-github-com-codeready-toolchain-api-api-v1alpha1-localsecretreference[$$LocalSecretReference$$]__ | Name of the secret containing the kubeconfig required to connect + to the cluster. + | | |=== diff --git a/api/v1alpha1/toolchaincluster_types.go b/api/v1alpha1/toolchaincluster_types.go index c30ad46e..8083f693 100644 --- a/api/v1alpha1/toolchaincluster_types.go +++ b/api/v1alpha1/toolchaincluster_types.go @@ -24,16 +24,6 @@ const ( // ToolchainClusterSpec defines the desired state of ToolchainCluster // +k8s:openapi-gen=true type ToolchainClusterSpec struct { - // The API endpoint of the member cluster. This can be a hostname, - // hostname:port, IP or IP:port. - // - // Be aware that this is kept in the spec only for compatibility reasons - // and doesn't serve any purpose. Use the Status.APIEndpoint instead. - // - // Deprecated: This is not used for anything. - // +optional - APIEndpoint string `json:"apiEndpoint,omitempty"` - // Name of the secret containing the kubeconfig required to connect // to the cluster. SecretRef LocalSecretReference `json:"secretRef"` diff --git a/api/v1alpha1/zz_generated.openapi.go b/api/v1alpha1/zz_generated.openapi.go index 2e69ff82..50da023e 100644 --- a/api/v1alpha1/zz_generated.openapi.go +++ b/api/v1alpha1/zz_generated.openapi.go @@ -4591,13 +4591,6 @@ func schema_codeready_toolchain_api_api_v1alpha1_ToolchainClusterSpec(ref common Description: "ToolchainClusterSpec defines the desired state of ToolchainCluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apiEndpoint": { - SchemaProps: spec.SchemaProps{ - Description: "The API endpoint of the member cluster. This can be a hostname, hostname:port, IP or IP:port.\n\nBe aware that this is kept in the spec only for compatibility reasons and doesn't serve any purpose. Use the Status.APIEndpoint instead.\n\nDeprecated: This is not used for anything.", - Type: []string{"string"}, - Format: "", - }, - }, "secretRef": { SchemaProps: spec.SchemaProps{ Description: "Name of the secret containing the kubeconfig required to connect to the cluster.",