Merge pull request #3451 from codyrancher/versioning-fix

Ensure the current Kubernetes version can display
This commit is contained in:
Vincent Fiduccia 2019-10-15 18:03:53 -07:00 committed by GitHub
commit 6a90367f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -648,7 +648,18 @@ export default InputTextFile.extend(ManageLabels, ClusterDriver, {
});
}
return [...out, ...patchedOut];
const partialResult = [
...out,
...patchedOut
];
// We want to include the current version if it's not
// present in the current choices to make it displayable.
const currentVersion = get(this, 'config.kubernetesVersion');
return currentVersion && partialResult.indexOf(currentVersion) === -1
? [...partialResult, currentVersion]
: partialResult;
}),
isNodeNameValid: computed('nodeName', function() {