This commit is contained in:
@@ -13,7 +13,8 @@ type OIDCAppRef struct {
|
||||
}
|
||||
|
||||
// OrganizationRef can reference an organization via K8s object or direct Zitadel ID
|
||||
// +kubebuilder:validation:XValidation:rule="has(self.name) == has(self.id)",message="must provide either k8s object reference (name) or zitadel ID reference (id), but not both"
|
||||
// +kubebuilder:validation:XValidation:rule="has(self.name) != has(self.id)",message="must provide either k8s object reference (name) or zitadel ID reference (id), but not both"
|
||||
// +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"`
|
||||
@@ -22,7 +23,8 @@ type OrganizationRef struct {
|
||||
}
|
||||
|
||||
// ProjectRef can reference a project via K8s object or direct Zitadel ID
|
||||
// +kubebuilder:validation:XValidation:rule="has(self.name) == has(self.id)",message="must provide either k8s object reference (name) or zitadel ID reference (id), but not both"
|
||||
// +kubebuilder:validation:XValidation:rule="has(self.name) != has(self.id)",message="must provide either k8s object reference (name) or zitadel ID reference (id), but not both"
|
||||
// +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 ProjectRef struct {
|
||||
ObjectReference corev1.ObjectReference `json:",inline"`
|
||||
|
||||
Reference in New Issue
Block a user