respect inline references
All checks were successful
Build and Publish / build-release (push) Successful in 2m2s
All checks were successful
Build and Publish / build-release (push) Successful in 2m2s
This commit is contained in:
@@ -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,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.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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ProjectRef can reference a project via K8s object or direct Zitadel ID
|
// ProjectRef can reference a project via K8s object or direct Zitadel ID
|
||||||
|
|||||||
Reference in New Issue
Block a user