|
@@ -40,10 +40,10 @@ class LookupModule(LookupBase):
|
|
|
# pylint: disable=line-too-long
|
|
|
raise AnsibleError("Either OpenShift needs to be installed or openshift_release needs to be specified")
|
|
|
if deployment_type == 'origin':
|
|
|
- if short_version not in ['1.1', '1.2', '1.3', '1.4', '1.5', '3.6', 'latest']:
|
|
|
+ if short_version not in ['1.1', '1.2', '1.3', '1.4', '1.5', '3.6', '3.7', 'latest']:
|
|
|
raise AnsibleError("Unknown short_version %s" % short_version)
|
|
|
elif deployment_type == 'openshift-enterprise':
|
|
|
- if short_version not in ['3.1', '3.2', '3.3', '3.4', '3.5', '3.6', 'latest']:
|
|
|
+ if short_version not in ['3.1', '3.2', '3.3', '3.4', '3.5', '3.6', '3.7', 'latest']:
|
|
|
raise AnsibleError("Unknown short_version %s" % short_version)
|
|
|
else:
|
|
|
raise AnsibleError("Unknown deployment_type %s" % deployment_type)
|
|
@@ -53,7 +53,7 @@ class LookupModule(LookupBase):
|
|
|
short_version = re.sub('^1.', '3.', short_version)
|
|
|
|
|
|
if short_version == 'latest':
|
|
|
- short_version = '3.6'
|
|
|
+ short_version = '3.7'
|
|
|
|
|
|
# Predicates ordered according to OpenShift Origin source:
|
|
|
# origin/vendor/k8s.io/kubernetes/plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go
|
|
@@ -101,7 +101,7 @@ class LookupModule(LookupBase):
|
|
|
{'name': 'MatchInterPodAffinity'}
|
|
|
])
|
|
|
|
|
|
- if short_version in ['3.5', '3.6']:
|
|
|
+ if short_version in ['3.5', '3.6', '3.7']:
|
|
|
predicates.extend([
|
|
|
{'name': 'NoVolumeZoneConflict'},
|
|
|
{'name': 'MaxEBSVolumeCount'},
|