Compare commits

...

2 Commits

Author SHA1 Message Date
andres-portainer
e95cc08f54 Change the condition.
Some checks are pending
Test / test-server (push) Waiting to run
Test / test-client (push) Waiting to run
2023-11-20 14:47:17 -03:00
andres-portainer
27df5440e4 fix(gitops): handle the local environment in isEnvironmentOnline() EE-6321 2023-11-14 18:16:17 -03:00

View File

@@ -171,6 +171,11 @@ func getUserRegistries(datastore dataservices.DataStore, user *portainer.User, e
}
func isEnvironmentOnline(endpoint *portainer.Endpoint) bool {
if endpoint.Type != portainer.AgentOnDockerEnvironment &&
endpoint.Type != portainer.AgentOnKubernetesEnvironment {
return true
}
var err error
var tlsConfig *tls.Config
if endpoint.TLSConfig.TLS {