Skip to content

Commit

Permalink
etcd deployment type
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohq committed Jun 25, 2022
1 parent 60e43c5 commit f6e12f5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions web/src/views/clusters/plan/etcd/ConfigEtcd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,12 @@ export default {
},
methods: {
async loadEtcdDeploymentOptions () {
let result = [
{
label: this.$t('field.etcd_deployment_type-host'),
value: 'host'
},
]
if (this.cluster.inventory.all.children.target.vars.container_manager === 'docker') {
let result = []
for (let item of this.cluster.resourcePackage.data.etcd.etcd_deployment_type) {
result.push({
label: this.$t('field.etcd_deployment_type-docker'),
value: 'docker',
label: this.$t('field.etcd_deployment_type-' + item),
value: item,
disabled: item === 'docker' ? this.cluster.inventory.all.children.target.vars.container_manager !== 'docker' : false,
})
}
return result
Expand Down

0 comments on commit f6e12f5

Please sign in to comment.