This script helps cluster users to auto-update kyma token to their configuration/cache.
Only works with gitlab authentication using username/password. TODO: Login with email/password of internal dex.
This script uses kubectl command to add kyma cluster kubeconfig to your kubectl configuration file
If no context is specified, use kubectl config current-context.
Note: This script puts itself in kubectl, if you move it after configuration, run it with -k to save in kubectl config the new location
Put this script in the bin path you prefer: /usr/local/bin
Install the requirements with (pip3): pip3 install -r requirements.txt
kyma-dex-auth-provider -c context -u gitlab_username
- Will ask for password
- Adds context to kubectl if not exists
- If you don't have access to kyma cluster brings an error
- Password is saved to your keyring
Packages with apt/yum: python3 python3-pip python3-openssl python3-ldap Requirements file requirements.txt
Config file on: ~/.config/kyma-dex-auth-provider/config
kyma-dex-auth-provider -k
kyma-dex-auth-provider -p
kyma-dex-auth-provider -u newuser -p --save
kyma-dex-auth-provider --force-renew