-
Notifications
You must be signed in to change notification settings - Fork 631
Add support for GEP-1713: ListenerSets #11255
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
Changes from 1 commit
018d2bb
d65d2a7
a7d9548
775cb44
01bfabc
28d9c30
f5e6882
45edcd2
1c8614a
cf790b0
850c0db
ece9191
121c60d
a3a347b
5841877
d4993df
1885340
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,8 +33,10 @@ import ( | |
|
|
||
| "github.com/kgateway-dev/kgateway/v2/api/v1alpha1" | ||
| "github.com/kgateway-dev/kgateway/v2/internal/kgateway/helm" | ||
| "github.com/kgateway-dev/kgateway/v2/internal/kgateway/ir" | ||
| "github.com/kgateway-dev/kgateway/v2/internal/kgateway/wellknown" | ||
| "github.com/kgateway-dev/kgateway/v2/internal/version" | ||
| common "github.com/kgateway-dev/kgateway/v2/pkg/pluginsdk/collections" | ||
| ) | ||
|
|
||
| var ( | ||
|
|
@@ -71,6 +73,7 @@ type Inputs struct { | |
| ControlPlane ControlPlaneInfo | ||
| InferenceExtension *InferenceExtInfo | ||
| ImageInfo *ImageInfo | ||
| CommonCollections *common.CommonCollections | ||
| } | ||
|
|
||
| type ImageInfo struct { | ||
|
|
@@ -302,13 +305,23 @@ func (d *Deployer) getGatewayClassFromGateway(ctx context.Context, gw *api.Gatew | |
| } | ||
|
|
||
| func (d *Deployer) getValues(gw *api.Gateway, gwParam *v1alpha1.GatewayParameters) (*helmConfig, error) { | ||
| d.inputs.CommonCollections.GatewayIndex.Gateways.WaitUntilSynced(make(<-chan struct{})) | ||
stevenctl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| gwKey := ir.ObjectSource{ | ||
| Group: wellknown.GatewayGVK.GroupKind().Group, | ||
| Kind: wellknown.GatewayGVK.GroupKind().Kind, | ||
| Name: gw.GetName(), | ||
| Namespace: gw.GetNamespace(), | ||
| } | ||
| irGW := d.inputs.CommonCollections.GatewayIndex.Gateways.GetKey(gwKey.ResourceName()) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it might be possible that we miss the krt lookup and only have the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think this should work because the controller should start only after krt is warm, IIRC.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added the |
||
|
|
||
| // construct the default values | ||
| vals := &helmConfig{ | ||
| Gateway: &helmGateway{ | ||
| Name: &gw.Name, | ||
| GatewayName: &gw.Name, | ||
| GatewayNamespace: &gw.Namespace, | ||
| Ports: getPortsValues(gw, gwParam), | ||
| Ports: getPortsValues(irGW, gwParam), | ||
| Xds: &helmXds{ | ||
| // The xds host/port MUST map to the Service definition for the Control Plane | ||
| // This is the socket address that the Proxy will connect to on startup, to receive xds updates | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Does this need to be in a goroutine ?
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.
No, will create a goroutine under the hood
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 we need to call
Registeronly afterkrthas started. @stevenctl do you know if that issue was fixed?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.
Ah, it's letting me respond here. For posterity: I believe the only issue is if we need the initial state, and luckily in this case we do not.