Increase kubectl cp command timeout to 30 seconds

Kubernetes-commit: 9c228e81d2481150878ca3a431f0ec9a8f150b3f
This commit is contained in:
Arda Güçlü 2025-03-28 12:39:01 +03:00 committed by Kubernetes Publisher
parent 9301b2a1f6
commit 399c585899
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ func (o *CopyOptions) checkDestinationIsDir(dest fileSpec) error {
Executor: &exec.DefaultRemoteExecutor{},
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
done := make(chan error)