mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
change the namespace selector behavior (#5768)
This commit is contained in:
parent
6be1ff4d9c
commit
a598b2d72d
2 changed files with 8 additions and 7 deletions
|
@ -70,6 +70,7 @@ class KubernetesDeployController {
|
|||
RepositoryFetchInterval: '5m',
|
||||
RepositoryWebhookURL: this.WebhookHelper.returnStackWebhookUrl(uuidv4()),
|
||||
};
|
||||
|
||||
this.ManifestDeployTypes = KubernetesDeployManifestTypes;
|
||||
this.BuildMethods = KubernetesDeployBuildMethods;
|
||||
this.endpointId = this.EndpointProvider.endpointID();
|
||||
|
@ -209,9 +210,15 @@ class KubernetesDeployController {
|
|||
throw new PortainerError('Unable to determine build method');
|
||||
}
|
||||
|
||||
let deployNamespace = '';
|
||||
|
||||
if (this.formValues.Namespace !== 'default') {
|
||||
deployNamespace = this.formValues.Namespace;
|
||||
}
|
||||
|
||||
const payload = {
|
||||
ComposeFormat: composeFormat,
|
||||
Namespace: this.formValues.Namespace,
|
||||
Namespace: deployNamespace,
|
||||
StackName: this.formValues.StackName,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue