mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(secrets): allow edit sa token, refactor (#7732)
This commit is contained in:
parent
cb79dc18f8
commit
a1a88eb5e4
12 changed files with 78 additions and 78 deletions
|
@ -17,6 +17,9 @@ class KubernetesConfigurationConverter {
|
|||
res.ConfigurationOwner = secret.ConfigurationOwner;
|
||||
res.IsRegistrySecret = secret.IsRegistrySecret;
|
||||
res.SecretType = secret.SecretType;
|
||||
if (secret.Annotations) {
|
||||
res.ServiceAccountName = secret.Annotations['kubernetes.io/service-account.name'];
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue