You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some thoughts:
- Add a go get pkg
- Add fns in these for easy accessibility
- Functions should be such that, initExperiment, bussinessLogic, exitCriteria
- The output of these functions would be uploaded as the chaosResult verdict, reason or any other custom CR field, this would help us abstract our logic.
Just posting some discussion notes. Similar to @rahulchheda 's comment above:
What is litmus-go SDK?
User action: "go get github.com/litmuchaos/litmus-go"
User action : "litmus-go create-experiment --name=myapp-kill --attributes=attributes.yaml "
What it does:
(a) Create folder called myapp/myapp-pod-kill
(b) Create myapp-pod-kill.go, myapp-pre-health.go, myapp-post-health.go
(c) litmus-go check (lint) (scorecard) myapp/myapp-pod-kill
(d) litmus-go build myapp/myapp-pod-kill
(e) Dockerfile with COPY of binary and any other essentials
(f) Kubernetes Job template with above container
(g) ChaosExperiment CR
This issue is for tracking the creation of scaffolding for Go related experiments.
The text was updated successfully, but these errors were encountered: