From 4e72b142b2f394a5b3e946393c05f63f2c442e6a Mon Sep 17 00:00:00 2001 From: mabulgu Date: Fri, 22 Mar 2024 14:30:05 +0300 Subject: [PATCH] remove some env vars --- README.md | 4 ---- kfk/config.py | 11 +---------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index 1431319..8003241 100644 --- a/README.md +++ b/README.md @@ -88,10 +88,6 @@ If you want to change the `kubectl` and `Strimzi resources` folder, you can simp **STRIMZI_KAFKA_CLI_BASE_PATH:** Set this if you want to have a custom Strimzi Kafka CLI folder. It is `~/.strimzi-kafka-cli` as default. -**STRIMZI_KAFKA_CLI_STRIMZI_VERSION:** Set this if you want to use a different Strimzi version. - **STRIMZI_KAFKA_CLI_STRIMZI_PATH:** Set this if you want to use a custom Strimzi/AMQ Streams. -**STRIMZI_KAFKA_CLI_KUBECTL_VERSION** Set this if you want to use a different kubectl version. - **STRIMZI_KAFKA_CLI_KUBECTL_PATH:** Set this if you want to use a custom kubectl. diff --git a/kfk/config.py b/kfk/config.py index ded6b41..8a13ab7 100644 --- a/kfk/config.py +++ b/kfk/config.py @@ -30,11 +30,6 @@ def _is_64_bit(): if os.environ.get("STRIMZI_KAFKA_CLI_BASE_PATH") is None else os.environ.get("STRIMZI_KAFKA_CLI_BASE_PATH") ) -STRIMZI_VERSION = ( - STRIMZI_VERSION - if os.environ.get("STRIMZI_KAFKA_CLI_STRIMZI_VERSION") is None - else os.environ.get("STRIMZI_KAFKA_CLI_STRIMZI_VERSION") -) STRIMZI_PATH = ( (BASE_PATH + f"/strimzi-{STRIMZI_VERSION}") if os.environ.get("STRIMZI_KAFKA_CLI_STRIMZI_PATH") is None @@ -44,11 +39,7 @@ def _is_64_bit(): f"https://github.com/strimzi/strimzi-kafka-operator/releases/" f"download/{STRIMZI_VERSION}/strimzi-{STRIMZI_VERSION}.tar.gz" ) -KUBECTL_VERSION = ( - KUBECTL_VERSION - if os.environ.get("STRIMZI_KAFKA_CLI_KUBECTL_VERSION") is None - else os.environ.get("STRIMZI_KAFKA_CLI_KUBECTL_VERSION") -) + KUBECTL = "kubectl" if platform.system().lower() != "windows" else "kubectl.exe" KUBECTL_PATH = ( (BASE_PATH + "/" + KUBECTL)