From 3fdcf4ddade9371118ed6f41972f66569a38ca8c Mon Sep 17 00:00:00 2001 From: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com> Date: Mon, 14 Sep 2020 11:57:46 -0700 Subject: [PATCH] remove resourceSetNamespace --- chart/backup-restore-operator/index.vue | 32 +------------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/chart/backup-restore-operator/index.vue b/chart/backup-restore-operator/index.vue index 3b2cf5d21e..831a659196 100644 --- a/chart/backup-restore-operator/index.vue +++ b/chart/backup-restore-operator/index.vue @@ -6,10 +6,9 @@ import LabeledSelect from '@/components/form/LabeledSelect'; import LabeledInput from '@/components/form/LabeledInput'; import { get } from '@/utils/object'; import { allHash } from '@/utils/promise'; -import { STORAGE_CLASS, SECRET, PV, NAMESPACE } from '@/config/types'; +import { STORAGE_CLASS, SECRET, PV } from '@/config/types'; import { mapGetters } from 'vuex'; import { STORAGE } from '@/config/labels-annotations'; -import { sortBy } from '@/utils/sort'; export default { components: { @@ -30,13 +29,6 @@ export default { } }, - chart: { - type: Object, - default: () => { - return {}; - } - }, - mode: { type: String, default: 'create' @@ -57,11 +49,6 @@ export default { data() { const storageSource = this.mode === 'create' ? 's3' : this.getStorageSource(this.value); - const chartNamespace = this.chart.targetNamespace; - - if (chartNamespace && !this.value.rancherResourceSetNamespace) { - this.value.rancherResourceSetNamespace = chartNamespace; - } return { storageSource, secrets: [], storageClasses: [], persistentVolumes: [] @@ -69,18 +56,6 @@ export default { }, computed: { - namespaceOpts() { - const inStore = this.$store.getters['currentProduct'].inStore; - const choices = this.$store.getters[`${ inStore }/all`](NAMESPACE); - - return sortBy(choices.map((obj) => { - return { - label: obj.nameDisplay, - value: obj.id, - }; - }), 'label'); - }, - defaultStorageClass() { return this.storageClasses.filter(sc => sc.metadata.annotations[STORAGE.DEFAULT_STORAGE_CLASS])[0]; }, @@ -177,11 +152,6 @@ export default {