This PR enhances the safety of running make test-e2e by implementing a confirmation prompt.
Why is this important?
The make test-e2e command executes tests on the current Kubernetes cluster. This can potentially disrupt a production environment, as the tests include cleanup operations such as deleting cert-manager after completion.
What changes were made?
Added a confirmation prompt before test execution:
Displays the current Kubernetes cluster context
Asks for user confirmation to proceed
Implemented a bypass option for CI/CD pipelines:
Set environment variable KUBEFLOW_TEST_PROMPT=FALSE to skip the prompt
The variable is case-insensitive (e.g., "FALSE", "false", or "False" are all valid)
User confirmation:
Accepts "yes" or "y" (case-insensitive) to proceed with the tests
Needs approval from an approver in each of these files:
- ~~[OWNERS](https://github.com/kubeflow/notebooks/blob/notebooks-v2/OWNERS)~~ [thesuperzapper]
Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
This PR enhances the safety of running
make test-e2e
by implementing a confirmation prompt.Why is this important?
The
make test-e2e
command executes tests on the current Kubernetes cluster. This can potentially disrupt a production environment, as the tests include cleanup operations such as deleting cert-manager after completion.What changes were made?
Added a confirmation prompt before test execution:
Implemented a bypass option for CI/CD pipelines:
KUBEFLOW_TEST_PROMPT=FALSE
to skip the promptUser confirmation: