You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Native
Clone this repository
Create a venv in the current directory with python3 -m venv $(pwd)/venv
Activate the venv by running source venv/bin/activate
Run pip install poetry
Run poetry install
Run ./kubeconfig_plugin.py -f kubeconfig_example.yaml to run the plugin
Image Building
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.
kubeconfig plugin (kubeconfig)
Inputs a kubeconfig, parses it and extracts the kubernetes cluster details