respect inline references
All checks were successful
Build and Publish / build-release (push) Successful in 2m2s

This commit is contained in:
2026-05-04 12:16:46 -05:00
parent 8ec42aacd2
commit 4605cf9f65

View File

@@ -5,11 +5,11 @@ import (
) )
type ConnectionRef struct { type ConnectionRef struct {
ObjectReference corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
type OIDCAppRef struct { type OIDCAppRef struct {
ObjectReference corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
} }
// OrganizationRef can reference an organization via K8s object or direct Zitadel ID // OrganizationRef can reference an organization via K8s object or direct Zitadel ID
@@ -17,7 +17,7 @@ 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.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" // +kubebuilder:validation:XValidation:rule="!has(self.id) || has(self.connectionRef.name)",message="zitadel ID reference requires connectionRef.name"
type OrganizationRef struct { type OrganizationRef struct {
ObjectReference corev1.ObjectReference `json:",inline"` corev1.ObjectReference `json:",inline"`
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`
ConnectionRef ConnectionRef `json:"connectionRef,omitempty"` ConnectionRef ConnectionRef `json:"connectionRef,omitempty"`
} }