mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
Co-authored-by: testA113 <aliharriss1995@gmail.com> Co-authored-by: Anthony Lapenna <anthony.lapenna@portainer.io> Co-authored-by: James Carppe <85850129+jamescarppe@users.noreply.github.com> Co-authored-by: Ali <83188384+testA113@users.noreply.github.com>
18 lines
429 B
Go
18 lines
429 B
Go
package kubernetes
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/portainer/portainer/api/internal/registryutils"
|
|
)
|
|
|
|
func (transport *baseTransport) refreshRegistry(request *http.Request, namespace string) (err error) {
|
|
cli, err := transport.k8sClientFactory.GetPrivilegedKubeClient(transport.endpoint)
|
|
if err != nil {
|
|
return
|
|
}
|
|
|
|
err = registryutils.RefreshEcrSecret(cli, transport.endpoint, transport.dataStore, namespace)
|
|
|
|
return
|
|
}
|