mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
fix(app): single delete config or secret [EE-5078] (#9069)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
2ac70b1eb6
commit
9d3f13ac92
5 changed files with 5 additions and 6 deletions
|
@ -1112,7 +1112,6 @@ class KubernetesCreateApplicationController {
|
|||
try {
|
||||
this.formValues.ApplicationOwner = this.Authentication.getUserDetails().username;
|
||||
// combine the secrets and configmap form values when submitting the form
|
||||
this.formValues.Configurations = [...this.formValues.ConfigMaps, ...this.formValues.Secrets];
|
||||
_.remove(this.formValues.Configurations, (item) => item.SelectedConfiguration === undefined);
|
||||
await this.KubernetesApplicationService.create(this.formValues);
|
||||
this.Notifications.success('Request to deploy application successfully submitted', this.formValues.Name);
|
||||
|
@ -1136,7 +1135,6 @@ class KubernetesCreateApplicationController {
|
|||
|
||||
try {
|
||||
this.state.actionInProgress = true;
|
||||
this.formValues.Configurations = [...this.formValues.ConfigMaps, ...this.formValues.Secrets];
|
||||
await this.KubernetesApplicationService.patch(this.savedFormValues, this.formValues);
|
||||
this.Notifications.success('Success', 'Request to update application successfully submitted');
|
||||
this.$state.go('kubernetes.applications.application', { name: this.application.Name, namespace: this.application.ResourcePool });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue