portainer/api/http/proxy/factory/kubernetes/refresh_registry.go

19 lines
419 B
Go
Raw Normal View History

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.GetKubeClient(transport.endpoint)
if err != nil {
return
}
err = registryutils.RefreshEcrSecret(cli, transport.endpoint, transport.dataStore, namespace)
return
}