Skip to content

Commit

Permalink
api: unhide Matches in ProxyAccessLog (#4224)
Browse files Browse the repository at this point in the history
* api: unhide  in ProxyAccessLog

Signed-off-by: zirain <[email protected]>

* sync to v1.1

Signed-off-by: zirain <[email protected]>

* fix gen

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain authored Sep 14, 2024
1 parent 3567496 commit 5d406d2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/accesslogging_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type ProxyAccessLogSetting struct {
// Matches defines the match conditions for accesslog in CEL expression.
// An accesslog will be emitted only when one or more match conditions are evaluated to true.
// Invalid [CEL](https://www.envoyproxy.io/docs/envoy/latest/xds/type/v3/cel.proto.html#common-expression-language-cel-proto) expressions will be ignored.
// +notImplementedHide
// +kubebuilder:validation:MaxItems=10
Matches []string `json:"matches,omitempty"`
// Sinks defines the sinks of accesslog.
// +kubebuilder:validation:MinItems=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10313,6 +10313,7 @@ spec:
Invalid [CEL](https://www.envoyproxy.io/docs/envoy/latest/xds/type/v3/cel.proto.html#common-expression-language-cel-proto) expressions will be ignored.
items:
type: string
maxItems: 10
type: array
sinks:
description: Sinks defines the sinks of accesslog.
Expand Down
1 change: 1 addition & 0 deletions site/content/en/docs/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2725,6 +2725,7 @@ _Appears in:_
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | _[ProxyAccessLogFormat](#proxyaccesslogformat)_ | false | Format defines the format of accesslog.<br />This will be ignored if sink type is ALS. |
| `matches` | _string array_ | true | Matches defines the match conditions for accesslog in CEL expression.<br />An accesslog will be emitted only when one or more match conditions are evaluated to true.<br />Invalid [CEL](https://www.envoyproxy.io/docs/envoy/latest/xds/type/v3/cel.proto.html#common-expression-language-cel-proto) expressions will be ignored. |
| `sinks` | _[ProxyAccessLogSink](#proxyaccesslogsink) array_ | true | Sinks defines the sinks of accesslog. |


Expand Down
1 change: 1 addition & 0 deletions site/content/en/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2909,6 +2909,7 @@ _Appears in:_
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | _[ProxyAccessLogFormat](#proxyaccesslogformat)_ | false | Format defines the format of accesslog.<br />This will be ignored if sink type is ALS. |
| `matches` | _string array_ | true | Matches defines the match conditions for accesslog in CEL expression.<br />An accesslog will be emitted only when one or more match conditions are evaluated to true.<br />Invalid [CEL](https://www.envoyproxy.io/docs/envoy/latest/xds/type/v3/cel.proto.html#common-expression-language-cel-proto) expressions will be ignored. |
| `sinks` | _[ProxyAccessLogSink](#proxyaccesslogsink) array_ | true | Sinks defines the sinks of accesslog. |


Expand Down
1 change: 1 addition & 0 deletions site/content/en/v1.1/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2725,6 +2725,7 @@ _Appears in:_
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | _[ProxyAccessLogFormat](#proxyaccesslogformat)_ | false | Format defines the format of accesslog.<br />This will be ignored if sink type is ALS. |
| `matches` | _string array_ | true | Matches defines the match conditions for accesslog in CEL expression.<br />An accesslog will be emitted only when one or more match conditions are evaluated to true.<br />Invalid [CEL](https://www.envoyproxy.io/docs/envoy/latest/xds/type/v3/cel.proto.html#common-expression-language-cel-proto) expressions will be ignored. |
| `sinks` | _[ProxyAccessLogSink](#proxyaccesslogsink) array_ | true | Sinks defines the sinks of accesslog. |


Expand Down
1 change: 1 addition & 0 deletions site/content/zh/latest/api/extension_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2909,6 +2909,7 @@ _Appears in:_
| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | _[ProxyAccessLogFormat](#proxyaccesslogformat)_ | false | Format defines the format of accesslog.<br />This will be ignored if sink type is ALS. |
| `matches` | _string array_ | true | Matches defines the match conditions for accesslog in CEL expression.<br />An accesslog will be emitted only when one or more match conditions are evaluated to true.<br />Invalid [CEL](https://www.envoyproxy.io/docs/envoy/latest/xds/type/v3/cel.proto.html#common-expression-language-cel-proto) expressions will be ignored. |
| `sinks` | _[ProxyAccessLogSink](#proxyaccesslogsink) array_ | true | Sinks defines the sinks of accesslog. |


Expand Down

0 comments on commit 5d406d2

Please sign in to comment.