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
// ProxySettingsPolicy is an Inherited Attached Policy. It provides a way to configure the behavior of the connection
80
+
// between NGINX Gateway Fabric and the upstream applications (backends).
81
81
typeProxySettingsPolicystruct {
82
-
metav1.TypeMeta`json:",inline"`
83
-
metav1.ObjectMeta`json:"metadata,omitempty"`
82
+
metav1.TypeMeta`json:",inline"`
83
+
metav1.ObjectMeta`json:"metadata,omitempty"`
84
84
85
-
// Spec defines the desired state of the ProxySettingsPolicy.
86
-
SpecProxySettingsPolicySpec`json:"spec"`
85
+
// Spec defines the desired state of the ProxySettingsPolicy.
86
+
SpecProxySettingsPolicySpec`json:"spec"`
87
+
88
+
// Status defines the state of the ProxySettingsPolicy.
89
+
Status gatewayv1.PolicyStatus`json:"status,omitempty"`
90
+
}
87
91
88
-
// Status defines the state of the ProxySettingsPolicy.
89
-
Status gatewayv1.PolicyStatus`json:"status,omitempty"`
92
+
// +kubebuilder:object:root=true
93
+
94
+
// ProxySettingsPolicyList contains a list of ProxySettingsPolicies.
95
+
typeProxySettingsPolicyListstruct {
96
+
metav1.TypeMeta`json:",inline"`
97
+
metav1.ListMeta`json:"metadata,omitempty"`
98
+
Items []ProxySettingsPolicy`json:"items"`
90
99
}
91
100
92
101
// ProxySettingsPolicySpec defines the desired state of the ProxySettingsPolicy.
93
102
typeProxySettingsPolicySpecstruct {
94
-
//TargetRefs identifies API object(s) to apply the policy to.
95
-
// Objects must be in the same namespace as the policy.
96
-
//
97
-
// Support: Gateway, HTTPRoute, GRPCRoute
98
-
//
99
-
// +kubebuilder:validation:MinItems=1
100
-
// +kubebuilder:validation:MaxItems=16
101
-
//+kubebuilder:validation:XValidation:message="TargetRefs entries must have kind Gateway, HTTPRoute, or GRPCRoute",rule="self.all(t, t.kind == 'Gateway' || t.kind == 'HTTPRoute' || t.kind == 'GRPCRoute')"
102
-
// +kubebuilder:validation:XValidation:message="TargetRefs entries must have group gateway.networking.k8s.io",rule="self.all(t, t.group == 'gateway.networking.k8s.io')"
103
-
// +kubebuilder:validation:XValidation:message="TargetRefs must be unique",rule="self.all(t1, self.exists_one(t2, t1.group == t2.group && t1.kind == t2.kind && t1.name == t2.name))"
// TargetRefs identifies the API object(s) to apply the policy to.
109
+
// Objects must be in the same namespace as the policy.
110
+
//Support: Gateway, HTTPRoute, GRPCRoute
111
+
//
112
+
// +kubebuilder:validation:MinItems=1
113
+
// +kubebuilder:validation:MaxItems=16
114
+
// +kubebuilder:validation:XValidation:message="TargetRefs entries must have kind Gateway, HTTPRoute, or GRPCRoute",rule="self.all(t, t.kind == 'Gateway' || t.kind == 'HTTPRoute' || t.kind == 'GRPCRoute')"
115
+
// +kubebuilder:validation:XValidation:message="TargetRefs entries must have group gateway.networking.k8s.io",rule="self.all(t, t.group == 'gateway.networking.k8s.io')"
116
+
// +kubebuilder:validation:XValidation:message="TargetRefs must be unique",rule="self.all(t1, self.exists_one(t2, t1.group == t2.group && t1.kind == t2.kind && t1.name == t2.name))"
// +kubebuilder:validation:XValidation:message="BusyBuffersSize must be greater than or equal to BufferSize",rule="!has(self.busyBuffersSize) || !has(self.bufferSize) || self.busyBuffersSize >= self.bufferSize"
0 commit comments