Problem statement
GatewayClassObservedGenerationBump checks that all the status conditions on GatewayClass has their ObservedGeneration bumped in
|
kubernetes.GatewayClassMustHaveLatestConditions(t, original) |
This is done once and hence can fail if the controller is yet to reconcile the GatewayClass.
Proposed solution
Use something like require.Eventually() which will allow a (short) period of time for the controller to perform the status update.