All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.topics.form.topicForm.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version

<#-- @ftlvariable name="newName" type="java.lang.String" -->
<#-- @ftlvariable name="topicSourceType" type="java.lang.String" -->
<#-- @ftlvariable name="topicExists" type="java.lang.Boolean" -->
<#-- @ftlvariable name="branch" type="java.lang.String" -->

<#-- @ftlvariable name="topic" type="com.infobip.kafkistry.model.TopicDescription" -->
<#-- @ftlvariable name="existingValues" type="com.infobip.kafkistry.service.ExistingValues" -->
<#-- @ftlvariable name="gitStorageEnabled"  type="java.lang.Boolean" -->


<#import "../../common/documentation.ftl" as doc>
<#import "../../common/infoIcon.ftl" as info>





Basic metadata
<#if newName??> <#else> ${topic.name}
<#assign labels = topic.labels> <#include "topicLabelsForm.ftl">
<#assign presence = topic.presence> <#include "../../common/presenceForm.ftl">
<#include "../../common/existingValues.ftl">
Expected resource requirements
<#if topic.resourceRequirements??> <#assign resourceRequirements = topic.resourceRequirements> <#include "topicResourceRequirements.ftl"> <#import "topicFormConfigComponents.ftl" as comp>
<#assign statusId = "applyResourceRequirementsStatus"> <#include "../../common/serverOpStatus.ftl"> <#assign statusId = "">

<#import "topicFormConfigComponents.ftl" as components>
<#assign configEntryTemplate> <@components.configEntry key="%key-PH%" value="%value-PH%" doc="%doc-PH%"/> <#outputformat "plainText"> <#-- want double escaping for jquery manipulation -->
${configEntryTemplate?markup_string?html}
Global configuration
<@components.topicProperties partitions=topic.properties.partitionCount replication=topic.properties.replicationFactor/>
<@components.configEntries config=topic.config/>

<#assign clustersOverrides = {}> <#assign tagsOverrides = {}> <#list topic.perClusterProperties as clusterIdentifier, properties> <#assign clustersOverrides = clustersOverrides + {clusterIdentifier: {"properties": properties}}> <#list topic.perTagProperties as tag, properties> <#assign tagsOverrides = tagsOverrides + {tag: {"properties": properties}}> <#list topic.perClusterConfigOverrides as clusterIdentifier, config> <#if clustersOverrides[clusterIdentifier]??> <#assign clustersOverrides = clustersOverrides + {clusterIdentifier: {"config": config, "properties": clustersOverrides[clusterIdentifier]["properties"]}}> <#else> <#assign clustersOverrides = clustersOverrides + {clusterIdentifier: {"config": config}}> <#list topic.perTagConfigOverrides as tag, config> <#if tagsOverrides[tag]??> <#assign tagsOverrides = tagsOverrides + {tag: {"config": config, "properties": tagsOverrides[tag]["properties"]}}> <#else> <#assign tagsOverrides = tagsOverrides + {tag: {"config": config}}>
Per cluster/tag overrides
<#assign topicGlobalProperties = topic.properties>
<#list tagsOverrides as tag, tagOverrides> <@components.clusterOverride clusterIdentifier = "" clusterTag = tag overrides = tagOverrides topicGlobalProperties = topic.properties/> <#list clustersOverrides as clusterIdentifier, clusterOverrides> <@components.clusterOverride clusterIdentifier = clusterIdentifier clusterTag = "" overrides = clusterOverrides topicGlobalProperties = topic.properties/>

Freeze properties
<#assign freezeDirectives = topic.freezeDirectives> <#include "topicFreezeProperties.ftl">


<#assign statusId = "dryRunInspect"> <#include "../../common/serverOpStatus.ftl"> <#assign statusId = "">

<#include "../../common/updateForm.ftl">




© 2015 - 2024 Weber Informatics LLC | Privacy Policy