Update scripts that build k8s upgrade patches - part 2
Updating scripts used to build k8s upgrade patches to handle current kubernetes version (1.18.1). My previous commit missed changes to the preapply/preremove scripts. Change-Id: I70b2796f625ac79df1de08e4e802d70e3e33d36a Story: 2006781 Task: 38479 Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
This commit is contained in:
parent
df3aea5756
commit
6d1cd07e39
@ -41,8 +41,8 @@ def main():
|
||||
if len(running_versions) == 0:
|
||||
fatal_error("Could not determine kube-apiserver version")
|
||||
|
||||
# Running version must be at least v1.16.1
|
||||
test_version = 'v1.16.1'
|
||||
# Running version must be at least v1.18.1
|
||||
test_version = 'v1.18.1'
|
||||
for running_version in running_versions:
|
||||
if LooseVersion(running_version) < LooseVersion(test_version):
|
||||
fatal_error("A kube-apiserver is running %s, but must be"
|
||||
|
@ -41,8 +41,8 @@ def main():
|
||||
if len(running_versions) == 0:
|
||||
fatal_error("Could not determine kube-apiserver version")
|
||||
|
||||
# Running version must be no higher than v1.16.1
|
||||
test_version = 'v1.16.1'
|
||||
# Running version must be no higher than v1.18.1
|
||||
test_version = 'v1.18.1'
|
||||
for running_version in running_versions:
|
||||
if LooseVersion(running_version) > LooseVersion(test_version):
|
||||
fatal_error("A kube-apiserver is running %s, but must be no higher"
|
||||
|
@ -41,8 +41,8 @@ def main():
|
||||
if len(running_versions) == 0:
|
||||
fatal_error("Could not determine kube-apiserver version")
|
||||
|
||||
# Running version must be at least v1.16.2
|
||||
test_version = 'v1.16.2'
|
||||
# Running version must be at least v1.18.1-upgrade
|
||||
test_version = 'v1.18.1-upgrade'
|
||||
for running_version in running_versions:
|
||||
if LooseVersion(running_version) < LooseVersion(test_version):
|
||||
fatal_error("A kube-apiserver is running %s, but must be"
|
||||
|
@ -41,8 +41,8 @@ def main():
|
||||
if len(running_versions) == 0:
|
||||
fatal_error("Could not determine kube-apiserver version")
|
||||
|
||||
# Running version must be no higher than v1.16.2
|
||||
test_version = 'v1.16.2'
|
||||
# Running version must be no higher than v1.18.1-upgrade
|
||||
test_version = 'v1.18.1-upgrade'
|
||||
for running_version in running_versions:
|
||||
if LooseVersion(running_version) > LooseVersion(test_version):
|
||||
fatal_error("A kube-apiserver is running %s, but must be"
|
||||
|
Loading…
Reference in New Issue
Block a user