mirror of https://github.com/rancher/ui.git
Merge pull request #3701 from westlywright/istio.bugs
delete the istio-system namespace when disabling istio
This commit is contained in:
commit
948d44e956
|
|
@ -34,11 +34,12 @@ export default Component.extend(ModalBase, {
|
|||
const {
|
||||
istioApp, onlyIstio, cluster
|
||||
} = this
|
||||
const { systemProject } = cluster;
|
||||
const istioSystemNamespace = ( systemProject.namespaces || []).findBy('id', 'istio-system');
|
||||
|
||||
set(this, 'saving', true)
|
||||
|
||||
const disableIstio = istioApp.delete()
|
||||
const promises = [disableIstio]
|
||||
const promises = [istioApp.delete(), istioSystemNamespace.delete()];
|
||||
|
||||
if (!onlyIstio) {
|
||||
promises.pushObject(cluster.doAction('disableMonitoring'))
|
||||
|
|
|
|||
|
|
@ -7392,8 +7392,8 @@ machineTemplatesPage:
|
|||
modalDeleteIstio:
|
||||
title: 'Are you sure you want to disable:'
|
||||
onlyIstio:
|
||||
true: Istio Only
|
||||
false: Both Istio and Monitoring
|
||||
true: Istio and remove Istio system namespace
|
||||
false: Istio, Monitoring and remove Istio system namespace
|
||||
disable: Disable
|
||||
disabling: Disabling
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue