Skip to content

Commit

Permalink
Add aws dynamic allocation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tisutisu committed Mar 11, 2024
1 parent 38f7b46 commit 00168de
Show file tree
Hide file tree
Showing 2 changed files with 501 additions and 190 deletions.
7 changes: 7 additions & 0 deletions pkg/clients/common/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,10 @@ func (s *SuiteController) StoreAllPods(namespace string) error {
}
return nil
}

func (s *SuiteController) RestartPod(podName string, namespace string) error {
if err := s.KubeInterface().CoreV1().Pods(namespace).Delete(context.Background(), podName, metav1.DeleteOptions{}); err != nil {
return fmt.Errorf("failed to restart pod '%s' in '%s' namespace: %+v", podName, namespace, err)
}
return nil
}
Loading

0 comments on commit 00168de

Please sign in to comment.