1
0
Fork 0
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:
Richard Wei 2021-11-23 09:51:02 +13:00 committed by GitHub
parent 6be1ff4d9c
commit a598b2d72d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View file

@ -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,
};