feat: optimize performance

This commit is contained in:
wencaiwulue
2023-02-26 18:17:42 +08:00
parent f490801f99
commit 5f814f6d02
30 changed files with 1187 additions and 487 deletions

View File

@@ -14,7 +14,7 @@ import (
"github.com/wencaiwulue/kubevpn/pkg/util"
)
func Complete(route *Route) error {
func Complete(route *core.Route) error {
if v, ok := os.LookupEnv(config.EnvInboundPodTunIP); ok && v == "" {
namespace := os.Getenv(config.EnvPodNamespace)
if namespace == "" {