mirror of https://github.com/rancher/ui.git
Merge pull request #4535 from westlywright/bugs.gke
fix missing node version on a new node pool for gke
This commit is contained in:
commit
827e181f99
|
|
@ -68,6 +68,10 @@ export default Component.extend({
|
|||
set(this, 'scopeConfig', scopeConfig);
|
||||
}
|
||||
}
|
||||
|
||||
if (isEmpty(this?.model?.version) && !isEmpty(this?.cluster?.gkeConfig?.kubernetesVersion)) {
|
||||
set(this, 'model.version', this?.cluster?.gkeConfig?.kubernetesVersion);
|
||||
}
|
||||
} else {
|
||||
setProperties(this, {
|
||||
oauthScopesSelection: this.google.oauthScopeOptions.DEFAULT,
|
||||
|
|
@ -157,6 +161,10 @@ export default Component.extend({
|
|||
const clusterVersion = get(this, 'controlPlaneVersion');
|
||||
const nodeVersion = get(this, 'model.version');
|
||||
|
||||
if (isEmpty(clusterVersion) || isEmpty(nodeVersion)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const initalClusterMinorVersion = parseInt(minor(coerce(clusterVersion)), 10);
|
||||
const initalNodeMinorVersion = parseInt(minor(coerce(nodeVersion)), 10);
|
||||
const diff = initalClusterMinorVersion - initalNodeMinorVersion;
|
||||
|
|
|
|||
Loading…
Reference in New Issue