mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
keep labels on edit ingress, configmaps and secrets (#11050)
This commit is contained in:
parent
9ad78753bc
commit
a2195caa10
13 changed files with 21 additions and 2 deletions
|
@ -82,10 +82,12 @@ class KubernetesConfigurationService {
|
|||
if (formValues.Kind === KubernetesConfigurationKinds.CONFIGMAP) {
|
||||
const configMap = KubernetesConfigMapConverter.configurationFormValuesToConfigMap(formValues);
|
||||
configMap.ConfigurationOwner = configuration.ConfigurationOwner;
|
||||
configMap.Labels = configuration.Labels;
|
||||
await this.KubernetesConfigMapService.update(configMap);
|
||||
} else {
|
||||
const secret = KubernetesSecretConverter.configurationFormValuesToSecret(formValues);
|
||||
secret.ConfigurationOwner = configuration.ConfigurationOwner;
|
||||
secret.Labels = configuration.Labels;
|
||||
await this.KubernetesSecretService.update(secret);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue