diff --git a/api/v1alpha/datumcluster_types.go b/api/v1alpha/datumcluster_types.go index f0687be..cc0b32c 100644 --- a/api/v1alpha/datumcluster_types.go +++ b/api/v1alpha/datumcluster_types.go @@ -89,6 +89,18 @@ type DatumClusterList struct { Items []DatumCluster `json:"items"` } +type DatumClusterReference struct { + // Name of a datum cluster + // + // +kubebuilder:validation:Required + Name string `json:"name"` + + // Namespace for the datum cluster + // + // +kubebuilder:validation:Required + Namespace string `json:"namespace"` +} + func init() { SchemeBuilder.Register(&DatumCluster{}, &DatumClusterList{}) } diff --git a/api/v1alpha/zz_generated.deepcopy.go b/api/v1alpha/zz_generated.deepcopy.go index 3ab5eec..ed59045 100644 --- a/api/v1alpha/zz_generated.deepcopy.go +++ b/api/v1alpha/zz_generated.deepcopy.go @@ -92,6 +92,21 @@ func (in *DatumClusterProvider) DeepCopy() *DatumClusterProvider { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DatumClusterReference) DeepCopyInto(out *DatumClusterReference) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatumClusterReference. +func (in *DatumClusterReference) DeepCopy() *DatumClusterReference { + if in == nil { + return nil + } + out := new(DatumClusterReference) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DatumClusterSpec) DeepCopyInto(out *DatumClusterSpec) { *out = *in