diff --git a/api/v1beta2/reference_types.go b/api/v1beta2/reference_types.go index b3e484b3e..50594f3fd 100644 --- a/api/v1beta2/reference_types.go +++ b/api/v1beta2/reference_types.go @@ -29,7 +29,6 @@ type CrossNamespaceObjectReference struct { Kind string `json:"kind,omitempty"` // Name of the referent. - // If multiple resources are targeted `*` may be set. // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:MaxLength=53 // +required @@ -45,7 +44,6 @@ type CrossNamespaceObjectReference struct { // MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels // map is equivalent to an element of matchExpressions, whose key field is "key", the // operator is "In", and the values array contains only "value". The requirements are ANDed. - // MatchLabels requires the name to be set to `*`. // +optional MatchLabels map[string]string `json:"matchLabels,omitempty"` } diff --git a/config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml b/config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml index fbf395bca..1502aaddb 100644 --- a/config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml +++ b/config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml @@ -279,11 +279,10 @@ spec: {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements - are ANDed. MatchLabels requires the name to be set to `*`. + are ANDed. type: object name: - description: Name of the referent. If multiple resources are - targeted `*` may be set. + description: Name of the referent. maxLength: 53 minLength: 1 type: string diff --git a/config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml b/config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml index 021d1882b..4291168e0 100644 --- a/config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml +++ b/config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml @@ -288,11 +288,10 @@ spec: {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements - are ANDed. MatchLabels requires the name to be set to `*`. + are ANDed. type: object name: - description: Name of the referent. If multiple resources are - targeted `*` may be set. + description: Name of the referent. maxLength: 53 minLength: 1 type: string diff --git a/docs/api/notification.md b/docs/api/notification.md index f61bd7616..cc2837b5e 100644 --- a/docs/api/notification.md +++ b/docs/api/notification.md @@ -741,8 +741,7 @@ string
Name of the referent.
-If multiple resources are targeted * may be set.
Name of the referent.
MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is “key”, the
-operator is “In”, and the values array contains only “value”. The requirements are ANDed.
-MatchLabels requires the name to be set to *.