Describe your test Here
Currently this test accepts a kubeconfig file KUBECONFIG
and a helm chart HELM_CHART
, and runs helm install and helm uninstall against the cluster referenced in the kubeconfig file.
For more information see the ISV-CI Test Toolkit
A kubernetes cluster is required to run the test. Credentials to connect to the cluster are contained in a kubeconfig file (usually at ~/.kube/config
). Specify the path to the kubeconfig file you want to use in the KUBECONFIG
environment variable. The cluster referenced by the current context will be used to run the test. The command kubectl --kubeconfig=$KUBECONFIG config current-context
will show the cluster currently targeted.
The targeted cluster should be clean. This test will install helm, install your chart, delete your chart and then delete helm.
A helm chart directory should exist for the helm chart you wish to test. Specify it in the environment variable HELM_CHART
If your helm chart directory is /my/helm/chart
$ export HELM_CHART=/my/helm/chart
This readme is in the generated project. Once you cd
into this directory
$ make run
Your helm chart should get installed and then uninstalled on the targeted cluster.
Now that you've run the test once, you probably want to modify it to do something beyond just installing your chart.
The file run.sh
is the test script.
You can modify this test script and then re-run make run
to exercise the new test. An example test is documented here.