Skip to content

Commit 8383e80

Browse files
committed
remove metadata
Signed-off-by: bitliu <[email protected]>
1 parent 13db12c commit 8383e80

File tree

30 files changed

+7
-2857
lines changed

30 files changed

+7
-2857
lines changed

api/v1alpha1/loadbalancer_types.go

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ type EndpointOverride struct {
200200
}
201201

202202
// EndpointOverrideExtractFrom defines a source to extract endpoint override information from.
203-
// +union
204-
//
205-
// +kubebuilder:validation:XValidation:rule="(has(self.header) && !has(self.metadata)) || (!has(self.header) && has(self.metadata))",message="Exactly one of header or metadata must be set."
206203
type EndpointOverrideExtractFrom struct {
207204
// Header defines the header to get the override endpoint addresses.
208205
// The header value must specify at least one endpoint in `IP:Port` format or multiple endpoints in `IP:Port,IP:Port,...` format.
@@ -211,32 +208,4 @@ type EndpointOverrideExtractFrom struct {
211208
//
212209
// +optional
213210
Header *string `json:"header,omitempty"`
214-
215-
// Metadata defines the metadata key to get the override endpoint addresses from the request dynamic metadata.
216-
// If set this field then it will take precedence over the header field.
217-
//
218-
// +optional
219-
Metadata *EndpointOverrideMetadataKey `json:"metadata,omitempty"`
220-
}
221-
222-
// EndpointOverrideMetadataKey defines the metadata key configuration for endpoint override.
223-
type EndpointOverrideMetadataKey struct {
224-
// Key defines the metadata key.
225-
//
226-
// +kubebuilder:validation:MinLength=1
227-
Key string `json:"key"`
228-
229-
// Path defines the path within the metadata to extract the endpoint addresses.
230-
// Each path element represents a key in nested metadata structure.
231-
//
232-
// +optional
233-
Path []EndpointOverrideMetadataKeyPath `json:"path,omitempty"`
234-
}
235-
236-
// EndpointOverrideMetadataKeyPath defines a path element in the metadata structure.
237-
type EndpointOverrideMetadataKeyPath struct {
238-
// Key defines the key name in the metadata structure.
239-
//
240-
// +kubebuilder:validation:MinLength=1
241-
Key string `json:"key"`
242211
}

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -689,40 +689,7 @@ spec:
689689
For example `10.0.0.5:8080` or `[2600:4040:5204::1574:24ae]:80`.
690690
The IPv6 address is enclosed in square brackets.
691691
type: string
692-
metadata:
693-
description: |-
694-
Metadata defines the metadata key to get the override endpoint addresses from the request dynamic metadata.
695-
If set this field then it will take precedence over the header field.
696-
properties:
697-
key:
698-
description: Key defines the metadata key.
699-
minLength: 1
700-
type: string
701-
path:
702-
description: |-
703-
Path defines the path within the metadata to extract the endpoint addresses.
704-
Each path element represents a key in nested metadata structure.
705-
items:
706-
description: EndpointOverrideMetadataKeyPath defines
707-
a path element in the metadata structure.
708-
properties:
709-
key:
710-
description: Key defines the key name in the
711-
metadata structure.
712-
minLength: 1
713-
type: string
714-
required:
715-
- key
716-
type: object
717-
type: array
718-
required:
719-
- key
720-
type: object
721692
type: object
722-
x-kubernetes-validations:
723-
- message: Exactly one of header or metadata must be set.
724-
rule: (has(self.header) && !has(self.metadata)) || (!has(self.header)
725-
&& has(self.metadata))
726693
maxItems: 10
727694
minItems: 1
728695
type: array

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_envoyextensionpolicies.yaml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -768,43 +768,7 @@ spec:
768768
For example `10.0.0.5:8080` or `[2600:4040:5204::1574:24ae]:80`.
769769
The IPv6 address is enclosed in square brackets.
770770
type: string
771-
metadata:
772-
description: |-
773-
Metadata defines the metadata key to get the override endpoint addresses from the request dynamic metadata.
774-
If set this field then it will take precedence over the header field.
775-
properties:
776-
key:
777-
description: Key defines the metadata
778-
key.
779-
minLength: 1
780-
type: string
781-
path:
782-
description: |-
783-
Path defines the path within the metadata to extract the endpoint addresses.
784-
Each path element represents a key in nested metadata structure.
785-
items:
786-
description: EndpointOverrideMetadataKeyPath
787-
defines a path element in the metadata
788-
structure.
789-
properties:
790-
key:
791-
description: Key defines the key
792-
name in the metadata structure.
793-
minLength: 1
794-
type: string
795-
required:
796-
- key
797-
type: object
798-
type: array
799-
required:
800-
- key
801-
type: object
802771
type: object
803-
x-kubernetes-validations:
804-
- message: Exactly one of header or metadata must
805-
be set.
806-
rule: (has(self.header) && !has(self.metadata))
807-
|| (!has(self.header) && has(self.metadata))
808772
maxItems: 10
809773
minItems: 1
810774
type: array

0 commit comments

Comments
 (0)