-
Notifications
You must be signed in to change notification settings - Fork 585
Support custom CRDs for ExtensionServer in Standalone Mode #7331
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
Open
daum3ns
wants to merge
29
commits into
envoyproxy:main
Choose a base branch
from
daum3ns:support-custom-CRDs-for-ExtensionServer-in-Standalone-Mode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
d392a13
controller_offline.go: register extension-server policy kinds in clie…
daum3ns e7ed24c
controller_offline.go: add comments about possible missing extension …
daum3ns 59f8ae0
load.go: temporary treat all unknown kinds as extension server policy
daum3ns 762ffe2
runner.go: pass extension policy GVKs in translator
daum3ns ddea828
file provider: persist ExtensionServerPolicies to store
daum3ns db3c6e8
test: add offline controller test for custom extension resources
daum3ns e9263de
config loader test: add testcase for standalone mode with extension
daum3ns 61c416a
test(config/decoder): Add a new test case to that verifies decoding o…
daum3ns c6f855f
set default namespace in custom resources if no namespace is provided
daum3ns 7302313
test/controller_offline: extend test to verify the CR can be loaded from
daum3ns 26a0312
add missin yaml for test
daum3ns 3c1e2b9
configloader test: fix race condition
daum3ns 21cc5f8
add configuration to provider struct, pass it along so that the loader
daum3ns d66478e
add missing yaml for decoder test
daum3ns 0b63ad4
fix linter warnings
daum3ns f996f5a
controller_offline_test: extend test to show the issue also affects
daum3ns 6e480ac
fix testcase, register all extensions im scheme
daum3ns ed62242
load.go: store route filter resources and custom backend resources in…
daum3ns 63e49df
file provider: persist ExtensionRefFilters to store
daum3ns 5d8fdb6
controller_offline_test: adapt test expectation
daum3ns b423cdf
typo
daum3ns de1eae3
adapt YAML file for controller_offline.test
daum3ns af6d1d5
extend decoder test with extensionmanager.resources and
daum3ns 150c9e6
revises from review: rename loop variable, use envoyGateway directly
daum3ns 0ef8f43
fix linter errors
daum3ns fe0585d
Merge branch 'main' into support-custom-CRDs-for-ExtensionServer-in-S…
shawnh2 568f6fc
Refactor loadKubernetesYAMLToResources to get rid of the default label
daum3ns 0de3be1
controller_offline_test: add testcase that shows problem with
daum3ns fa2a671
controller_offline: register missing indices
daum3ns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
internal/envoygateway/config/loader/testdata/standalone-enable-extension-server.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
| kind: EnvoyGateway | ||
| gateway: | ||
| controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
| logging: | ||
| level: | ||
| default: info | ||
| provider: | ||
| type: Custom | ||
| custom: | ||
| resource: | ||
| type: File | ||
| file: | ||
| paths: ["/tmp/envoy-gateway-test"] | ||
| infrastructure: | ||
| type: Host | ||
| host: {} | ||
| extensionApis: | ||
| enableBackend: true | ||
| extensionManager: | ||
| policyResources: | ||
| - group: gateway.example.io | ||
| version: v1alpha1 | ||
| kind: ExampleExtPolicy | ||
| hooks: | ||
| xdsTranslator: | ||
| post: | ||
| - HTTPListener | ||
| - Route | ||
| - VirtualHost | ||
| - Cluster | ||
| - Translation | ||
| service: | ||
| fqdn: | ||
| hostname: 127.0.0.1 | ||
| port: 5005 | ||
| runtimeFlags: | ||
| enabled: | ||
| - XDSNameSchemeV2 |
22 changes: 22 additions & 0 deletions
22
internal/envoygateway/config/loader/testdata/standalone.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
| kind: EnvoyGateway | ||
| gateway: | ||
| controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
| logging: | ||
| level: | ||
| default: info | ||
| provider: | ||
| type: Custom | ||
| custom: | ||
| resource: | ||
| type: File | ||
| file: | ||
| paths: ["/tmp/envoy-gateway-test"] | ||
| infrastructure: | ||
| type: Host | ||
| host: {} | ||
| extensionApis: | ||
| enableBackend: true | ||
| runtimeFlags: | ||
| enabled: | ||
| - XDSNameSchemeV2 |
47 changes: 47 additions & 0 deletions
47
internal/envoygateway/config/testdata/decoder/in/standalone-extension-server.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
| kind: EnvoyGateway | ||
| gateway: | ||
| controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
| logging: | ||
| level: | ||
| default: info | ||
| provider: | ||
| type: Custom | ||
| custom: | ||
| resource: | ||
| type: File | ||
| file: | ||
| paths: ["/tmp/envoy-gateway-test"] | ||
| infrastructure: | ||
| type: Host | ||
| host: {} | ||
| extensionApis: | ||
| enableBackend: true | ||
| extensionManager: | ||
| resources: | ||
| - group: gateway.example.io | ||
| version: v1alpha1 | ||
| kind: CustomRouteFilterResource | ||
| backendResources: | ||
| - group: storage.example.io | ||
| version: v1 | ||
| kind: S3Bucket | ||
| policyResources: | ||
| - group: gateway.example.io | ||
| version: v1alpha1 | ||
| kind: ExampleExtPolicy | ||
| hooks: | ||
| xdsTranslator: | ||
| post: | ||
| - HTTPListener | ||
| - Route | ||
| - VirtualHost | ||
| - Cluster | ||
| - Translation | ||
| service: | ||
| fqdn: | ||
| hostname: 127.0.0.1 | ||
| port: 5005 | ||
| runtimeFlags: | ||
| enabled: | ||
| - XDSNameSchemeV2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this logic right of adding the ext backend into ext ref flters ?
cc @Xunzhuo