You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/dns/v1alpha1/config_types.go
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ type DNSServiceConfigSpec struct {
32
32
// ExternalDNSSource defines the source of the external-dns helm chart in form of a Flux source.
33
33
// Exactly one of 'HelmRepository', 'GitRepository' or 'OCIRepository' must be set.
34
34
// If 'copyAuthSecret' is set, the referenced source secret is copied into the namespace where the Flux resources are created with the specified target name.
35
-
// +kubebuilder:validation:XValidation:rule=`size(self.filter(property, (property == "helm" || property == "git" || property == "oci") && (size(self[property]) > 0))) == 1`, message="Exactly one of 'helm', 'git', or 'oci' must be set"
// PurposeSelectorRequirement is a selector to select purposes to apply the configuration to.
83
84
// The struct can be combined recursively using "and", "or" and "not" to build complex selectors.
84
-
// Exactly one of the fields must be set.
85
+
// Exactly one of the fields must be set, otherwise only one of them is evaluated in the order: name, not, and, or.
85
86
// If name is set, the selector matches if the Cluster's purposes contain the given name.
86
87
// If and is set, the selector matches if all of the contained selectors match.
87
88
// If or is set, the selector matches if any of the contained selectors match.
88
89
// If not is set, the selector matches if the contained selector does not match.
89
-
// +kubebuilder:validation:XValidation:rule=`size(self.filter(property, size(self[property]) > 0)) == 1`, message="Exactly one of 'and', 'or', 'not' or 'name' must be set"
90
90
typePurposeSelectorRequirementstruct {
91
-
And []PurposeSelectorRequirement`json:"and,omitempty"`
92
-
Or []PurposeSelectorRequirement`json:"or,omitempty"`
0 commit comments