Skip to content

Commit da5aff2

Browse files
authored
fix: wrong reference type in Cluster type (#90)
* fix wrong reference type * release v0.9.1
1 parent 3397648 commit da5aff2

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.9.0-dev
1+
v0.9.1

api/clusters/v1alpha1/cluster_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type ClusterSpec struct {
2020
// ClusterConfigs allows to reference any amount of provider-specific cluster configuration objects.
2121
// The k8s resource kind that is referenced by this depends on the provider (which is defined by the profile).
2222
// +optional
23-
ClusterConfigs []commonapi.ObjectReference `json:"clusterConfigs,omitempty"`
23+
ClusterConfigs []commonapi.LocalObjectReference `json:"clusterConfigs,omitempty"`
2424

2525
// Kubernetes configuration for the cluster.
2626
Kubernetes K8sConfiguration `json:"kubernetes,omitempty"`

api/clusters/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,20 @@ spec:
7474
ClusterConfigs allows to reference any amount of provider-specific cluster configuration objects.
7575
The k8s resource kind that is referenced by this depends on the provider (which is defined by the profile).
7676
items:
77-
description: ObjectReference is a reference to an object in any
78-
namespace.
77+
description: LocalObjectReference is a reference to an object in
78+
the same namespace as the resource referencing it.
7979
properties:
8080
name:
81-
description: Name is the name of the object.
82-
type: string
83-
namespace:
84-
description: Namespace is the namespace of the object.
81+
default: ""
82+
description: |-
83+
Name of the referent.
84+
This field is effectively required, but due to backwards compatibility is
85+
allowed to be empty. Instances of this type with an empty value here are
86+
almost certainly wrong.
87+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
8588
type: string
86-
required:
87-
- name
88-
- namespace
8989
type: object
90+
x-kubernetes-map-type: atomic
9091
type: array
9192
kubernetes:
9293
description: Kubernetes configuration for the cluster.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/onsi/ginkgo/v2 v2.23.4
1212
github.com/onsi/gomega v1.37.0
1313
github.com/openmcp-project/controller-utils v0.13.1
14-
github.com/openmcp-project/openmcp-operator/api v0.9.0
14+
github.com/openmcp-project/openmcp-operator/api v0.9.1
1515
github.com/spf13/cobra v1.9.1
1616
k8s.io/api v0.33.3
1717
k8s.io/apimachinery v0.33.3

lib/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/onsi/ginkgo/v2 v2.23.4
99
github.com/onsi/gomega v1.37.0
1010
github.com/openmcp-project/controller-utils v0.13.1
11-
github.com/openmcp-project/openmcp-operator/api v0.9.0
11+
github.com/openmcp-project/openmcp-operator/api v0.9.1
1212
k8s.io/api v0.33.3
1313
k8s.io/apimachinery v0.33.3
1414
k8s.io/client-go v0.33.3

0 commit comments

Comments
 (0)