fix(k8s/configuration): save the owner when updating the configuration (#4517)

pull/3937/head
Alice Groux 2020-12-10 07:49:25 +01:00 committed by GitHub
parent 7398d54ed0
commit 45fcb1ad26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class KubernetesSecretConverter {
const res = new KubernetesSecretUpdatePayload(); const res = new KubernetesSecretUpdatePayload();
res.metadata.name = secret.Name; res.metadata.name = secret.Name;
res.metadata.namespace = secret.Namespace; res.metadata.namespace = secret.Namespace;
res.metadata.labels[KubernetesPortainerConfigurationOwnerLabel] = secret.ConfigurationOwner;
res.stringData = secret.Data; res.stringData = secret.Data;
return res; return res;
} }