feat: add file resource provider for EG standalone mode#3159
feat: add file resource provider for EG standalone mode#3159Xunzhuo merged 23 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
… provider Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Custom is needed to allow for different resource and infra provider |
Add it later when a use case comes out? The File/Host Provider is not a custom provider, it's a known one. |
use case exists today - file resource provider and host infra provider to implement standalone case, running EG in a docker container or bare metal directly w/o any API server |
|
/retest |
yeah I'm a +1 for this, prioritizing other PRs right now, will get to this one soon |
|
will split changes of |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions! |
|
Hi, does it set |
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3159 +/- ##
==========================================
- Coverage 67.99% 66.54% -1.45%
==========================================
Files 190 195 +5
Lines 23130 23699 +569
==========================================
+ Hits 15727 15771 +44
- Misses 6284 6809 +525
Partials 1119 1119 ☔ View full report in Codecov by Sentry. |
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
| // - This issue is tracked by https://github.com/envoyproxy/gateway/issues/3207 | ||
| // | ||
| // convertKubernetesYAMLToResources converts a Kubernetes YAML string into GatewayAPI Resources. | ||
| func convertKubernetesYAMLToResources(str string) (*gatewayapi.Resources, error) { |
There was a problem hiding this comment.
should deal with ReferenceGrant type resource in this func?
There was a problem hiding this comment.
Yes, it should. This PR only leverage the basic functionality for file-provider, as described in the comments here, this function will be revisited along with the one in egctl x translate.
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
You can start file-provider mode like apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyGateway
gateway:
controllerName: gateway.envoyproxy.io/gatewayclass-controller
provider:
type: Custom
custom:
resource:
type: File
file:
paths: ["test/"]
logging:
level:
default: info |
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
|
/retest |
What type of PR is this?
What this PR does / why we need it:
This PR implement two component for file resource provider: Notifier and ResourceStore.
Which issue(s) this PR fixes:
related #1393
There're some TODOs in this PR, tracked by #3213 #3207