feat(kube): use local kubectl for all deployments (#5488)

This commit is contained in:
Chaim Lev-Ari
2021-09-24 07:56:22 +03:00
committed by GitHub
parent 5ad3cacefd
commit d4f581a596
10 changed files with 126 additions and 197 deletions

View File

@@ -24,3 +24,7 @@ func IsDockerEndpoint(endpoint *portainer.Endpoint) bool {
endpoint.Type == portainer.AgentOnDockerEnvironment ||
endpoint.Type == portainer.EdgeAgentOnDockerEnvironment
}
func IsEdgeEndpoint(endpoint *portainer.Endpoint) bool {
return endpoint.Type == portainer.EdgeAgentOnDockerEnvironment || endpoint.Type == portainer.EdgeAgentOnKubernetesEnvironment
}