Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/clusters/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ type ClusterSpec struct {
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="profile is immutable"
Profile string `json:"profile"`

// ClusterConfigRef is a reference to a cluster configuration.
// ClusterConfigs allows to reference any amount of provider-specific cluster configuration objects.
// The k8s resource kind that is referenced by this depends on the provider (which is defined by the profile).
// +optional
ClusterConfigRef *ObjectReference `json:"clusterConfigRef,omitempty"`
ClusterConfigs []ObjectReference `json:"clusterConfigs,omitempty"`

// Kubernetes configuration for the cluster.
Kubernetes K8sConfiguration `json:"kubernetes,omitempty"`
Expand Down
8 changes: 4 additions & 4 deletions api/clusters/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions api/crds/manifests/clusters.openmcp.cloud_clusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,20 @@ spec:
spec:
description: ClusterSpec defines the desired state of Cluster
properties:
clusterConfigRef:
description: ClusterConfigRef is a reference to a cluster configuration.
properties:
name:
description: Name is the name of the referenced resource.
minLength: 1
type: string
required:
- name
type: object
clusterConfigs:
description: |-
ClusterConfigs allows to reference any amount of provider-specific cluster configuration objects.
The k8s resource kind that is referenced by this depends on the provider (which is defined by the profile).
items:
properties:
name:
description: Name is the name of the referenced resource.
minLength: 1
type: string
required:
- name
type: object
type: array
kubernetes:
description: Kubernetes configuration for the cluster.
properties:
Expand Down