Skip to content

Commit

Permalink
kf1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
streamnsight committed Apr 4, 2023
1 parent 921bd02 commit d968dfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions cli/src/okf.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,16 @@ def validate_kubectl(self):
return False

def validate_kustomize(self):
major_min = self.versions.get('KUSTOMIZE_MIN_VERSION_MAJOR')
minor_min = self.versions.get('KUSTOMIZE_MIN_VERSION_MINOR')
try:
output = subprocess.check_output('kustomize version --short', shell=True)
match = re.search(r'(\d+\.\d+\.\d+)', output.decode('utf-8'))
if match:
version = match.group(0)
major, minor, _ = version.split('.')
if not (int(major) >= 3 and int(minor) >= 6):
log.error(f'kustomize v{version} is too old. Setup requires v3.6+')
if not (int(major) >= int(major_min) and int(minor) >= int(minor_min)):
log.error(f'kustomize v{version} is too old. Setup requires v{major_min}.{minor_min}+')
return False
else:
log.info(f'kustomize v{version} found.')
Expand Down Expand Up @@ -226,6 +228,7 @@ def validate_k8s_version(self):
else:
log.error('Kubernetes server version does not match requirements.')
return False
log.error('Enable to lookup Kubernetes server version. Check that kubectl is configured to connect to an existing cluster.')
return False


Expand Down
5 changes: 3 additions & 2 deletions kubeflow_version.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
KUBEFLOW_RELEASE_VERSION="v1.6.0"
KUBEFLOW_RELEASE_VERSION="v1.6.1"
KUBEFLOW_MIN_K8S_VERSION_MAJOR="1"
KUBEFLOW_MIN_K8S_VERSION_MINOR="22"
KUBEFLOW_MAX_K8S_VERSION_MAJOR="1"
KUBEFLOW_MAX_K8S_VERSION_MINOR="24"
# some APIs deprecated at 1.25+ so setting higher version to v1.24
KUSTOMIZE_MIN_VERSION_MAJOR="3"
KUSTOMIZE_MIN_VERSION_MINOR="7"

0 comments on commit d968dfb

Please sign in to comment.