mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(k8s) deploying manifest using default namespace EE-2104 (#6385)
* fix(k8s) deploying manifest using default namespace EE-2104
This commit is contained in:
parent
4377aec72b
commit
3579b11a8b
3 changed files with 25 additions and 3 deletions
|
@ -213,7 +213,9 @@ class KubernetesDeployController {
|
|||
|
||||
let deployNamespace = '';
|
||||
|
||||
if (this.formValues.Namespace !== 'default') {
|
||||
if (this.formValues.namespace_toggle) {
|
||||
deployNamespace = '';
|
||||
} else {
|
||||
deployNamespace = this.formValues.Namespace;
|
||||
}
|
||||
|
||||
|
@ -298,6 +300,7 @@ class KubernetesDeployController {
|
|||
|
||||
$onInit() {
|
||||
return this.$async(async () => {
|
||||
this.formValues.namespace_toggle = false;
|
||||
await this.getNamespaces();
|
||||
|
||||
if (this.$state.params.templateId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue