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 {
|
const {
|
||||||
istioApp, onlyIstio, cluster
|
istioApp, onlyIstio, cluster
|
||||||
} = this
|
} = this
|
||||||
|
const { systemProject } = cluster;
|
||||||
|
const istioSystemNamespace = ( systemProject.namespaces || []).findBy('id', 'istio-system');
|
||||||
|
|
||||||
set(this, 'saving', true)
|
set(this, 'saving', true)
|
||||||
|
|
||||||
const disableIstio = istioApp.delete()
|
const promises = [istioApp.delete(), istioSystemNamespace.delete()];
|
||||||
const promises = [disableIstio]
|
|
||||||
|
|
||||||
if (!onlyIstio) {
|
if (!onlyIstio) {
|
||||||
promises.pushObject(cluster.doAction('disableMonitoring'))
|
promises.pushObject(cluster.doAction('disableMonitoring'))
|
||||||
|
|
|
||||||
|
|
@ -7392,8 +7392,8 @@ machineTemplatesPage:
|
||||||
modalDeleteIstio:
|
modalDeleteIstio:
|
||||||
title: 'Are you sure you want to disable:'
|
title: 'Are you sure you want to disable:'
|
||||||
onlyIstio:
|
onlyIstio:
|
||||||
true: Istio Only
|
true: Istio and remove Istio system namespace
|
||||||
false: Both Istio and Monitoring
|
false: Istio, Monitoring and remove Istio system namespace
|
||||||
disable: Disable
|
disable: Disable
|
||||||
disabling: Disabling
|
disabling: Disabling
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue