File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,7 @@ function Cluster({
827
827
config = { { } }
828
828
reload = { reload }
829
829
prometheus_url = { prometheus_url }
830
- prometheusAuth = { state . prometheus }
830
+ prometheusAuth = { prometheusAuth }
831
831
defaultClusterComponent = { state . defaultClusterComponent }
832
832
isTlsConnection = { isTlsConnection }
833
833
isClusterDetails = { state . isClusterDetails }
Original file line number Diff line number Diff line change @@ -428,10 +428,11 @@ export default function ClusterForm({
428
428
} ,
429
429
prometheus_url : prometheusToggleEnabled ? state . endpoint . value : '' ,
430
430
prometheusAuth : {
431
- userName : prometheusToggleEnabled ? state . userName . value : '' ,
432
- password : prometheusToggleEnabled ? state . password . value : '' ,
431
+ userName : prometheusToggleEnabled && state . authType . value === AuthenticationType . BASIC ? state . userName . value : '' ,
432
+ password : prometheusToggleEnabled && state . authType . value === AuthenticationType . BASIC ? state . password . value : '' ,
433
433
tlsClientKey : prometheusToggleEnabled ? state . prometheusTlsClientKey . value : '' ,
434
434
tlsClientCert : prometheusToggleEnabled ? state . prometheusTlsClientCert . value : '' ,
435
+ isAnonymous : state . authType . value === AuthenticationType . ANONYMOUS ,
435
436
} ,
436
437
}
437
438
}
You can’t perform that action at this time.
0 commit comments