feat: use download api to get current namespace

This commit is contained in:
wencaiwulue
2023-02-14 22:15:19 +08:00
parent 4b188ba6e9
commit cd41ebf2d8
3 changed files with 6 additions and 9 deletions

View File

@@ -54,8 +54,12 @@ kubevpn serve -L "tun:/${TrafficManagerRealIP}:8422?net=${InboundPodTunIP}&route
Value: c.InboundPodTunIP,
},
{
Name: config.EnvNamespace,
Value: ns,
Name: "POD_NAMESPACE",
ValueFrom: &v1.EnvVarSource{
FieldRef: &v1.ObjectFieldSelector{
FieldPath: "metadata.namespace",
},
},
},
},
SecurityContext: &v1.SecurityContext{