Merge pull request #3701 from westlywright/istio.bugs

delete the istio-system namespace when disabling istio
This commit is contained in:
Westly Wright 2020-01-03 17:06:58 -07:00 committed by GitHub
commit 948d44e956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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'))

View File

@ -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