1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(registry): sync config on change [EE-5460] (#8955)

This commit is contained in:
Chaim Lev-Ari 2023-05-30 10:47:44 +07:00 committed by GitHub
parent d803d5f821
commit 61b568a738
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 16 deletions

View file

@ -119,6 +119,8 @@ func (handler *Handler) registryCreate(w http.ResponseWriter, r *http.Request) *
Ecr: payload.Ecr,
}
registry.ManagementConfiguration = syncConfig(registry)
registries, err := handler.DataStore.Registry().Registries()
if err != nil {
return httperror.InternalServerError("Unable to retrieve registries from the database", err)