Commit Graph

55 Commits

Author SHA1 Message Date
jacob-delgado 3471b2b70b
run make gen (#3559) 2025-08-28 16:54:06 -04:00
jacob-delgado 28d2c81cb5
Run with latest build container (#3552) 2025-08-19 03:35:16 -04:00
zirain 65babd3c01
format protobuf files (#3522) 2025-06-16 11:17:16 -04:00
jacob-delgado 80b6f10e34
update protos (#3478)
* update protos

* update dependencies

* make tidy
2025-03-31 19:10:45 -04:00
jacob-delgado 41ef999fc6
Run make gen (#3440) 2025-02-13 19:11:45 -05:00
Ian Rudie 03360c1a87
Validation: remove CEL for PolicyTargetRef to allow vendor extensions (#3414)
* Validation: CEL adjusted to allow PolicyTargetReference to target gtwapi GatewayClass

Signed-off-by: Ian Rudie <ian.rudie@solo.io>

* adding releasenote

Signed-off-by: Ian Rudie <ian.rudie@solo.io>

* remove CEL validations for PolicyTargetRef to allow vendor extensions

Signed-off-by: Ian Rudie <ian.rudie@solo.io>

* remove centralized group/kind detail and move to where targetRef is used in resources

Signed-off-by: Ian Rudie <ian.rudie@solo.io>

---------

Signed-off-by: Ian Rudie <ian.rudie@solo.io>
2025-01-24 17:16:00 -05:00
jacob-delgado 8a62f1e437
Run make gen (#3415) 2025-01-16 16:29:54 -05:00
Istio Automation 6516922f64
Automator: update common-files@master in istio/api@master (#3405) 2025-01-03 18:49:58 -05:00
Craig Box 5fcb020312
New HTML (#3388) 2024-12-16 10:19:15 -05:00
jacob-delgado 918717d1a2
Run make gen with latest image (#3368) 2024-11-23 04:07:16 -05:00
rob salmond 76c3278753
new schema format (#3352) 2024-11-07 02:19:27 -05:00
Faseela K 14aff11e9f
Run make-gen for protoc-gen-go v1.35.1 (#3330)
Signed-off-by: Faseela K <faseela.k@est.tech>
2024-10-10 14:46:46 -04:00
John Howard abec44418d
Pick up changes to CRD template naming and fix excessive WG validation (#3295)
* Rename tag names

* Drop embedding address validation in WG
2024-08-20 17:22:23 -04:00
John Howard 8dd4b42e93
Allow targetRef to SE (#3271) 2024-07-22 14:01:30 -04:00
jacob-delgado 74890bf7da
run make gen (#3248) 2024-06-27 20:22:26 -04:00
John Howard 0dbacc0160
CEL Validations for ProxyConfig, RequestAuthentication, and PeerAuthentication (#3223)
* Add CEL validation for ProxyConfig

* add PA

* Add RequestAuthentication

* allow empty validation

* validate groups

* oops

* gen

* fix
2024-06-04 17:16:07 -04:00
John Howard 1bd7c057ee
Fix CEL validation on older k8s versions (#3219)
* Fix CEL validation on older k8s versions

Also add testing so we can catch this (though its tied to a single k8s
version, so its not perfect -- but should be able to catch most cases).

CEL before k8s 1.30 did not estimate the cost correctly so its basically
impossible

* actually keep it
2024-05-31 11:21:11 -04:00
jacob-delgado fd44b55c2a
Make gen with latest tools image (#3220)
* Use with latest tools image

* update grpc-go dependency
2024-05-30 20:33:10 -04:00
John Howard 638ceb91b1
Improvements to CEL validations (#3218)
* Validate wildcard label selectors

* More CEL improvements

This gives WasmPlugin and Telemetry full parity with the webhook.
Verified by fuzzing, which I will merge into istio/istio after this
(tests fail before this lands)
2024-05-29 22:58:03 -04:00
Daneyon Hansen 2b5bf4c8a0
Adds Service Type to PolicyTargetReference API Docs (#3199)
Previously, only a Gateway resource was defined as a supported
attachment type. This PR updates the API docs to include a Service
as a supported type and also fixes an incorrect link to Gateway API
documentation.

Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
2024-05-15 22:29:11 -04:00
jacob-delgado 3d9a233170
Run make gen (#3120) 2024-03-11 17:59:56 -07:00
John Howard 76d8e65ae7
docs: remove per-version API tabs (#3100)
Fixes https://github.com/istio/api/issues/2994
2024-03-05 07:22:21 -08:00
jacob-delgado 06018d723c
Run make gen with new protoc (#3051)
* Run make gen with new protoc

* Update dependencies
2024-01-17 09:03:58 -08:00
Jeremy L. Morris 68d86fae7d
Unhide the targetRef docs (#2983)
* Unhide the targetRef docs

* run make gen
2023-11-30 12:21:26 -08:00
John Howard a53bf82349
Adopt CRD native validation (#2951)
* Adopt CRD native validation: WasmPlugin

* fix banner

* Hide confusing errors
2023-10-16 12:49:37 -07:00
John Howard 06a054d5f8
Properly hideFromDocs targetRef (#2940)
Apparently it needs to be line 1.
2023-10-12 08:12:42 -07:00
John Howard 4881de7246
Align REQUIRED declaration with reality (#2946)
The `REQUIRED` proto label currently does nothing. As a result, some of
them are misaligned with reality -- fields marked REQUIRED are actually
not required, and often even have valid behaviors and are used in the
real world.

Unfortunately, many of these are fields that *should* be required but
are not. To maintain backwards compatibility, these cannot be made
required at this point, sadly.

In a future PR, I intend to make `REQUIRED` *actually make it required*,
so this PR is a pre-requisite to doing that.
2023-10-05 09:46:37 -07:00
Jackie Elliott 283cc40b07
Define targetRef proto (#2888)
* Define protobuf for PolicyTargetReference

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Add targetRef to AuthorizationPolicy, Telemetry, WasmPlugin,
ProxyConfig, and RequestAuthentication.

Need more examples.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Add examples

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Moved targetRef def to selector.proto. Removed kubebuilder
comments. Added release note for targetRef.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Add oneof to CRD protos. Add clarifying comments about intended
use of taretRef.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Remove targetRef from ProxyConfig

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Removed root namespace references and ingress gateway targetRef
examples.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Hide API changes from docs and remove examples until impl is
complete

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Remove telemtry example until impl complete

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* add clarification resource must be in same ns as policy and add
oneof to wasm plugin.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Remove oneof in to avoid go changes.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* update release note to clarify scope is limited to waypoints

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Update authorizationPolicy selector comment

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* clarify in targetRef description only waypoint is supported as a
targeted resource

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* add k8s gateway references

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Respond to PR feedback and add selector example.

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

* Address nits

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>

---------

Signed-off-by: Jackie Elliott <jaellio@microsoft.com>
2023-09-05 15:45:52 -07:00
John Howard 38de472a5f
Drop json schema generation (#2875)
We only generate this for some resources and not others, and no one has
complained -- so there doesn't seem to be much value in maintaining
this, but it provides a lot of boilerplate.

Rather than "fixing" it to be used for all types, seems better to just
drop this. We already have the schema as proto and OpenAPI (via CRD).
2023-08-02 19:44:43 -07:00
Matt Kramer 064529d3bb
chore: Fix typo in VirtualService docs (#2847)
* Fix typo in VirtualService docs

* Run make gen
2023-07-06 13:44:32 -07:00
zirain 49a8f67e97
update `proxy_inbound_listen_port` doc (#2735)
* update doc

* fix make gen

* fix gencheck
2023-03-21 19:43:21 -07:00
Sathish d80de99025
Format corrections of JWTRule document (#2720)
* Fix indentation of jwt doc

* Update comment line of jwtrule

* Fix indentation of jwt doc

* Update comment line of jwtrule

* Rebase with latest master

---------

Co-authored-by: Sathish Swaminathan <sathish.swaminathan@ibm.com>
2023-03-13 12:07:22 -07:00
Istio Automation f26e759dd3
Automator: update common-files@master in istio/api@master (#2523) 2022-10-21 08:24:46 -07:00
Ingwon Song d5358d93ef
Add a match scheme to WasmPlugin for passing more specific traffic to Wasm module (#2412)
* Add a match scheme to WasmPlugin to select more specific traffic

* Make gen

* Move PortSelector and WorkloadMode to type/v1beta1/selector.proto

* Reflect the comments

* Catch up the missing "make gen"

* Reflect the comments

* Reflect the comments

* Reflect the comments, again

* Do "make gen"
2022-09-06 08:37:31 -07:00
Istio Automation fbb909b586
Automator: update common-files@master in istio/api@master (#2443) 2022-08-03 06:08:58 -07:00
Eric Van Norman 5294aace93
Run `make gen` with current tooling (#2409) 2022-07-06 07:17:29 -07:00
John Howard 9d336787a4
Migrate from gogo/protobuf to golang/protobuf (#2293)
* Migrate gogo/protobuf to golang/protobuf

* generated changes

* Fixes to deepcopy
2022-03-23 08:11:37 -07:00
Istio Automation aadf1ba23c
Automator: update common-files@master in istio/api@master (#2007) 2021-05-25 17:10:56 -07:00
John Howard 2bcca53775
Move protobuf generation/configuration to buf (#1833)
https://docs.buf.build/

Buf is the successor to https://github.com/uber/prototool which we
already use for linting.

This dramatically simplifies our Makefiles, which are both extremely
complicated and have led to numerous bugs historically, such as
https://github.com/istio/api/issues/1678.

This will make changes to the generation much simpler as well. For
example, to migrate to gogo protobuf, we will just need to change `gogo`
-> `go` in one location, rather than trying to wrangle 500 lines of
Makefiles. Additionally, its quite a bit faster - the whole proto stuff
is done in <1s now.
2021-01-28 17:47:43 -08:00
jacob-delgado 328c3a3713
Generate protos (#1822)
* Run make clean gen

* Run make proto-commit
2021-01-13 16:39:59 -08:00
Yangmin Zhu 8c3489c742
fix workload selector link in security API (#1705) 2020-11-05 12:26:40 -08:00
John Howard 174a9fd5f2
Regenerate json code (#1677)
* Regenerate json code

I am not sure why this wasn't done automatically, might be a bug in our
auto update logic

* resync
2020-10-07 12:35:42 -07:00
John Howard 9a994ae513
Import new DeepCopy changes (#1613)
* deepcopy

* Better reuse implementation

* Update common

* update others
2020-09-01 13:35:38 -07:00
Shamsher Ansari af0b0b3fd6
Fix broken link for WorkloadSelector (#1550) 2020-07-23 08:33:36 -07:00
Shamsher Ansari d32519b265
Fix invalid link for WorkloadSelector (#1540) 2020-07-21 10:36:07 -07:00
Jian Zeng e094649aa7
feat: generate deepcopy methods for all the types (#1454) 2020-06-02 12:32:24 -07:00
Yangmin Zhu dbc1d7b502 fix comments (#1228) 2020-01-08 18:55:30 -08:00
Jason Wang 3fcb499e2a Regen based on new container (#1152) 2019-11-01 15:10:11 -07:00
Jason Wang 1187adbd14 Use field_behavior as an option for required fields (#1125)
* use field_behavior opiton for required fields

* modify makefile to replace import path for field_behavior

* generate after image update

* changes after comments from policy and telemetry team

* regen after changes

* update networking and rebase
2019-10-14 10:42:57 -07:00
Martin Taillefer ebe44b4258
Update common files. (#1124) 2019-10-11 09:24:41 -07:00