Skip to content

Commit

Permalink
fix: Fix servicemesh settings in federated project
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Jul 17, 2020
1 parent f71c2dc commit b82ab13
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/locales/zh/workload.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
REPLICAS_SCALE_NOTIFY_CANCEL: '放弃更改',

POD_SETTING_TIP: '更新时容器组数量',
MAX_UNAVAILABLE_POD_LABEL: '容器组最大可用数量',
MAX_UNAVAILABLE_POD_LABEL: '容器组最大不可用数量',
MAX_SURGE_POD_LABEL: '更新时容器组最大数量',
UPDATE_STRATEGY_DESC:
'配置升级过程中替换容器组的策略 <a href="{link}" target="_blank">了解更多</a>',
Expand Down
7 changes: 6 additions & 1 deletion src/pages/fedprojects/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
* along with KubeSphere Console. If not, see <https://www.gnu.org/licenses/>.
*/
import React, { Component } from 'react'
import { set } from 'lodash'
import { toJS } from 'mobx'
import { inject, observer, Provider } from 'mobx-react'

import { toJS } from 'mobx'
import { Loading } from '@pitrix/lego-ui'

import { renderRoutes } from 'utils/router.config'
Expand Down Expand Up @@ -61,6 +62,10 @@ export default class App extends Component {
})
this.store.detail.clusters = toJS(this.clusterStore.list.data)

this.store.detail.clusters.forEach(cluster => {
set(globals, `clusterConfig.${cluster.name}`, cluster.configz)
})

await this.props.rootStore.getRules(params)

globals.app.cacheHistory(this.props.match.url, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class InternetAccess extends React.Component {
return (
<div>
<GatewaySettingModal
cluster={cluster}
cluster={cluster.name}
detail={toJS(this.store.gateway.data)}
visible={this.state.showGatewaySetting}
onOk={this.handleGatewaySetting}
Expand Down

0 comments on commit b82ab13

Please sign in to comment.