Skip to content

Commit

Permalink
fix: Remove network isolation setting in project create
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Jul 20, 2020
1 parent 07325e0 commit e3d0898
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
3 changes: 0 additions & 3 deletions server/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,6 @@ client:
# show kubeconfig
enableKubeConfig: true

# show kubeconfig
defaultNetworkIsolation: false

# third party tools
thirdPartyTools:
[]
Expand Down
15 changes: 1 addition & 14 deletions src/components/Modals/FedProjectCreate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,20 +242,6 @@ export default class FedProjectCreateModal extends React.Component {
</Column>
</Columns>
<Columns>
<Column>
<Form.Item
label={t('Network Isolation')}
desc={t('NETWORK_ISOLATED_DESC')}
>
<Select
name="metadata.annotations['kubesphere.io/network-isolate']"
options={this.networkOptions}
defaultValue={
globals.config.defaultNetworkIsolation ? 'enabled' : ''
}
/>
</Form.Item>
</Column>
<Column>
<Form.Item label={t('Description')} desc={t('DESCRIPTION_DESC')}>
<TextArea
Expand All @@ -264,6 +250,7 @@ export default class FedProjectCreateModal extends React.Component {
/>
</Form.Item>
</Column>
<Column />
</Columns>
{this.renderClusters()}
</div>
Expand Down
15 changes: 1 addition & 14 deletions src/components/Modals/ProjectCreate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,20 +238,6 @@ export default class ProjectCreateModal extends React.Component {
</Column>
</Columns>
<Columns>
<Column>
<Form.Item
label={t('Network Isolation')}
desc={t('NETWORK_ISOLATED_DESC')}
>
<Select
name="metadata.annotations['kubesphere.io/network-isolate']"
options={this.networkOptions}
defaultValue={
globals.config.defaultNetworkIsolation ? 'enabled' : ''
}
/>
</Form.Item>
</Column>
<Column>
<Form.Item label={t('Description')} desc={t('DESCRIPTION_DESC')}>
<TextArea
Expand All @@ -260,6 +246,7 @@ export default class ProjectCreateModal extends React.Component {
/>
</Form.Item>
</Column>
<Column />
</Columns>
{!hideCluster && this.renderClusters()}
</div>
Expand Down

0 comments on commit e3d0898

Please sign in to comment.