feat: optimize code

This commit is contained in:
wencaiwulue
2023-03-14 22:07:32 +08:00
committed by wencaiwulue
parent 4f9d1f7db8
commit 09528748b0
13 changed files with 148 additions and 149 deletions

View File

@@ -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
}