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
// NamespacesFromAll allows references from all namespaces.
39
+
NamespacesFromAllFromNamespaces="All"
40
+
// NamespacesFromSame only allows references from the same namespace as the target resource (default).
41
+
NamespacesFromSameFromNamespaces="Same"
42
+
// NamespacesFromSelector allows references from namespaces matching the selector.
43
+
NamespacesFromSelectorFromNamespaces="Selector"
44
+
)
45
+
46
+
// AllowedNamespaces defines which namespaces are allowed to reference this resource.
47
+
// This mechanism provides a bidirectional handshake for cross-namespace references,
48
+
// following the pattern used by Gateway API for cross-namespace route attachments.
49
+
//
50
+
// By default (when not specified), only references from the same namespace are allowed.
51
+
// +kubebuilder:validation:XValidation:rule="!(self.from == 'Selector' && !has(self.selector))",message="selector must be specified when from is Selector"
52
+
typeAllowedNamespacesstruct {
53
+
// From indicates where references to this resource can originate.
54
+
// Possible values are:
55
+
// * All: References from all namespaces are allowed.
56
+
// * Same: Only references from the same namespace are allowed (default).
57
+
// * Selector: References from namespaces matching the selector are allowed.
58
+
// +kubebuilder:default=Same
59
+
// +optional
60
+
FromFromNamespaces`json:"from,omitempty"`
61
+
62
+
// Selector is a label selector for namespaces that are allowed to reference this resource.
0 commit comments