Skip to content

Commit

Permalink
remove some env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Mar 22, 2024
1 parent 6faa6b4 commit 4e72b14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
11 changes: 1 addition & 10 deletions kfk/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4e72b14

Please sign in to comment.