mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
PostgreSQL: Fix missing CA field from configuration (#59280)
* PostgreSQL: Fix missing CA field from configuration
This commit is contained in:
parent
314c22bc5b
commit
be73418d00
@ -153,10 +153,16 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
|
||||
) : null}
|
||||
</FieldSet>
|
||||
|
||||
{options.jsonData.sslmode !== 'disable' ? (
|
||||
{jsonData.sslmode !== PostgresTLSModes.disable ? (
|
||||
<FieldSet label="TLS/SSL Auth Details">
|
||||
{options.jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
|
||||
<TLSSecretsConfig editorProps={props} labelWidth={labelWidthSSLDetails}></TLSSecretsConfig>
|
||||
{jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
|
||||
<TLSSecretsConfig
|
||||
showCACert={
|
||||
jsonData.sslmode === PostgresTLSModes.verifyCA || jsonData.sslmode === PostgresTLSModes.verifyFull
|
||||
}
|
||||
editorProps={props}
|
||||
labelWidth={labelWidthSSLDetails}
|
||||
></TLSSecretsConfig>
|
||||
) : (
|
||||
<>
|
||||
<InlineField
|
||||
|
Loading…
Reference in New Issue
Block a user