Go to file
Markus Pesch bddcf8cd07
fix: upgrade setuptools
2023-07-20 08:52:25 +02:00
.vscode Initial Commit 2023-02-23 14:26:46 +01:00
.editorconfig Initial Commit 2023-02-23 14:26:46 +01:00
LICENSE fix: add Apache v2.0 License 2023-03-25 14:22:34 +01:00
README.md Initial Commit 2023-02-23 14:26:46 +01:00
main.py fix: add setup.py 2023-03-25 14:23:04 +01:00
requirements.txt fix: upgrade setuptools 2023-07-20 08:52:25 +02:00
setup.py fix: add setup.py 2023-03-25 14:23:04 +01:00


kcf - kubectl fetcher

A small python script to merge a remote kubectl config with a local stored configuration file. It supports cli flags. The following

$ ./main.py -h
usage: main.py [-h] --host HOSTNAME [--port PORT] [--username USERNAME] [--password PASSWORD] [--identity-file IDENTITY_FILE] [--identity-passphrase IDENTITY_PASSPHRASE]
               [--remote-config REMOTE_CONFIG] [--remove-cluster-name REMOTE_CLUSTER_NAME] [--remove-user-name REMOTE_USER_NAME] [--local-config LOCAL_CONFIG]
               [--local-cluster-name LOCAL_CLUSTER_NAME] [--local-user-name LOCAL_USER_NAME]

  -h, --help            show this help message and exit
  --host HOSTNAME       SSH-Server
  --port PORT           SSH-Port
  --username USERNAME   Remote Unix User
  --password PASSWORD   Remote password
  --identity-file IDENTITY_FILE
                        Path to private SSH-Key
  --identity-passphrase IDENTITY_PASSPHRASE
                        Passphrase of the SSH-Key
  --remote-config REMOTE_CONFIG
                        Remote kubectl config
  --remove-cluster-name REMOTE_CLUSTER_NAME
                        Name of the cluster
  --remove-user-name REMOTE_USER_NAME
                        Name of the user
  --local-config LOCAL_CONFIG
                        Local kubectl config
  --local-cluster-name LOCAL_CLUSTER_NAME
                        Name of the cluster
  --local-user-name LOCAL_USER_NAME
                        Name of the user