From c27099d5aeafff8590011b669f3817dc63641bf3 Mon Sep 17 00:00:00 2001 From: Johannes Aubart Date: Mon, 1 Sep 2025 13:40:45 +0200 Subject: [PATCH] remove namespace from ClusterProfile's provider and providerconfig references --- api/clusters/v1alpha1/clusterprofile_types.go | 4 +-- ...lusters.openmcp.cloud_clusterprofiles.yaml | 30 ++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/api/clusters/v1alpha1/clusterprofile_types.go b/api/clusters/v1alpha1/clusterprofile_types.go index 2a6be66..7e9384d 100644 --- a/api/clusters/v1alpha1/clusterprofile_types.go +++ b/api/clusters/v1alpha1/clusterprofile_types.go @@ -9,10 +9,10 @@ import ( // ClusterProfileSpec defines the desired state of Provider. type ClusterProfileSpec struct { // ProviderRef is a reference to the ClusterProvider - ProviderRef commonapi.ObjectReference `json:"providerRef"` + ProviderRef commonapi.LocalObjectReference `json:"providerRef"` // ProviderConfigRef is a reference to the provider-specific configuration. - ProviderConfigRef commonapi.ObjectReference `json:"providerConfigRef"` + ProviderConfigRef commonapi.LocalObjectReference `json:"providerConfigRef"` // SupportedVersions are the supported Kubernetes versions. SupportedVersions []SupportedK8sVersion `json:"supportedVersions"` diff --git a/api/crds/manifests/clusters.openmcp.cloud_clusterprofiles.yaml b/api/crds/manifests/clusters.openmcp.cloud_clusterprofiles.yaml index 73f21f0..01c08e4 100644 --- a/api/crds/manifests/clusters.openmcp.cloud_clusterprofiles.yaml +++ b/api/crds/manifests/clusters.openmcp.cloud_clusterprofiles.yaml @@ -55,28 +55,30 @@ spec: configuration. properties: name: - description: Name is the name of the object. + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string - namespace: - description: Namespace is the namespace of the object. - type: string - required: - - name - - namespace type: object + x-kubernetes-map-type: atomic providerRef: description: ProviderRef is a reference to the ClusterProvider properties: name: - description: Name is the name of the object. - type: string - namespace: - description: Namespace is the namespace of the object. + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string - required: - - name - - namespace type: object + x-kubernetes-map-type: atomic supportedVersions: description: SupportedVersions are the supported Kubernetes versions. items: