diff --git a/api/v1alpha1/ref_types.go b/api/v1alpha1/ref_types.go index 7ae5907..1fc436a 100644 --- a/api/v1alpha1/ref_types.go +++ b/api/v1alpha1/ref_types.go @@ -5,11 +5,11 @@ import ( ) type ConnectionRef struct { - ObjectReference corev1.ObjectReference `json:",inline"` + corev1.ObjectReference `json:",inline"` } type OIDCAppRef struct { - ObjectReference corev1.ObjectReference `json:",inline"` + corev1.ObjectReference `json:",inline"` } // OrganizationRef can reference an organization via K8s object or direct Zitadel ID @@ -17,9 +17,9 @@ type OIDCAppRef struct { // +kubebuilder:validation:XValidation:rule="has(self.name) || has(self.id)",message="must provide either k8s object reference (name) or zitadel ID reference (id)" // +kubebuilder:validation:XValidation:rule="!has(self.id) || has(self.connectionRef.name)",message="zitadel ID reference requires connectionRef.name" type OrganizationRef struct { - ObjectReference corev1.ObjectReference `json:",inline"` - ID string `json:"id,omitempty"` - ConnectionRef ConnectionRef `json:"connectionRef,omitempty"` + corev1.ObjectReference `json:",inline"` + ID string `json:"id,omitempty"` + ConnectionRef ConnectionRef `json:"connectionRef,omitempty"` } // ProjectRef can reference a project via K8s object or direct Zitadel ID