-
Notifications
You must be signed in to change notification settings - Fork 91
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
[maistra-2.6] Rebase gateway controller #1002
[maistra-2.6] Rebase gateway controller #1002
Conversation
6ddec66
to
ea070ca
Compare
58906ec
to
70ab4ad
Compare
70ab4ad
to
0381b91
Compare
/test maistra-istio-unit-2-6 |
3 similar comments
/test maistra-istio-unit-2-6 |
/test maistra-istio-unit-2-6 |
/test maistra-istio-unit-2-6 |
ff42a6a
to
9b41733
Compare
c85d010
to
5d64893
Compare
/test maistra-istio-unit-2-6 |
e881c39
to
2074e01
Compare
/test maistra-istio-unit-2-6 |
// if in gw controller mode, don't filter gw-api resources | ||
if features.EnableGatewayControllerMode && s.Group() == gvk.KubernetesGateway.Group { | ||
return true | ||
} |
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.
Moved from crdclient/cache_handler.go
/test maistra-istio-unit-2-6 |
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.
Could you add an integration test for custom class and controller names?
2074e01
to
d521504
Compare
/test maistra-istio-unit-2-6 |
func PatchIstiodAndRestart(istioNs namespace.Getter, patch string) resource.SetupFn { | ||
return func(ctx resource.Context) error { | ||
kubeClient := ctx.Clusters().Default().Kube() | ||
var lastSeenGeneration int64 | ||
if err := waitForIstiod(kubeClient, istioNs.Get(), &lastSeenGeneration); err != nil { | ||
return err | ||
} | ||
if err := patchIstiodArgs(kubeClient, istioNs.Get(), patch); err != nil { | ||
return err | ||
} | ||
if err := waitForIstiod(kubeClient, istioNs.Get(), &lastSeenGeneration); err != nil { | ||
return err | ||
} | ||
return nil | ||
} | ||
} |
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.
It might be worth cleaning up this file after #983 merges. There are a number of functions such as DisableWebhooksAndRestart
, EnableIOR
, DisableIOR
that duplicate the code in this function. These could be removed and the tests consuming them modified to use this function. Patch constants could also be moved to their consuming packages (unless used in multiple packages?).
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.
Let's wait for the IOR rebase. It will be merged very soon.
/test maistra-istio-unit-2-6 |
1 similar comment
/test maistra-istio-unit-2-6 |
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.
Great job! Let's wait for IOR and then we will merge it.
079a429
to
12d2feb
Compare
Co-authored-by: Daniel Grimm <[email protected]> Signed-off-by: Yann Liu <[email protected]> Move GatewayControllerMode filtering
* gw-api: make default class name and controller name configurable This is really useful in multi-tenant/multi-revision scenarios Co-authored-by: Daniel Grimm <[email protected]> Signed-off-by: Yann Liu <[email protected]> * gw-api: use consistent controller name Co-authored-by: Daniel Grimm <[email protected]> Signed-off-by: Yann Liu <[email protected]>
Co-authored-by: Daniel Grimm <[email protected]> Signed-off-by: Yann Liu <[email protected]>
Co-authored-by: Daniel Grimm <[email protected]> Signed-off-by: Yann Liu <[email protected]>
12d2feb
to
3ae0bde
Compare
/retest-required |
/retest-required |
1 similar comment
/retest-required |
This comment was marked as outdated.
This comment was marked as outdated.
/retest-required |
No description provided.