Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: add extension configuration to EnvoyGateway #1163

Merged
merged 11 commits into from
Mar 23, 2023

Conversation

haq204
Copy link
Contributor

@haq204 haq204 commented Mar 16, 2023

Companion to #1074. This adds the configuration necessary in EnvoyGateway to register an extension

Relates to #20

@haq204 haq204 requested a review from a team as a code owner March 16, 2023 14:11
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2023

Codecov Report

Merging #1163 (5381bb9) into main (6936ac7) will increase coverage by 0.10%.
The diff coverage is 68.42%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #1163      +/-   ##
==========================================
+ Coverage   63.04%   63.14%   +0.10%     
==========================================
  Files          79       79              
  Lines        9744     9763      +19     
==========================================
+ Hits         6143     6165      +22     
+ Misses       3185     3182       -3     
  Partials      416      416              
Impacted Files Coverage Δ
internal/envoygateway/config/config.go 80.35% <68.42%> (-6.13%) ⬇️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@haq204 haq204 force-pushed the hqudsi/extensions-config branch 2 times, most recently from c301407 to 7ecf1db Compare March 22, 2023 15:49
Hamzah Qudsi added 8 commits March 22, 2023 11:50
Signed-off-by: Hamzah Qudsi <[email protected]>
Signed-off-by: Hamzah Qudsi <[email protected]>
Signed-off-by: Hamzah Qudsi <[email protected]>
Signed-off-by: Hamzah Qudsi <[email protected]>
Hamzah Qudsi added 2 commits March 22, 2023 14:10
cr
Signed-off-by: Hamzah Qudsi <[email protected]>
api/config/v1alpha1/envoygateway_types.go Outdated Show resolved Hide resolved
api/config/v1alpha1/shared_types.go Outdated Show resolved Hide resolved
Signed-off-by: Hamzah Qudsi <[email protected]>
Copy link
Member

@Alice-Lilith Alice-Lilith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks 🙂

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for addressing all the comments, hoping this API unlocks a wider set of use cases for the ecosystem !

@arkodg
Copy link
Contributor

arkodg commented Mar 22, 2023

ptal @youngnick @skriss @zirain @Xunzhuo

Copy link
Member

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@zirain
Copy link
Contributor

zirain commented Mar 23, 2023

just one small question, should Extension be a slice?

@arkodg
Copy link
Contributor

arkodg commented Mar 23, 2023

just one small question, should Extension be a slice?

good point, either we make it Extensions and add a runtime check of 1 or deprecate this field in favor of Extensions when we support multiple

@zirain
Copy link
Contributor

zirain commented Mar 23, 2023

ok, let's review that later, LGTM for now.

@haq204
Copy link
Contributor Author

haq204 commented Mar 23, 2023

As stated in #1074 we made the decision to not support multiple extensions at the same time:

@haq204
Copy link
Contributor Author

haq204 commented Mar 23, 2023

just one small question, should Extension be a slice?

good point, either we make it Extensions and add a runtime check of 1 or deprecate this field in favor of Extensions when we support multiple

I went back and forth on whether this should be a slice given that we would not be supporting more than one extension at this time due to the reasons above.

Only way I see it is if there is a path forward to supporting multiple extensions which I don't think we would. If we did ever support multiple extensions then yes I would favor creating anew Extensions field and deprecate Extension

@arkodg arkodg merged commit 3845773 into envoyproxy:main Mar 23, 2023
@haq204 haq204 deleted the hqudsi/extensions-config branch March 23, 2023 01:44
@zirain
Copy link
Contributor

zirain commented Mar 23, 2023

@arkodg should get #1074 merged?

@arkodg
Copy link
Contributor

arkodg commented Mar 23, 2023

@arkodg should get #1074 merged?

we discussed this in the community meeting, and @AliceProxy and @haq204 mentioned they will raise some PRs for the Hooks API to make sure it is in line with the design doc contents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants