File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
commands/operator-sdk/cmd/test Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,12 @@ func testClusterFunc(cmd *cobra.Command, args []string) error {
91
91
if err != nil {
92
92
return fmt .Errorf ("failed to create test pod: %v" , err )
93
93
}
94
- /*
95
- defer func() {
96
- err = kubeclient.CoreV1().Pods(testNamespace).Delete(testPod.Name, &metav1.DeleteOptions{})
97
- if err != nil {
98
- fmt.Printf("Warning: failed to delete test pod")
99
- }
100
- }()
101
- */
94
+ defer func () {
95
+ err = kubeclient .CoreV1 ().Pods (testNamespace ).Delete (testPod .Name , & metav1.DeleteOptions {})
96
+ if err != nil {
97
+ fmt .Printf ("Warning: failed to delete test pod" )
98
+ }
99
+ }()
102
100
for {
103
101
testPod , err = kubeclient .CoreV1 ().Pods (testNamespace ).Get (testPod .Name , metav1.GetOptions {})
104
102
if err != nil {
You can’t perform that action at this time.
0 commit comments