Releases: litmuschaos/litmus-go
Releases · litmuschaos/litmus-go
2.4.0
[ Cherry-pick for 2.4.0 ] (#473) * Refactor/experiment contributing (#470) * docs: add instructions for building litmus-sdk binary Non Linux AMD64 users will need to build the binary for their target platform. Signed-off-by: Nic Johnson <[email protected]> * docs: update generated code & docs to aid experiment contribution It wasn't very clear what generated code needed to be kept, and what generated code needed to be replaced with experiment-specific code. Attempt to make that more clear by expanding README & adding grep-able tags inside generated code. Signed-off-by: Nic Johnson <[email protected]> * fix issue-3350 (#468) Signed-off-by: Andrew Hu <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * Remove the stress process on timeout without failure (#472) Signed-off-by: udit <[email protected]> * update image tag Signed-off-by: udit <[email protected]> Co-authored-by: Nic Johnson <[email protected]> Co-authored-by: Andrew Hu <[email protected]>
2.3.0
What's Changed
- Fix docker buildx command in actions CI by @uditgaurav in #291
- chore(abort): updating termination grace period by @ispeakc0de in #290
- feat(imagePullSecrets): Passing imagePullSecrets into helper pod by @ispeakc0de in #295
- feat(probe): Adding onchaos mode in all experiments by @ispeakc0de in #292
- feat(status): Checking status of annotated applications only, if annotationCheck is true by @ispeakc0de in #293
- refactor(comparator): refactor the comparator and added oneof operator by @ispeakc0de in #283
- feat(abort): Adding chaos revert inside network-chaos by @ispeakc0de in #297
- chore(aut-check): skip autStatus check if appinfo not provided by @ispeakc0de in #304
- chore(n/w-chaos): Handling the unknown destination hosts by @ispeakc0de in #302
- chore(signal): Adding signal for the crio/containerd runtime by @ispeakc0de in #306
- chore(disk-fill): Addding option to specify ephemeral storage(Mibi) e… by @ispeakc0de in #313
- refactor(kafka-broker-pod-failure): Refactor the kafka broker pod failure experiment by @ispeakc0de in #309
- Remove init container for changing permission of the container runtime socket by @radudd in #315
- chore(k8sProbe): Updating the k8s probe schema by @ispeakc0de in #308
- HTTP API Request call Timeout has been added for Probe by @oumkale in #307
- chore(container-status): checking only target container status by @ispeakc0de in #303
- enhance(aws-ec2): Add support for terminating node of a cluster with self-managed nodegroup by @uditgaurav in #298
- chore(applabels): Erroring out if applabel is not provided and annotationCheck is provided as false by @ispeakc0de in #319
- feat(randomness): Adding randomness interval inside pod-delete experiment by @ispeakc0de in #321
- rm(network-latency): Removed duplicate network-latency experiment by @ispeakc0de in #322
- Chore(actions): Update GitHub Chaos Actions by @uditgaurav in #320
- chore(probe): stop failing of other probes of same phase if one probe fails by @ispeakc0de in #324
- Chore(stress): Add stress envs for stress supported experiments by @uditgaurav in #325
- chore(helper): fixing waitForCompletion function to handle failed helpers in case of multiple targets by @ispeakc0de in #326
- feat(revert): Adding chaos revert steps on experiment abortion by @ispeakc0de in #318
- Added Pod DNS Chaos by @gdsoumya in #328
- update(sdk): updating the sdk scaffold by @ispeakc0de in #329
- fix(logging): modifying the Fatal to Error by @ispeakc0de in #330
- (enhancement)stress-image: add env for stress-image used in pumba lib by @ksatchit in #331
- Chore(new_experiment): Split EC2 terminate experiment to select multiple instance using tags or list in different sequence modes by @uditgaurav in #327
- chore(node-restart): updating the node-restart experiment by @ispeakc0de in #335
- chore(disk-fill): Adding Block size as tunable in disk-fill by @ispeakc0de in #344
- chore(exec): execing inside target pod only if it is in ready state by @ispeakc0de in #343
- Core(New_exp): Adding VMWare VMPowerOff Experiment by @iassurewipro in #346
- Chore(update): Enhance pod-autoscaler logs and update helper pod name by @uditgaurav in #337
- chore(node-label): Adding ability to filter target node by label by @ispeakc0de in #345
- chore(stress): fixing 137 error in cpu & memory chaos by @ispeakc0de in #339
- chore(helper): updating the helper pod status check by @ispeakc0de in #355
- Chore(EC2-checks): Update the ec2 terminate with tags experiment to target only running instances by @uditgaurav in #350
- rm(README): Removed the outdated readme by @ispeakc0de in #358
- Updated DNS chaos by @gdsoumya in #357
- Chore(New_exp): Add EBS Loss experiment using Tags by @uditgaurav in #354
- Chore(abort): Add abort chaos support for kube-aws experiments by @uditgaurav in #347
- refactor(chaoslibs): Refactored generic node experiments by @ispeakc0de in #351
- refactor(chaoslibs): Refactored pumba chaoslibs and utils by @ispeakc0de in #352
- refactor(chaoslibs): Refactored the generic pod experiments, cassandra and kafka experiments by @ispeakc0de in #349
- refactor(chaoslibs): Refactored aws & vmware experiments by @ispeakc0de in #353
- update(sdk): updated the litmus-sdk for the latest experiment schema changes by @ispeakc0de in #359
- chore(dns): adding spoofmap env in helper pod by @ispeakc0de in #363
- Fix sequence env in kafka broker pod experiment by @uditgaurav in #369
- chore(contribution): Adding contribution guide, issue & PR templates by @ispeakc0de in #367
- [Snyk] Security upgrade ubuntu from trusty to trusty-20190425 by @snyk-bot in #361
- [Snyk] Security upgrade ubuntu from trusty to trusty-20190515 by @snyk-bot in #364
- chore(env): : updating the env setter function for the helper pods by @ispeakc0de in #365
- rm(vendor): removing the vendor directory from litmus-go by @ispeakc0de in #366
- chore(image): reduce the go-runner image size by @ispeakc0de in #371
- Chore(e2e): Update e2e workflows and add more node level tests by @uditgaurav in #372
- feat(probe): Adding stop/continue on failure feature in probes by @ispeakc0de in #370
- chore(helper): Adding statusCheckTimeouts for the helper status check by @ispeakc0de in #373
- chore(chaosresult): updating verdict and status in chaosengine and chaosresult by @ispeakc0de in #375
- chore(sdk): updating sdk by @ispeakc0de in #378
- chore(pod-delete): Adding target details inside chaosresult by @ispeakc0de in #336
- chore(experiment): Adding target details inside chaosresult for the experiments which contains helper pod by @ispeakc0de in #342
- chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod by @ispeakc0de in #341
- Added docker-service-kill experiment implementation in litmus-go. by @Jonsy13 in #379
- Chore(New_Exp): Add AWS SSM Chaos Experiment by @uditgaurav in #376
- Chore(Dockerfile): Update Dockerfile to take binaries from test-tool release artefact by @uditgaurav in #380
- Chore(New_Exp): Add stress chaos experiments and split out the exec stress experiments by @uditgaurav in #368
- fix(log): fixed the comparator logs by @ispeakc0de in #384
- Fix: Populate total chaos duration to helper in dns experiments by @uditgaurav in #389
- feat(annotation): skipping parent resources listing, if annotationCheck is false by @ispeakc0de in #387
- Chore(stress-chaos): Remove extra privileges and update io stressors and timeout by @uditgaurav in #391
- Add option to change default container registry for image build by @Frawless in #390
- fix(ec2): removing the duplicate function calls by @ispeakc0de in https://github.com/litmuschao...
2.2.0
[Cherrypick for 2.2.0] (#456) * Bug(Experiment Generator): Add AuxiliaryAppInfo to template (#455) Signed-off-by: dravog7 <[email protected]> * chore(charts): update readme, contributor guide and github actions (#454) * chore(charts): update readme, contributor guide and github actions Signed-off-by: shubham chaudhary <[email protected]> * chore(repo-health): adding cii best practices Signed-off-by: shubham chaudhary <[email protected]> * chore(synk): Adding snyk to check the vulnerabilities Signed-off-by: shubham chaudhary <[email protected]> * chore(trivy): remove trivy check from push and release actions Signed-off-by: shubham chaudhary <[email protected]> * resolved conflicts Signed-off-by: shubham chaudhary <[email protected]> Co-authored-by: John Abraham <[email protected]>
2.1.1
[cherrypick for 2.1.1] (#453) * update(version): updating kubernetes version (#450) Signed-off-by: shubham chaudhary <[email protected]> * Chore(secured-image): Add litmus hardened alpine image as base image (#448) Signed-off-by: udit <[email protected]> * Chore(helper): Add termination grace period seconds to the helper pods and tolerationSeconds in kubelet and docker svc kill experiment helper (#433) * Chore(helper): Add termination grace period seconds to the helper pods Signed-off-by: udit <[email protected]> * Add tolerationSeconds in kubelet and docker svc kill experiment Signed-off-by: udit <[email protected]> * chore(labels): passing labels to the helper pod (#451) Signed-off-by: shubham chaudhary <[email protected]> * resolved conflicts Signed-off-by: shubham chaudhary <[email protected]> * VMWare VM-Poweroff Experiment Enhancements (#449) * stopVM and startVM moved to vm-operations.go,added error check in api calls, modified function signatures to remove dependency on expexperiment specific types.go Signed-off-by: neelanjan00 <[email protected]> * added chaos injection functionality for multiple VMs; added chaos parallel and serial chaos injection Signed-off-by: neelanjan00 <[email protected]> * added functionality for waiting through the duration of fully starting and fully stopping the VM Co-authored-by: Udit Gaurav <[email protected]> Co-authored-by: Neelanjan Manna <[email protected]>
2.1.0
Merge pull request #446 from ispeakc0de/2.1.0-tracker [Cherrypick for 2.1.0]
2.0.0
[Cherry-pick for 2.0.0] (#435) * Auxiliary Application Check for node-memory-hog Experiment and Multiple Target Node Functionality Fix for three Node-Level Experiments (#424) * Fixed multiple node selection functionality in nodes.go Signed-off-by: neelanjan00 <[email protected]> * Added Auxiliary Application Status Check to node-memory-hog experiment Signed-off-by: neelanjan00 <[email protected]> * Pod experiment fixes (#429) * Fixed issue with pod affected percentage > 100 Signed-off-by: Akash Shrivastava <[email protected]> * resolve conflict Signed-off-by: udit <[email protected]> * fixing bugs (#418) Signed-off-by: Oum Kale <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]> * feat(helper-status): fix helper status timeout when helper pod failed (#421) Signed-off-by: shubham chaudhary <[email protected]> * resolve conflict Signed-off-by: udit <[email protected]> * feat(exec-chaos): handle the abort signal (#425) Signed-off-by: shubham chaudhary <[email protected]> * feat(target-pods: validating target pods env (#430) Signed-off-by: shubham chaudhary <[email protected]> * feat(experiment): derive parent name in pod-delete only (#434) Signed-off-by: shubham chaudhary <[email protected]> Co-authored-by: Neelanjan Manna <[email protected]> Co-authored-by: Akash Shrivastava <[email protected]> Co-authored-by: OUM NIVRATHI KALE <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]>
2.0.0-RC1
[Cherry Pick for v2.0.0-RC1] (#419) * Chore(Azure): Update and Shift Azure instance stop chaos to master (#377) * Chore(new_exp): Add Azure instance terminate chaos (#296) * Chore(new_exp): Add Azure instance terminate chaos Signed-off-by: udit <[email protected]> * Added support for multiple instance id in azure instance terminate| Added abortwatcher code for azure instance terminate experiment Signed-off-by: Akash Shrivastava <[email protected]> * Fix minor filename issue Signed-off-by: Akash Shrivastava <[email protected]> * Removed vendors Signed-off-by: Akash Shrivastava <[email protected]> * Made changes as per suggestion in PR Signed-off-by: Akash Shrivastava <[email protected]> * Changed instance status display logic to not use loop * Reverted experiment.go values to default Signed-off-by: Akash Shrivastava <[email protected]> * Improved logs Signed-off-by: Akash Shrivastava <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * GCP VM Instance Stop Experiment (#388) * Bootstrap project created; GCP compute engine library, context library and option library added * VM instance status methods and VM instance operation methods added * Defined types.go; removed default template code for chaoslib>litmus>vm-instance-stop>lib>vm-instance-stop.go and experiments>gcp>vm-instance-stop>experiment>vm-instance-stop.go * updated function parameter names and varaible names in vm-instance-status.go * vm-instance-stop experiment chaoslib methods PrepareGCPTerminateByName, injectChaosInSerialMode, injectChaosInParallelMode, and abortWatcher added * AuxiliaryAppInfo field added in types.go and correspondingly in environment.go * Modified function PrepareGCPTerminateByName identifier to PrepareVMTerminateByName * Modified function PrepareVMTerminateByName to PrepareVMStop * VMInstanceStop experiment added * Added VMInstanceStop experiment to the main function * engine.yaml, experiment.yaml, and rbac.yaml charts updated * Corrected mount path in experiment.yaml * Functionality for fetching secret files from Kubernetes secret volume for the purpose of auth added * Updated engine.yaml chart * Initialized default value for TOTAL_CHAOS_DURATION, CHAOS_INTERVAL, and RAMP_TIME in experiment.yaml * Updated function VMInstanceStop GetENV and corresponding logs; Updated GetServiceAccountJSONFromSecret to return proper credentials * removed default comments from experiment.go * corrected yaml syntax in experiment.yaml * renamed ChaosEngine name to gcp-vm-chaos in engine.yaml * updated expirement description message in experiment.yaml * Replaced logo for GCP and VM Instance Delete experiment * terminate replaced to stop in a log in vm-instance-stop.go * Updated comments in vm-instance-stop.go * Updated comments in vm-instance-stop.go * Updated comments in vm-instance-stop.go * Removed attributes.yaml * removed the charts directory * comment added to VMInstanceStop function in vm-instance-stop.go * AbortWatcherWithoutExit function call removed as it was called twice in vm-instance-stop.go * Event generation of Result as Awaited shifted after SetResultUID function call in vm-instance-stop.go * post chaos vm instance status log moved outside the loop * test.yml updated * VM_INSTANCE_NAME and INSTANCE_ZONE replaced with their plurals * removed ActiveNodes from types.go * ManagedNodegroup replaced by AutoScalingGroup * added getFileContent function to get-credentials-json.go; implemented marshalling for creating json byte slice credentials * Modified log statement in vm-instance-status.go * Signing the commit for vm-instance-stop experiment * renamed the experiment to gcp-vm-instance-stop * Replaced the revert chaos status * Replaced PreChaosNodeStatusCheck, PostChaosActiveNodeCountCheck, and getActiveNodeCount functions to nodes.go; updated the gcp-vm-instance-stop experiment for the same. * Replaced PreChaosNodeStatusCheck, PostChaosActiveNodeCountCheck, and getActiveNodeCount functions to nodes.go; updated the ec2-terminate-by-id and ec2-terminate-by-tag.go experiments for the same. * Implemented the WaitForDuration method for waiting through the chaos interval in serial and parallel mode * Replaced Sequence with Zone in experiment log * Updated error statement * Removed redundant chaos setTarget * error message updated * Updated ramp time and chaos interval default values in environment.go * Added default ramp time of 0 in environment.go * cleaned unused dependencies * removed unused go dependencies Co-authored-by: Shubham Chaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * resolve conflict Signed-off-by: udit <[email protected]> * Chore(Azure): Azure Instance Stop experiment (support for: virtual machine scale sets) (#403) * Added support for virtual machine scale sets (for aks nodes) Signed-off-by: Akash Shrivastava <[email protected]> * update branch on litmus-go Signed-off-by: udit <[email protected]> Co-authored-by: Akash Shrivastava <[email protected]> Co-authored-by: Neelanjan Manna <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]>
1.13.8
Cherry-Pick for 1.13.8 (#402) * Chore(New_Exp): Add AWS SSM Chaos Experiment (#376) * Chore(New_Exp): Add aws ssm chaos experiment Signed-off-by: uditgaurav <[email protected]> * Chore(New_Exp): Add AWS SSM Chaos Experiment Signed-off-by: udit <[email protected]> * Add minor fix Signed-off-by: udit <[email protected]> * update ENV name for cpu and default docs path Signed-off-by: udit <[email protected]> * Chore(New_Exp): Add stress chaos experiments and split out the exec stress experiments (#368) * Rename pod-cpu-hog and pod-memory-hog experiment with pod-cpu-hog-exec and pod-memory-hog-exec respectively Signed-off-by: uditgaurav <[email protected]> * Add stress chaos without execing into the target container Signed-off-by: uditgaurav <[email protected]> * add helper logs Signed-off-by: uditgaurav <[email protected]> * update the abort logic Signed-off-by: udit <[email protected]> * refactor and update the code Signed-off-by: udit <[email protected]> * update Dockerfile Signed-off-by: udit <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]> * Chore(stress-chaos): Remove extra previlages and update io stressors and timeout (#391) * Chore(stress-chaos): Remove extra privileges and update io stressors and timeout Signed-off-by: udit <[email protected]> Co-authored-by: Shubham Chaudhary <[email protected]> * Add option to change default container registry for image build (#390) * Add option to change default container registry during image build Signed-off-by: Jakub Stejskal <[email protected]> * fix(ec2): removing the duplicate function calls (#393) Signed-off-by: shubhamchaudhary <[email protected]> * github actions(resolved conflicts) Signed-off-by: shubham chaudhary <[email protected]> * chore(nonchaos-pods): filter all the nonchaos-pods for target pod selection (#401) Signed-off-by: shubham chaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> * fix(stress-chaos): fixing the stress chaos for abort cases and target details (#399) Signed-off-by: shubhamchaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> Co-authored-by: Jakub Stejskal <[email protected]>
1.13.7
[Cherrypick for 1.13.7] (#392) * fix(log): fixed the comparator logs (#384) Signed-off-by: shubhamchaudhary <[email protected]> * Fix: Populate total chaos duration to helper in dns experiments (#389) Signed-off-by: udit <[email protected]> * feat(annotation): skipping parent resources listing, if annotationCheck is false (#387) Signed-off-by: shubhamchaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]>
1.13.6
[Cherrypick for 1.13.6] (#381) * chore(dns): adding spoofmap env in helper pod (#363) Signed-off-by: shubhamchaudhary <[email protected]> * Fix sequence env in kafka broker pod experiment (#369) * Fix sequence env in kafka broker pod experiment Signed-off-by: uditgaurav <[email protected]> * add pod affected percentage env Signed-off-by: uditgaurav <[email protected]> * chore(contribution): Adding contribution guide, bch check, issue & PR templates (#367) Signed-off-by: shubhamchaudhary <[email protected]> * fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities (#361) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU1404-OPENSSL-1049144 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-1065770 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-406981 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-473059 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-546522 Co-authored-by: Karthik Satchitanand <[email protected]> * fix: vendor/golang.org/x/net/http2/Dockerfile to reduce vulnerabilities (#364) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU1404-OPENSSL-1049144 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-1065770 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-406981 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-473059 - https://snyk.io/vuln/SNYK-UBUNTU1404-SUDO-546522 Co-authored-by: Karthik Satchitanand <[email protected]> * chore(env): : updated the env setter function (#365) Signed-off-by: shubhamchaudhary <[email protected]> * rm(vendor): removing the vendor directory from litmus-go (#366) Signed-off-by: shubhamchaudhary <[email protected]> * chore(image): reduce the go-runner image size (#371) Signed-off-by: shubhamchaudhary <[email protected]> * Chore(e2e): Update e2e workflows and add more node level tests (#372) * Chore(e2e): Update e2e workflows and add more node level tests Signed-off-by: uditgaurav <[email protected]> * add kind config Signed-off-by: uditgaurav <[email protected]> * chore(probe): adding probe abort (#370) Signed-off-by: shubhamchaudhary <[email protected]> * chore(helper): Adding statusCheckTimeouts for the helper status check (#373) Signed-off-by: shubhamchaudhary <[email protected]> * chore(chaosresult): updating verdict and status in chaosengine and chaosresult (#375) Signed-off-by: shubhamchaudhary <[email protected]> * chore(sdk): updating sdk (#378) * chore(sdk): updating sdk Signed-off-by: shubhamchaudhary <[email protected]> * chore(pod-delete): Adding target details inside chaosresult (#336) * chore(pod-delete): Adding target details inside chaosresult Signed-off-by: shubhamchaudhary <[email protected]> * chore(pod-delete): Adding target details inside chaosresult for pod-autoscaler Signed-off-by: shubhamchaudhary <[email protected]> * chore(experiment): Adding target details inside chaosresult for the experiments which contains helper pod (#342) Signed-off-by: shubhamchaudhary <[email protected]> * chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod (#341) * chore(experiment): Adding target details inside chaosresult for the experiments which doesn't contain helper pod Signed-off-by: shubhamchaudhary <[email protected]> * chore(experiment): Adding target details inside chaosresult for the pumba helper Signed-off-by: shubhamchaudhary <[email protected]> * Added docker-service-kill experiment implementation in litmus-go. (#379) * Added docker-svc-kill implementation in litmus-go. Signed-off-by: Jonsy13 <[email protected]> * Chore(Dockerfile): Update Dockerfile to take binaries from test-tool release build (#380) Signed-off-by: udit <[email protected]> * chore(1.13.x): updating branch to 1.13.x in github actions Signed-off-by: shubhamchaudhary <[email protected]> Co-authored-by: Udit Gaurav <[email protected]> Co-authored-by: Snyk bot <[email protected]> Co-authored-by: Karthik Satchitanand <[email protected]> Co-authored-by: VEDANT SHROTRIA <[email protected]>