The Kubeconfig plugin is used to input a kubernetes or openshift kubeconfig file and parse and extract components of the kubeconfig file such as cluster name, user, server url, client certificate, client token etc.
The plugin expects a kubeconfig inputed as a string, as defined in the InputParams
dataclass in kubeconfig_plugin.py file.
You define your test parameters in a YAML file to be passed to the plugin command as shown in kubeconfig_example.yaml
In order to run the kubeconfig plugin run the following steps:
- Clone this repository
- Create the container with
docker build -t arca-kubeconfig -f Dockerfile
- Run
cat kubeconfig_example.yaml | docker run -i arca-kubeconfig -f -
to run the plugin
- Clone this repository
- Create a
venv
in the current directory withpython3 -m venv $(pwd)/venv
- Activate the
venv
by runningsource venv/bin/activate
- Run
pip install -r requirements.txt
- Run
./kubeconfig_plugin.py -f kubeconfig_example.yaml
to run the plugin
You can change this plugin's image version tag in
.github/workflows/carpenter.yaml
by editing the
IMAGE_TAG
variable, and pushing that change to the
branch designated in that workflow.