Commit Graph

46 Commits

Author SHA1 Message Date
Jacob Delgado a531ef9319 Use with latest tools image 2024-05-30 16:25:13 -06: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
John Howard 9ed092e1a0
Allow defining CRDs from a single version (#3186)
* Allow defining CRDs from a single version

Part of https://github.com/istio/api/issues/3127. Goes with a
corresponding tools change; this will fail until that merges.

This just shows DR. The tool will support both the new and old way (we
can remove the old way if we want), so we don't have to move everything
at once. We will, though. I kept it to one so its easy to review first.

* Move all APIs over
2024-05-14 15:09:49 -07:00
Whitney Griffith ebd4d88ced
[API] Implement Release channels (#3135)
* implement release channels

Signed-off-by: whitneygriffith <whitney.griffith16@gmail.com>

* implement release channels without multiple crds

Signed-off-by: whitneygriffith <whitney.griffith16@gmail.com>

---------

Signed-off-by: whitneygriffith <whitney.griffith16@gmail.com>
2024-04-22 10:56:33 -07:00
John Howard fe48267f86
policy attachment: allow `targetRefs` (#3159)
* policy attachment: allow `targetRefs`

Based on https://github.com/kubernetes-sigs/gateway-api/pull/2966. Note
that we do not HAVE to follow the GatewayAPI here; we can make our own
decision. There is, however, a general desire to allow multiple for
ergonomics.

In this proposal, I hide `targetRef`, but the API will remain + be
implemented forever. Implementation cost here is near zero, as we can
easily translate it to a single `targetRefs`; we just hide from docs to
push users toward the new ones.

* codegen

* Align documentation

* consistency
2024-04-12 13:44:31 -07:00
zirain cf602b958d
Revert "add new phase to WasmPlugin (#3143)" (#3157)
This reverts commit 21eb08855c.
2024-04-11 13:07:31 -07:00
zirain 21eb08855c
add new phase to WasmPlugin (#3143)
* add new phase  to WasmPlugin

* fix build

* rename to INITIAL
2024-04-05 09:20:22 -07:00
jacob-delgado 3d9a233170
Run make gen (#3120) 2024-03-11 17:59:56 -07:00
Peter Jausovec 7b21c4ba4e
docs: formatting fixes in WasmPlugin (#3070)
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
2024-01-29 11:46:34 -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
Peter Jausovec 419f9a35f2
docs: fix a typo and incorrect rendering of URLs (#2991)
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
2023-11-15 15:35:04 -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
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
Rama Chavali 3cfacc6007
add support for network wasm filters (#2904)
* add support for network wasm filters

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* add undefined

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* move to top level enum

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* move to caps

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* add more docs

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

* fix comments

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>

---------

Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
2023-08-22 02:38:49 -07:00
Eric Van Norman 5d68ba1077
Fix some spelling errors (#2884)
Co-authored-by: weizhoublue <weizhou.lan@daocloud.io>
2023-08-08 18:26:18 -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
Kuat 9242317ada
wasm: add fail_open for telemetry plugins (#2799)
* wasm: add fail_open for telemetry plugins

Signed-off-by: Kuat Yessenov <kuat@google.com>

* wasm: add fail_open for telemetry plugins

Signed-off-by: Kuat Yessenov <kuat@google.com>

* review

Signed-off-by: Kuat Yessenov <kuat@google.com>

---------

Signed-off-by: Kuat Yessenov <kuat@google.com>
2023-06-02 10:53:02 -07:00
Jonathan Vila 0f5a7e990b
Changing the WasmPlugin.Priority field from int64 to int32 (#2577) 2023-05-24 05:07:40 -07:00
Pratyush Singhal a6d07899ef
docs: fix wasm plugin traffic selector docs (#2748)
Signed-off-by: Pratyush Singhal <psinghal20@gmail.com>
2023-04-06 05:23:25 -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
Daniel Hawton a39e7047c3
remove hide_from_docs for traffic selector (#2575) 2022-11-24 05:58:06 -08:00
Istio Automation f26e759dd3
Automator: update common-files@master in istio/api@master (#2523) 2022-10-21 08:24:46 -07:00
Eric Van Norman a51f8f8389
Run `make gen` with the new build-tools to generate new html (#2509) 2022-10-17 06:58:09 -07:00
Ingwon Song 776c2fbb29
Fix the comments explaining Workload mode of gateways (#2476)
* Fix comments

* Update extensions/v1alpha1/wasm.proto

Co-authored-by: Eric Van Norman <ericvn@us.ibm.com>

* make gen

Co-authored-by: Eric Van Norman <ericvn@us.ibm.com>
2022-09-07 16:07:38 -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
Faseela K d1ffe5e901
Running make gen (#2446)
Running make gen for some other change resulted in many additional
changes showing up in my local repo. So pushing a separate review for the same.

Signed-off-by: Faseela K <faseela.k@est.tech>
2022-08-04 07:28:26 -07:00
Istio Automation fbb909b586
Automator: update common-files@master in istio/api@master (#2443) 2022-08-03 06:08:58 -07:00
John Howard 72aa7f8e98
Validate and fix all samples (#2413)
* Fix broken samples

* run make gen
2022-07-12 19:08:17 -07:00
Eric Van Norman 5294aace93
Run `make gen` with current tooling (#2409) 2022-07-06 07:17:29 -07:00
Ingwon Song 7f9bb4db42
Extends the scope of ImagePullPolicy to cover http[s]:// and file:// as … (#2336)
* Extends the scope of PullPolicy to cover http\[s\]:// and file:// as well

* add the release note.

* Fix typo

* Update the generated files

* Revert ImagePullPolicy

* Update the generated files.

* Added back the omitted John's change

* Update the generated files.
2022-06-07 14:32:00 -07:00
Ingwon Song e0015771f0
Hide verification_key from doc and declare that it will be not implemented at this time (#2343) 2022-05-12 08:36:35 -07:00
John Howard 5ebfc628bd
buf: migrate to v1 API (#2297) 2022-03-25 06:19:22 -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
zirain 49f540feee
fix fuzz (#2242)
* fix fuzz

* fix comment
2022-02-09 19:28:59 -08:00
zirain 4293757b06
WasmPlugin add VmConfig (#2227)
* WasmPlugin add VmConfig

* update comment
2022-02-09 17:52:25 -08:00
Takeshi Yoneda e9d1de18c1
doc: fix selector in Wasm Plugin examples. (#2154)
* doc: fix selector in Wasm Plugin examples.

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>

* make gen

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2021-11-29 16:00:55 -08:00
John Howard e0ac4ca57e
Fix docs for WASM and Telemtry (#2163)
* Fix docs for WASM and Telemtry

Apparently the spacing is very strict.

Also hide an internal comment

* gen?
2021-11-19 14:19:20 -08:00
Daniel Grimm ff03a60b15
Make WasmPlugin's sha256 field non-optional (#2125)
We don't use the optional flag on any other Istio resource, and it
creates strange semantics in the generated code. This aligns WasmPlugin
with existing CRDs.
2021-10-14 08:50:06 -07:00
Frank Budinsky 052946f096
Move WASM plugin doc to proxy_extensions location (#2124) 2021-10-13 08:58:10 -07:00
Eric Van Norman 1b724d2c57
Fix for istio.io linter (#2078) 2021-08-17 06:46:38 -07:00
Daniel Grimm 5e10e5cff1
Add WasmPlugin API (#1940)
* Add WasmPlugin API

* Renamed workload_selector to `selector`
* Rename signing_key -> verification_key
* Unify structure, make pull_secret a single string, config ->
pluginConfig
* add sandbox_config, plugin_name
* Update release note
* Fix typos

* Make sure to preserve unknown fields in pluginConfig

* Improve plugin_name comment

* Move selector to the top

* Remove sandbox_config

* Inline verification_key

* Improve sha256 docstring

* Improve pull_policy docstring

* Remove dependency on EnvoyFilter, add PluginPhase

* Add example

* Add example

* Address comments

* Address more comments

* Fix CRD generation

* Improve comments

* Fix examples (snake_case to camelCase)

* Review comments

- Clarify default for priority
- Add UNSPECIFIED_POLICY value
- Change sha256 behaviour
2021-07-27 14:05:57 -07:00
Jason Wang fb6ac89050 Remove field rules from api repo (#1196)
* Remove field rules from api repo

* force push protolock file
2019-12-13 08:27:36 -08:00
Jason Wang 7d2523df8d add istio api extensions definitions (#1186) 2019-11-29 07:43:04 -08:00