mirror of https://github.com/rancher/ui.git
Merge pull request #3451 from codyrancher/versioning-fix
Ensure the current Kubernetes version can display
This commit is contained in:
commit
6a90367f70
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue