mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +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
|
@ -21,6 +21,7 @@ class KubernetesConfigurationConverter {
|
|||
if (secret.Annotations) {
|
||||
res.ServiceAccountName = secret.Annotations['kubernetes.io/service-account.name'];
|
||||
}
|
||||
res.Labels = secret.Labels;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -37,6 +38,7 @@ class KubernetesConfigurationConverter {
|
|||
});
|
||||
res.data = res.Data;
|
||||
res.ConfigurationOwner = configMap.ConfigurationOwner;
|
||||
res.Labels = configMap.Labels;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue