From 2df08f4525a360dd35d79bb4fda119185cec7043 Mon Sep 17 00:00:00 2001 From: Johannes Aubart Date: Mon, 2 Jun 2025 09:28:20 +0200 Subject: [PATCH] add apiserver endpoint to generic Cluster status --- api/clusters/v1alpha1/cluster_types.go | 4 ++++ api/crds/manifests/clusters.openmcp.cloud_clusters.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/api/clusters/v1alpha1/cluster_types.go b/api/clusters/v1alpha1/cluster_types.go index 3a01c8e..cb36972 100644 --- a/api/clusters/v1alpha1/cluster_types.go +++ b/api/clusters/v1alpha1/cluster_types.go @@ -57,6 +57,10 @@ type ClusterStatus struct { // Phase is the current phase of the cluster. Phase ClusterPhase `json:"phase"` + // APIServer is the API server endpoint of the cluster. + // +optional + APIServer string `json:"apiServer,omitempty"` + // ProviderStatus is the provider-specific status of the cluster. // x-kubernetes-preserve-unknown-fields: true // +optional diff --git a/api/crds/manifests/clusters.openmcp.cloud_clusters.yaml b/api/crds/manifests/clusters.openmcp.cloud_clusters.yaml index c6dc363..c46157d 100644 --- a/api/crds/manifests/clusters.openmcp.cloud_clusters.yaml +++ b/api/crds/manifests/clusters.openmcp.cloud_clusters.yaml @@ -122,6 +122,9 @@ spec: status: description: ClusterStatus defines the observed state of Cluster properties: + apiServer: + description: APIServer is the API server endpoint of the cluster. + type: string conditions: description: Conditions contains the conditions. items: