Kong / gateway-operator

Kubernetes Operator for Kong Gateways
Apache License 2.0
49 stars 11 forks source link

Use envtest framework in tests requiring a k8s apiserver #540

Closed randmonkey closed 4 days ago

randmonkey commented 2 weeks ago

Problem Statement

Some reconcilers requires to build indices, so they cannot start without a real k8s APIserver. To effectively test them, we need to import envtest framework to provide a k8s server for running the reconciler.

Proposed Solution

Import envtest framework and add tests for the reconcilers requiring k8s APIserver in either:

Additional Information

...

Acceptance Criteria

randmonkey commented 1 week ago

dependent on #447.