mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-11-01 19:22:45 +08:00
feat: optimize code
This commit is contained in:
@@ -92,11 +92,11 @@ func (d Options) Main(ctx context.Context) error {
|
||||
|
||||
pod := firstPod.Name
|
||||
|
||||
env, err := GetEnv(ctx, d.Factory, d.Namespace, pod)
|
||||
env, err := util.GetEnv(ctx, d.Factory, d.Namespace, pod)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
volume, err := GetVolume(ctx, d.Factory, d.Namespace, pod)
|
||||
volume, err := util.GetVolume(ctx, d.Factory, d.Namespace, pod)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user