Skip to content

Commit

Permalink
Updated UI for module support in powerscale (#765)
Browse files Browse the repository at this point in the history
* Updated UI for module support in powerscale

* fix authorization issue
  • Loading branch information
chimanjain authored Aug 22, 2023
1 parent 57b0b24 commit 8f3b3b3
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function setValues(csmMapValues, CONSTANTS_PARAM) {
DriverValues.operatorResiliency = $("#operator-resiliency").prop('checked') ? true : false;
DriverValues.storageCapacity = $("#storage-capacity").prop('checked') ? true : false;
DriverValues.authorizationSkipCertValidation = $("#authorization-skip-cert-validation").prop('checked') ? true : false;
DriverValues.authorizationProxyHost = document.getElementById("authorization-proxy-host").value || '""';
DriverValues.authorizationProxyHost = document.getElementById("authorization-proxy-host").value;
DriverValues.certManagerEnabled = $("#certmanager").prop('checked') ? true : false;
DriverValues.topologyEnabled = $("#topology").prop('checked') ? true : false;
observabilityEnabled = DriverValues.observability;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe("GIVEN setValues function", () => {
resiliency: false,
storageCapacity: false,
authorizationSkipCertValidation: false,
authorizationProxyHost: '""',
authorizationProxyHost: '',
certManagerEnabled: false,
storageArrayId: undefined,
storageArrayEndpointUrl: '""',
Expand Down Expand Up @@ -258,7 +258,7 @@ describe("GIVEN setValues function", () => {
resiliency: false,
storageCapacity: false,
authorizationSkipCertValidation: false,
authorizationProxyHost: '""',
authorizationProxyHost: '',
certManagerEnabled: false,
storageArrayId: undefined,
storageArrayEndpointUrl: '""',
Expand Down Expand Up @@ -642,7 +642,7 @@ describe("GIVEN createYamlString function", () => {
replicationImage: "dellemc/dell-csi-replicator:v1.4.0",
authorizationImage: "dellemc/csm-authorization-sidecar:v1.6.0",
certManagerEnabled: false,
authorizationProxyHost: '""',
authorizationProxyHost: '',
monitor: false,
certSecretCount: 0,
storageArrayId: "",
Expand Down Expand Up @@ -762,7 +762,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
skipCertificateValidation: true
vSphere:
enabled: false
Expand Down Expand Up @@ -827,7 +827,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
## CSI Unity
########################
Expand Down Expand Up @@ -1027,7 +1027,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
skipCertificateValidation: true
vSphere:
enabled: false
Expand Down Expand Up @@ -1092,7 +1092,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
## CSI Unity
########################
Expand Down Expand Up @@ -1293,7 +1293,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
skipCertificateValidation: true
vSphere:
enabled: false
Expand Down Expand Up @@ -1358,7 +1358,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
## CSI Unity
########################
Expand Down Expand Up @@ -1561,7 +1561,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
skipCertificateValidation: true
vSphere:
enabled: false
Expand Down Expand Up @@ -1626,7 +1626,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
## CSI Unity
########################
Expand Down Expand Up @@ -1828,7 +1828,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
skipCertificateValidation: true
vSphere:
enabled: false
Expand Down Expand Up @@ -1893,7 +1893,7 @@ describe("GIVEN createYamlString function", () => {
authorization:
enabled: false
sidecarProxyImage: dellemc/csm-authorization-sidecar:v1.6.0
proxyHost: ""
proxyHost:
## CSI Unity
########################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ function displayModules(installationType, driverName, CONSTANTS_PARAM) {
$(".storage-capacity").show();
document.getElementById("driver-namespace").value = CONSTANTS_PARAM.POWERSCALE_NAMESPACE;
if (installationType === 'operator'){
$(".observability-operator").show();
$(".observability").hide();
$(".replication-operator").show();
$(".resiliency").hide();
$(".resiliency-operator").show();
$(".image-repository").hide();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ spec:
# Set the value to "self" in case of stretched/single cluster configuration
# Allowed values: string
- name: "TARGET_CLUSTERS_IDS"
value: "target-cluster-1"
value: "$TARGET_CLUSTER_ID"
# Replication log level
# Allowed values: "error", "warn"/"warning", "info", "debug"
# Default value: "debug"
Expand Down Expand Up @@ -325,12 +325,12 @@ spec:
# observability: allows to configure observability
- name: observability
# enabled: Enable/Disable observability
enabled: $OBSERVABILITY_ENABLED
enabled: $OBSERVABILITY_OPERATOR_ENABLED
configVersion: v1.5.0
components:
- name: topology
# enabled: Enable/Disable topology
enabled: $OBSERVABILITY_ENABLED
enabled: $OBSERVABILITY_OPERATOR_TOPOLOGY
# image: Defines karavi-topology image. This shouldn't be changed
# Allowed values: string
image: dellemc/csm-topology:v1.5.0
Expand All @@ -343,7 +343,7 @@ spec:

- name: otel-collector
# enabled: Enable/Disable OpenTelemetry Collector
enabled: $POWERSCALE_OBSERVABILITY_METRICS_ENABLED
enabled: $OBSERVABILITY_OPERATOR_OTEL
# image: Defines otel-collector image. This shouldn't be changed
# Allowed values: string
image: otel/opentelemetry-collector:0.42.0
Expand All @@ -360,11 +360,11 @@ spec:
# true: enable deployment of cert-manager
# false: disable deployment of cert-manager only if it's already deployed
# Default value: false
enabled: $OBSERVABILITY_ENABLED
enabled: $OBSERVABILITY_OPERATOR_ENABLED

- name: metrics-powerscale
# enabled: Enable/Disable PowerScale metrics
enabled: $POWERSCALE_OBSERVABILITY_METRICS_ENABLED
enabled: $OBSERVABILITY_OPERATOR_METRICS
# image: Defines PowerScale metrics image. This shouldn't be changed
# Allowed values: string
image: dellemc/csm-metrics-powerscale:v1.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ spec:
# Set the value to "self" in case of stretched/single cluster configuration
# Allowed values: string
- name: "TARGET_CLUSTERS_IDS"
value: "target-cluster-1"
value: "$TARGET_CLUSTER_ID"
# Replication log level
# Allowed values: "error", "warn"/"warning", "info", "debug"
# Default value: "debug"
Expand Down Expand Up @@ -325,12 +325,12 @@ spec:
# observability: allows to configure observability
- name: observability
# enabled: Enable/Disable observability
enabled: $OBSERVABILITY_ENABLED
enabled: $OBSERVABILITY_OPERATOR_ENABLED
configVersion: v1.5.0
components:
- name: topology
# enabled: Enable/Disable topology
enabled: $OBSERVABILITY_ENABLED
enabled: $OBSERVABILITY_OPERATOR_TOPOLOGY
# image: Defines karavi-topology image. This shouldn't be changed
# Allowed values: string
image: dellemc/csm-topology:v1.5.0
Expand All @@ -343,7 +343,7 @@ spec:

- name: otel-collector
# enabled: Enable/Disable OpenTelemetry Collector
enabled: $POWERSCALE_OBSERVABILITY_METRICS_ENABLED
enabled: $OBSERVABILITY_OPERATOR_OTEL
# image: Defines otel-collector image. This shouldn't be changed
# Allowed values: string
image: otel/opentelemetry-collector:0.42.0
Expand All @@ -360,11 +360,11 @@ spec:
# true: enable deployment of cert-manager
# false: disable deployment of cert-manager only if it's already deployed
# Default value: false
enabled: $OBSERVABILITY_ENABLED
enabled: $OBSERVABILITY_OPERATOR_ENABLED

- name: metrics-powerscale
# enabled: Enable/Disable PowerScale metrics
enabled: $POWERSCALE_OBSERVABILITY_METRICS_ENABLED
enabled: $OBSERVABILITY_OPERATOR_METRICS
# image: Defines PowerScale metrics image. This shouldn't be changed
# Allowed values: string
image: dellemc/csm-metrics-powerscale:v1.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ spec:
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
value: $AUTHORIZATION_PROXY_HOST
value: "$AUTHORIZATION_PROXY_HOST"
# skipCertificateValidation: Enable/Disable certificate validation of the csm-authorization server
- name: "SKIP_CERTIFICATE_VALIDATION"
value: $AUTHORIZATION_SKIP_CERTIFICATE_VALIDATION
value: "$AUTHORIZATION_SKIP_CERTIFICATE_VALIDATION"

# Replication: allows configuring replication module
# Replication CRDs must be installed before installing driver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ spec:
envs:
# proxyHost: hostname of the csm-authorization server
- name: "PROXY_HOST"
value: $AUTHORIZATION_PROXY_HOST
value: "$AUTHORIZATION_PROXY_HOST"
# skipCertificateValidation: Enable/Disable certificate validation of the csm-authorization server
- name: "SKIP_CERTIFICATE_VALIDATION"
value: $AUTHORIZATION_SKIP_CERTIFICATE_VALIDATION
value: "$AUTHORIZATION_SKIP_CERTIFICATE_VALIDATION"

# Replication: allows configuring replication module
# Replication CRDs must be installed before installing driver
Expand Down

0 comments on commit 8f3b3b3

Please sign in to comment.