mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-17 12:50:41 +08:00
hotfix: remove job before install
This commit is contained in:
@@ -49,6 +49,7 @@ func createOutboundPod(ctx context.Context, clientset *kubernetes.Clientset, nam
|
||||
_ = clientset.CoreV1().Services(namespace).Delete(ctx, name, options)
|
||||
_ = clientset.CoreV1().Secrets(namespace).Delete(ctx, name, options)
|
||||
_ = clientset.CoreV1().Pods(namespace).Delete(ctx, config.CniNetName, options)
|
||||
_ = clientset.BatchV1().Jobs(namespace).Delete(ctx, name, options)
|
||||
_ = clientset.AppsV1().Deployments(namespace).Delete(ctx, name, options)
|
||||
}
|
||||
defer func() {
|
||||
|
Reference in New Issue
Block a user