Skip to content

Commit

Permalink
feat(kafka): 支持无认证部署 #1032
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl0819 authored and gaohongsong committed Sep 12, 2023
1 parent 1d64342 commit 31c2031
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dbm-ui/frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Proxy起始端口": "Proxy start port",
"Slave数量至少为1台_且机器数要和Master相等": "The number of hosts for Slave requires at least 1 and also be equal to that of Slave",
"http端口": "Http port",
"kafka版本": "Kafka version",
"kafka版本": "Kafka version",
"rpc端口": "RPC port",
"zookeeper需3台": "Zookeeper requires 3 host hosts",
"业务": "Business",
Expand Down Expand Up @@ -1075,7 +1075,7 @@
"添加从库": "Add Slave",
"清除表数据_truncatetable": "Truncate table",
"清除表数据和结构_droptable": "Drop table",
"特殊符号序": "Special character sequence",
"特殊符号序": "Special character sequence",
"申请MySQL单节点部署": "Apply for MySQL standalone deployment",
"申请MySQL高可用部署": "Apply for MySQL HA deployment",
"申请Redis集群部署": "Apply for Redis cluster deployment",
Expand Down Expand Up @@ -1382,5 +1382,8 @@
"扩容任务进行中": "The expansion task is in progress",
"实例重启任务进行中": "The instance restart task is in progress",
"启用任务进行中": "Enable task in progress",
"不开启": "Off",
"开启": "On",
"开启认证": "Turn on authentication",
"删除任务进行中": "Delete task in progress"
}
3 changes: 3 additions & 0 deletions dbm-ui/frontend/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1381,5 +1381,8 @@
"启用任务进行中": "启用任务进行中",
"禁用任务进行中": "禁用任务进行中",
"删除任务进行中": "删除任务进行中",
"开启认证": "开启认证",
"开启": "开启",
"不开启": "不开启",
"实例重启任务进行中": "实例重启任务进行中"
}
10 changes: 10 additions & 0 deletions dbm-ui/frontend/src/views/kafka-manage/apply/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@
</span>
</BkFormItem>
</template>
<BkFormItem
:label="$t('开启认证')"
property="no_security">
<BkCheckbox
v-model="formData.details.no_security"
:false-label="1"
style="vertical-align: middle;"
:true-label="0" />
</BkFormItem>
<BkFormItem
:label="$t('备注')"
property="remark">
Expand Down Expand Up @@ -272,6 +281,7 @@
partition_num: 1,
retention_hours: 1,
replication_num: 1,
no_security: 0,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@
</span>
</div>
</template>
<div class="ticket-details__item">
<span class="ticket-details__item-label">{{ $t('开启认证') }}:</span>
<span
v-overflow-tips
class="ticket-details__item-value">{{ security }}</span>
</div>
<div class="ticket-details__item">
<span class="ticket-details__item-label">{{ $t('备注') }}:</span>
<span
Expand Down Expand Up @@ -114,6 +120,8 @@

const { t } = useI18n();

const security = computed(() => (props.ticketDetails?.no_security === 0 ? t('开启') : t('不开启')));

/**
* 获取服务器数量
*/
Expand Down

0 comments on commit 31c2031

Please sign in to comment.