Skip to content

Commit

Permalink
fix metadata options
Browse files Browse the repository at this point in the history
Signed-off-by: Guy Daich <[email protected]>
  • Loading branch information
guydc committed Apr 3, 2024
1 parent 455b9f2 commit d1660ee
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 44 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/ext_proc_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ type ExtProcMetadataOptions struct {
// metadata namespaces forwarded to external processor
//
// +optional
ForwardingNamespaces []MetadataNamespaces `json:"forwardingNamespaces,omitempty"`
ForwardingNamespaces MetadataNamespaces `json:"forwardingNamespaces,omitempty"`

// metadata namespaces updatable by external processor
//
// +optional
ReceivingNamespaces []MetadataNamespaces `json:"receivingNamespaces,omitempty"`
ReceivingNamespaces MetadataNamespaces `json:"receivingNamespaces,omitempty"`
}

// +kubebuilder:validation:XValidation:rule="has(self.backendRef) ? (!has(self.backendRef.group) || self.backendRef.group == \"\") : true", message="group is invalid, only the core API group (specified by omitting the group field or setting it to an empty string) is supported"
Expand Down
16 changes: 2 additions & 14 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -169,34 +169,26 @@ spec:
properties:
forwardingNamespaces:
description: metadata namespaces forwarded to external processor
items:
description: MetadataNamespaces defines metadata namespaces
that can be used to forward or receive dynamic metadata
properties:
untyped:
description: |-
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_proc service
as an opaque protobuf::Struct.
items:
type: string
type: array
type: object
type: array
properties:
untyped:
description: |-
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_proc service
as an opaque protobuf::Struct.
items:
type: string
type: array
type: object
receivingNamespaces:
description: metadata namespaces updatable by external processor
items:
description: MetadataNamespaces defines metadata namespaces
that can be used to forward or receive dynamic metadata
properties:
untyped:
description: |-
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_proc service
as an opaque protobuf::Struct.
items:
type: string
type: array
type: object
type: array
properties:
untyped:
description: |-
Specifies a list of metadata namespaces whose values, if present, will be passed to the ext_proc service
as an opaque protobuf::Struct.
items:
type: string
type: array
type: object
type: object
processingMode:
description: |-
Expand Down
4 changes: 2 additions & 2 deletions site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,8 @@ _Appears in:_

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `forwardingNamespaces` | _[MetadataNamespaces](#metadatanamespaces) array_ | false | metadata namespaces forwarded to external processor |
| `receivingNamespaces` | _[MetadataNamespaces](#metadatanamespaces) array_ | false | metadata namespaces updatable by external processor |
| `forwardingNamespaces` | _[MetadataNamespaces](#metadatanamespaces)_ | false | metadata namespaces forwarded to external processor |
| `receivingNamespaces` | _[MetadataNamespaces](#metadatanamespaces)_ | false | metadata namespaces updatable by external processor |


#### ExtProcProcessingMode
Expand Down

0 comments on commit d1660ee

Please sign in to comment.