Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarp20 committed Sep 27, 2024
1 parent bcb0cc0 commit 4a5e4b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
<input class="form-check-input" type="checkbox" id="enable-sdc" value="">
<label for="enable-sdc" class="form-check-label ms-2 text-dark" data-bs-toggle="tooltip" data-bs-placement="right" title="Install SDC">Install SDC</label>
</div>
<div class="row child-level-one" id="enablesdc-note-wrapper-helm">
<div class="row child-level-one" id="enablesdc-note-wrapper-helm">
<div class="mt-3 py-2 note">
<i class="icon dds__icon dds__icon--alert-info-cir"></i>
<span class="h6"> SDC is required for using block storage. Click on the <a href="https://dell.github.io/csm-docs/docs/deployment/helm/drivers/installation/powerflex/#install-powerflex-storage-data-client" target="_blank">documentation link</a> for more details. </span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function setValues(csmMapValues, CONSTANTS_PARAM) {
DriverValues.vSphereVCenterHost = $("#vSphere-vCenter-host").val();
DriverValues.vSphereVCenterCredSecret = $("#vSphere-vCenter-cred-secret").val();
DriverValues.renameSDC = $("#rename-sdc").prop('checked') ? true : false;
DriverValues.sdcEnabled = $("#enable-sdc").prop('checked') ? true : false;
DriverValues.sdcEnabled = $("#enable-sdc").prop('checked') ? true : false;
DriverValues.sdcPrefix = $("#sdc-prefix").val();
DriverValues.approveSDC = $("#approve-sdc").prop('checked') ? true : false;
DriverValues.enableQuota = $("#enable-quota").prop('checked') ? true : false;
Expand Down Expand Up @@ -187,7 +187,7 @@ function createYamlString(yamlTpl, yamlTplValues, driverParam, CONSTANTS_PARAM)
yamlTpl = yamlTpl.replaceAll("$NODE_TOLERATIONS", yamlTplValues.nodeTolerations);
yamlTpl = yamlTpl.replaceAll("$TARGET_ARRAY_ID", yamlTplValues.targetArrayID);
yamlTpl = yamlTpl.replaceAll("$TARGET_UNISPHERE", yamlTplValues.targetUnisphere);
yamlTpl = yamlTpl.replaceAll("$SDC_ENABLED", yamlTplValues.sdcEnabled);
yamlTpl = yamlTpl.replaceAll("$SDC_ENABLED", yamlTplValues.sdcEnabled);
yamlTpl = yamlTpl.replaceAll("$RENAME_SDC_ENABLED", yamlTplValues.renameSDC);
yamlTpl = yamlTpl.replaceAll("$SDC_PREFIX", yamlTplValues.sdcPrefix);
yamlTpl = yamlTpl.replaceAll("$APPROVE_SDC_ENABLED", yamlTplValues.approveSDC);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe("GIVEN setValues function", () => {
observabilityOperatorTopology: false,
topologyEnabled: false,
transportProtocol: "",
sdcEnabled: false,
sdcEnabled: false,
renameSDC: false,
sdcPrefix: "",
approveSDC: false,
Expand Down Expand Up @@ -667,7 +667,7 @@ describe("GIVEN createYamlString function", () => {
enabled: $CERT_MANAGER_ENABLED
`;

const testObject_sdc = {
const testObjectSdc = {
csmVersion: "1.12.0",
driverVersion: "v2.12.0",
imageRepository: "dellemc",
Expand Down Expand Up @@ -707,7 +707,7 @@ describe("GIVEN createYamlString function", () => {
vSphereVCenterHost: "00.000.000.00",
vSphereVCenterCredSecret: "vcenter-creds",
migration: false,
sdcEnabled: true,
sdcEnabled: true,
renameSDC: false,
sdcPrefix: "sdc-test",
approveSDC: false
Expand Down Expand Up @@ -986,7 +986,7 @@ describe("GIVEN createYamlString function", () => {
enabled: false
`;

const received = createYamlString(testYAML, testObject_sdc, "powerflex", CONSTANTS);
const received = createYamlString(testYAML, testObjectSdc, "powerflex", CONSTANTS);
expect(received).toEqual(expected);
});

Expand Down Expand Up @@ -1305,7 +1305,7 @@ describe("GIVEN createYamlString function", () => {
vSphereVCenterHost: "00.000.000.00",
vSphereVCenterCredSecret: "vcenter-creds",
migration: false,
sdcEnabled: false,
sdcEnabled: false,
renameSDC: false,
sdcPrefix: "sdc-test",
approveSDC: false
Expand Down Expand Up @@ -2697,4 +2697,4 @@ describe("GIVEN createYamlString function", () => {

expect(received).toEqual(expected);
});
});
});

0 comments on commit 4a5e4b0

Please sign in to comment.