Skip to content

Commit

Permalink
bump version && update to strimzi 0.20.0 && issue-41 bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Oct 23, 2020
1 parent 1d14a74 commit e79227b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3-alpine
USER root
RUN adduser -D kfkuser
RUN pip install strimzi-kafka-cli==0.1.0a30
RUN pip install strimzi-kafka-cli==0.1.0a31
USER kfkuser
RUN kfk version
2 changes: 1 addition & 1 deletion kfk/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from pathlib import Path

STRIMZI_VERSION = "0.19.0"
STRIMZI_VERSION = "0.20.0"
KUBECTL_VERSION = "v1.19.0"

BASE_FOLDER = ".strimzi-kafka-cli"
Expand Down
4 changes: 3 additions & 1 deletion kfk/kubectl_command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ class Kubectl:
def __init__(self):
self.cmd_str = KUBECTL_PATH

def version(self):
def version(self, *vals):
self.cmd_str = self.cmd_str + SPACE + "version"
for val in vals:
self.cmd_str = self.cmd_str + SPACE + val
return self

def get(self):
Expand Down
2 changes: 1 addition & 1 deletion kfk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def download_kubectl_if_not_exists():

def update_kubectl_if_new_version_exists():
if os.path.exists(KUBECTL_PATH) and KUBECTL_VERSION not in subprocess.check_output(
Kubectl().version().build() + "; exit 0", shell=True, stderr=subprocess.STDOUT).decode("utf-8"):
Kubectl().version("--client=true").build() + "; exit 0", shell=True, stderr=subprocess.STDOUT).decode("utf-8"):
os.rename(KUBECTL_PATH, KUBECTL_PATH + "_old")
__download_kubectl()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='strimzi-kafka-cli',
version='0.1.0-alpha30',
version='0.1.0-alpha31',
description="Command Line Interface for Strimzi Kafka Operator",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit e79227b

Please sign in to comment.