@@ -42,9 +42,7 @@ const (
42
42
type Expose struct {
43
43
Service Service `json:"service,omitempty"`
44
44
// Deprecated: Use .spec.router instead.
45
- // Ingress Ingress `json:"ingress,omitempty"`
46
- // Deprecated: Use .spec.router instead.
47
- // HTTPRoute HTTPRoute `json:"httpRoute,omitempty"`
45
+ Ingress Ingress `json:"ingress,omitempty"`
48
46
}
49
47
50
48
// +kubebuilder:validation:XValidation:rule="!(has(self.gateway) && has(self.ingressClass))", message="ingressClass and gateway cannot be specified together"
@@ -148,41 +146,6 @@ type Ingress struct {
148
146
Spec networkingv1.IngressSpec `json:"spec,omitempty"`
149
147
}
150
148
151
- // HTTPRoute defines attributes to HTTPRoute in Gateway API.
152
- type HTTPRoute struct {
153
- Enabled * bool `json:"enabled,omitempty"`
154
- Annotations map [string ]string `json:"annotations,omitempty"`
155
- Spec * HTTPRouteSpec `json:"spec,omitempty"`
156
- }
157
-
158
- type HTTPRouteSpec struct {
159
- gatewayv1.CommonRouteSpec `json:",inline"`
160
- Host gatewayv1.Hostname `json:"host,omitempty"`
161
- Paths []HTTPPathMatch `json:"paths,omitempty"`
162
- }
163
-
164
- type HTTPPathMatch struct {
165
- // Type specifies how to match against the path Value.
166
- // +optional
167
- // +kubebuilder:default=PathPrefix
168
- Type * gatewayv1.PathMatchType `json:"type,omitempty"`
169
-
170
- // Value of the HTTP path to match against.
171
- // +optional
172
- // +kubebuilder:default="/"
173
- // +kubebuilder:validation:MaxLength=1024
174
- Value * string `json:"value,omitempty"`
175
- }
176
-
177
- // IngressV1 defines attributes for ingress
178
- //
179
- // +kubebuilder:validation:XValidation:rule="(has(self.spec) && has(self.enabled) && self.enabled) || !has(self.enabled) || !self.enabled", message="spec cannot be nil when ingress is enabled"
180
- type IngressV1 struct {
181
- Enabled * bool `json:"enabled,omitempty"`
182
- Annotations map [string ]string `json:"annotations,omitempty"`
183
- Spec * IngressSpec `json:"spec,omitempty"`
184
- }
185
-
186
149
// ResourceRequirements defines the resources required for a container.
187
150
type ResourceRequirements struct {
188
151
// Limits describes the maximum amount of compute resources allowed.
0 commit comments