@@ -171,7 +171,7 @@ func validate(t targetDetails, timeout, delay int, clients clients.ClientSets) e
171171 return verifyRestartCount (t , timeout , delay , clients , t .RestartCountBefore )
172172}
173173
174- //stopContainerdContainer kill the application container
174+ // stopContainerdContainer kill the application container
175175func stopContainerdContainer (containerIDs []string , socketPath , signal , source string ) error {
176176 if signal != "SIGKILL" && signal != "SIGTERM" {
177177 return cerrors.Error {ErrorCode : cerrors .ErrorTypeHelper , Source : source , Reason : fmt .Sprintf ("unsupported signal %s, use either SIGTERM or SIGKILL" , signal )}
@@ -192,7 +192,7 @@ func stopContainerdContainer(containerIDs []string, socketPath, signal, source s
192192 return nil
193193}
194194
195- //stopDockerContainer kill the application container
195+ // stopDockerContainer kill the application container
196196func stopDockerContainer (containerIDs []string , socketPath , signal , source string ) error {
197197 var errOut , out bytes.Buffer
198198 cmd := exec .Command ("sudo" , "docker" , "--host" , fmt .Sprintf ("unix://%s" , socketPath ), "kill" , "--signal" , signal )
@@ -205,7 +205,7 @@ func stopDockerContainer(containerIDs []string, socketPath, signal, source strin
205205 return nil
206206}
207207
208- //getRestartCount return the restart count of target container
208+ // getRestartCount return the restart count of target container
209209func getRestartCount (target targetDetails , clients clients.ClientSets ) (int , error ) {
210210 pod , err := clients .KubeClient .CoreV1 ().Pods (target .Namespace ).Get (context .Background (), target .Name , v1.GetOptions {})
211211 if err != nil {
@@ -221,7 +221,7 @@ func getRestartCount(target targetDetails, clients clients.ClientSets) (int, err
221221 return restartCount , nil
222222}
223223
224- //verifyRestartCount verify the restart count of target container that it is restarted or not after chaos injection
224+ // verifyRestartCount verify the restart count of target container that it is restarted or not after chaos injection
225225func verifyRestartCount (t targetDetails , timeout , delay int , clients clients.ClientSets , restartCountBefore int ) error {
226226
227227 restartCountAfter := 0
@@ -247,7 +247,7 @@ func verifyRestartCount(t targetDetails, timeout, delay int, clients clients.Cli
247247 })
248248}
249249
250- //getENV fetches all the env variables from the runner pod
250+ // getENV fetches all the env variables from the runner pod
251251func getENV (experimentDetails * experimentTypes.ExperimentDetails ) {
252252 experimentDetails .ExperimentName = types .Getenv ("EXPERIMENT_NAME" , "" )
253253 experimentDetails .InstanceID = types .Getenv ("INSTANCE_ID" , "" )
0 commit comments