@@ -96,7 +96,7 @@ kubectl get pod -l name=postgres-operator
9696The operator employs K8s-provided code generation to obtain deep copy methods
9797and K8s-like APIs for its custom resource definitions, namely the
9898Postgres CRD and the operator CRD. The usage of the code generation follows
99- conventions from the k8s community. Relevant scripts live in the ` hack `
99+ conventions from the K8s community. Relevant scripts live in the ` hack `
100100directory:
101101* ` update-codegen.sh ` triggers code generation for the APIs defined in ` pkg/apis/acid.zalan.do/ ` ,
102102* ` verify-codegen.sh ` checks if the generated code is up-to-date (to be used within CI).
@@ -247,23 +247,20 @@ kubectl logs acid-minimal-cluster-0
247247
248248## End-to-end tests
249249
250- The operator provides reference e2e ( end-to-end) tests to ensure various infra
251- parts work smoothly together. Each e2e execution tests a Postgres Operator image
252- built from the current git branch. The test runner starts a [ kind ] ( https://kind.sigs.k8s.io/ )
253- (local k8s) cluster and Docker container with tests. The k8s API client from
254- within the container connects to the ` kind ` cluster using the standard Docker
255- ` bridge ` network . The tests utilize examples from ` /manifests ` (ConfigMap is
256- used for the operator configuration) to avoid maintaining yet another set of
257- configuration files. The kind cluster is deleted if tests complete successfully .
250+ The operator provides reference end-to-end tests (e2e) (as Docker image) to
251+ ensure various infrastructure parts work smoothly together. Each e2e execution
252+ tests a Postgres Operator image built from the current git branch. The test
253+ runner creates a new local K8s cluster using [ kind ] ( https://kind.sigs. k8s.io/ ) ,
254+ utilizes provided manifest examples, and runs e2e tests contained in the ` tests `
255+ folder . The K8s API client in the container connects to the ` kind ` cluster via
256+ the standard Docker ` bridge ` network. The kind cluster is deleted if tests
257+ finish successfully or on each new run in case it still exists .
258258
259- End-to-end tests are executed automatically during builds:
259+ End-to-end tests are executed automatically during builds (for more details,
260+ see the [ README] ( ../e2e/README.md ) in the ` e2e ` folder):
260261
261262``` bash
262- # invoke them from the project's top directory
263- make e2e-run
264-
265- # install kind and build test image before first run
266- make e2e-tools e2e-build
263+ make e2e
267264```
268265
269266End-to-end tests are written in Python and use ` flake8 ` for code quality.
0 commit comments