ui.common.existingConfig.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="config" type="java.util.Map" -->
<#-- @ftlvariable name="configEntryStatuses" type="java.util.Map" -->
<#-- @ftlvariable name="expectedConfig" type="java.util.Map" -->
<#-- @ftlvariable name="showExpected" type="java.lang.Boolean" -->
<#-- @ftlvariable name="topicConfigDoc" type="java.util.Map" -->
<#-- @ftlvariable name="brokerConfigDoc" type="java.util.Map" -->
<#import "infoIcon.ftl" as confInfo>
<#assign showExpected = showExpected!false >
Key
Value
Source
Read-only
Sensitive
<#if showExpected>
Expected by registry
Expected by cluster
#if>
<#list config as key, configVal>
<#assign invalid = (!(configEntryStatuses[key].valid))!false>
${key}
<#if (topicConfigDoc[key])??>
<@confInfo.icon tooltip=topicConfigDoc[key]?replace('"', "'")/>
<#elseif (brokerConfigDoc[key])??>
<@confInfo.icon tooltip=brokerConfigDoc[key]?replace('"', "'")/>
#if>
<#if configVal.value??>
${configVal.value}
<#else>
null
#if>
${configVal.source.name()?replace('_', ' ')?replace('CONFIG', '')}
${configVal.readOnly?then('yes', 'no')}
${configVal.sensitive?then('yes', 'no')}
<#if showExpected>
<#if (configEntryStatuses[key]??)>
<#assign valueStatus = configEntryStatuses[key]>
<#assign value = valueStatus.expectingClusterDefault?then("---", valueStatus.expectedValue!'')>
<#if value == '' && !(valueStatus.expectedValue)??>
null
<#else>
${value}
#if>
<#assign value = valueStatus.expectingClusterDefault?then(valueStatus.expectedValue!'', "---")>
<#if value == '' && !(valueStatus.expectedValue)??>
null
<#else>
${value}
#if>
<#else>
---
---
#if>
#if>
#list>
<#if config?size == 0>
(no config values)
#if>