ui.topics.form.topicForm.ftl Maven / Gradle / Ivy
<#-- @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}
#if>
<#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>
#if>
<#include "topicResourceRequirements.ftl">
<#import "topicFormConfigComponents.ftl" as comp>
<#assign statusId = "applyResourceRequirementsStatus">
<#include "../../common/serverOpStatus.ftl">
<#assign statusId = "">
<#import "topicFormConfigComponents.ftl" as components>
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>
<#list topic.perTagProperties as tag, properties>
<#assign tagsOverrides = tagsOverrides + {tag: {"properties": properties}}>
#list>
<#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}}>
#if>
#list>
<#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}}>
#if>
#list>
Per cluster/tag overrides
<#assign topicGlobalProperties = topic.properties>
<#list tagsOverrides as tag, tagOverrides>
<@components.clusterOverride
clusterIdentifier = ""
clusterTag = tag
overrides = tagOverrides
topicGlobalProperties = topic.properties/>
#list>
<#list clustersOverrides as clusterIdentifier, clusterOverrides>
<@components.clusterOverride
clusterIdentifier = clusterIdentifier
clusterTag = ""
overrides = clusterOverrides
topicGlobalProperties = topic.properties/>
#list>
Freeze properties
<#assign freezeDirectives = topic.freezeDirectives>
<#include "topicFreezeProperties.ftl">
<#assign statusId = "dryRunInspect">
<#include "../../common/serverOpStatus.ftl">
<#assign statusId = "">
<#include "../../common/updateForm.ftl">