mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-05 17:27:51 +00:00
1.4 KiB
1.4 KiB
End-to-end tests
With kind
kind and kubectl are automatically downloaded
except if SKIP_INSTALL=true is set.
A kind cluster is automatically created before the tests, and deleted after
the tests.
The prometheus-adapter container image is build locally and imported
into the cluster.
KIND_E2E=true make test-e2e
With an existing Kubernetes cluster
If you already have a Kubernetes cluster, you can use:
KUBECONFIG="/path/to/kube/config" REGISTRY="my.registry/prefix" make test-e2e
- The cluster should not have a namespace
prometheus-adapter-e2e. The namespace will be created and deleted as part of the E2E tests. KUBECONFIGis the path of thekubeconfigfile. Optional, defaults to${HOME}/.kube/configREGISTRYis the image registry where the container image should be pushed. Required.
Additional environment variables
These environment variables may also be used (with any non-empty value):
SKIP_INSTALL: skip the installation ofkindandkubectlbinaries;SKIP_CLEAN_AFTER: skip the deletion of resources (Kindcluster or Kubernetes namespace) and of the temporary directory.e2e;CLEAN_BEFORE: clean before running the tests, e.g. ifSKIP_CLEAN_AFTERwas used on the previous run.