-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Wizard: PowerFlex new keys added #809
Changes from 9 commits
9270aff
9427598
c652d46
bbf7436
02593e5
a41b247
c64e44a
550ab47
caa6438
393ac01
4c536c0
6050aec
a4f755a
fcb63fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,9 @@ function validateForm(CONSTANTS_PARAM) { | |
const powermaxSelected = document.getElementById('array').value.trim() === CONSTANTS_PARAM.POWERMAX; | ||
const vSphereEnabled = $("#vSphere").prop('checked') ? true : false; | ||
|
||
const powerflexSelected = document.getElementById('array').value.trim() === CONSTANTS_PARAM.POWERFLEX; | ||
const renameSDCEnabled = $("#rename-sdc").prop('checked') ? true : false; | ||
|
||
if (powermaxSelected) { | ||
if (document.getElementById('installation-type').value === CONSTANTS_PARAM.HELM) { | ||
if (document.getElementById('storage-array-id').value.trim() === "") { | ||
|
@@ -84,6 +87,15 @@ function validateForm(CONSTANTS_PARAM) { | |
} | ||
} | ||
} | ||
if (powerflexSelected) { | ||
if (document.getElementById('installation-type').value === CONSTANTS_PARAM.HELM) { | ||
if (renameSDCEnabled) { | ||
if (document.getElementById('sdc-prefix').value.trim() === "") { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can also add this 4 conditions with and There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hi @samihan-dell , its done in nested way to keep it in sync as like PowerMax has done it previously, also makes it more readable as well as in future if any other key is to be validated, it can be added accordingly. |
||
return false; | ||
} | ||
} | ||
} | ||
} | ||
if ($('#controller-pods-node-selector').prop('checked') || $('#node-pods-node-selector').prop('checked')){ | ||
if (document.getElementById('node-selector-label').value.trim() === "") { | ||
return false; | ||
|
@@ -118,6 +130,7 @@ function setDefaultValues(defaultValuesParam, csmMapValues) { | |
document.getElementById("controller-count").value = String(csmMapValues.get("controllerCount")); | ||
document.getElementById("vol-name-prefix").value = csmMapValues.get("volNamePrefix"); | ||
document.getElementById("snapshot-prefix").value = csmMapValues.get("snapNamePrefix"); | ||
document.getElementById("nfs-acls").value = csmMapValues.get("nfsAcls"); | ||
document.getElementById("cert-secret-count").value = csmMapValues.get("certSecretCount"); | ||
document.getElementById("taint").value = csmMapValues.get("taint"); | ||
document.getElementById("poll-rate").value = csmMapValues.get("pollRate"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line number 243 and 244 are same. Duplicate line can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @niranjan-n1, this is related to a previous PR, #804 for PowerMax replication.