-
Notifications
You must be signed in to change notification settings - Fork 596
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
32
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.
+643
−50
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
500d32f
controller_offline.go: register extension-server policy kinds in clie…
daum3ns b5a11cd
controller_offline.go: add comments about possible missing extension …
daum3ns 52f87ac
load.go: temporary treat all unknown kinds as extension server policy
daum3ns 2656f7f
runner.go: pass extension policy GVKs in translator
daum3ns 8be0086
file provider: persist ExtensionServerPolicies to store
daum3ns e81baf1
test: add offline controller test for custom extension resources
daum3ns 3176745
config loader test: add testcase for standalone mode with extension
daum3ns 6beec4b
test(config/decoder): Add a new test case to that verifies decoding o…
daum3ns 271224a
set default namespace in custom resources if no namespace is provided
daum3ns acc84fa
test/controller_offline: extend test to verify the CR can be loaded from
daum3ns 310229c
add missin yaml for test
daum3ns c7990fe
configloader test: fix race condition
daum3ns cc48acd
add configuration to provider struct, pass it along so that the loader
daum3ns 73d2f3f
add missing yaml for decoder test
daum3ns f9076f0
fix linter warnings
daum3ns 85d850e
controller_offline_test: extend test to show the issue also affects
daum3ns b34877d
fix testcase, register all extensions im scheme
daum3ns 0bea998
load.go: store route filter resources and custom backend resources in…
daum3ns d16333f
file provider: persist ExtensionRefFilters to store
daum3ns 6cca830
controller_offline_test: adapt test expectation
daum3ns 73603d1
typo
daum3ns bfc83c6
adapt YAML file for controller_offline.test
daum3ns b87e5d8
extend decoder test with extensionmanager.resources and
daum3ns 73d0323
revises from review: rename loop variable, use envoyGateway directly
daum3ns 83e3b28
fix linter errors
daum3ns a0fb40d
Refactor loadKubernetesYAMLToResources to get rid of the default label
daum3ns 361e745
controller_offline_test: add testcase that shows problem with
daum3ns d2847aa
controller_offline: register missing indices
daum3ns 2e48e33
update helm module to fix vulnerability in containerd
daum3ns b426305
controller_offline_test: extend index registration test to check all
daum3ns a7478c4
Revert "update helm module to fix vulnerability in containerd"
daum3ns 676c888
linter
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.
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
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.
i think so, the controller does it the same way
#7331 (comment)