Skip to content

Commit 373f9b5

Browse files
authored
fix: remove namespace from ClusterProfile's provider and providerconfig references (#138)
1 parent b55fe23 commit 373f9b5

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

api/clusters/v1alpha1/clusterprofile_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
// ClusterProfileSpec defines the desired state of Provider.
1010
type ClusterProfileSpec struct {
1111
// ProviderRef is a reference to the ClusterProvider
12-
ProviderRef commonapi.ObjectReference `json:"providerRef"`
12+
ProviderRef commonapi.LocalObjectReference `json:"providerRef"`
1313

1414
// ProviderConfigRef is a reference to the provider-specific configuration.
15-
ProviderConfigRef commonapi.ObjectReference `json:"providerConfigRef"`
15+
ProviderConfigRef commonapi.LocalObjectReference `json:"providerConfigRef"`
1616

1717
// SupportedVersions are the supported Kubernetes versions.
1818
SupportedVersions []SupportedK8sVersion `json:"supportedVersions"`

api/crds/manifests/clusters.openmcp.cloud_clusterprofiles.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,30 @@ spec:
5555
configuration.
5656
properties:
5757
name:
58-
description: Name is the name of the object.
58+
default: ""
59+
description: |-
60+
Name of the referent.
61+
This field is effectively required, but due to backwards compatibility is
62+
allowed to be empty. Instances of this type with an empty value here are
63+
almost certainly wrong.
64+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
5965
type: string
60-
namespace:
61-
description: Namespace is the namespace of the object.
62-
type: string
63-
required:
64-
- name
65-
- namespace
6666
type: object
67+
x-kubernetes-map-type: atomic
6768
providerRef:
6869
description: ProviderRef is a reference to the ClusterProvider
6970
properties:
7071
name:
71-
description: Name is the name of the object.
72-
type: string
73-
namespace:
74-
description: Namespace is the namespace of the object.
72+
default: ""
73+
description: |-
74+
Name of the referent.
75+
This field is effectively required, but due to backwards compatibility is
76+
allowed to be empty. Instances of this type with an empty value here are
77+
almost certainly wrong.
78+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
7579
type: string
76-
required:
77-
- name
78-
- namespace
7980
type: object
81+
x-kubernetes-map-type: atomic
8082
supportedVersions:
8183
description: SupportedVersions are the supported Kubernetes versions.
8284
items:

0 commit comments

Comments
 (0)