New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use YAML format as experiment description #1029
Conversation
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1029 +/- ##
==========================================
- Coverage 55.78% 47.89% -7.90%
==========================================
Files 68 72 +4
Lines 4383 4320 -63
==========================================
- Hits 2445 2069 -376
- Misses 1768 2042 +274
- Partials 170 209 +39
Continue to review full report at Codecov.
|
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Please resolve conflicting files. |
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
if exp.FinishTime.Add(ttl).Before(nowTime) { | ||
if err := e.db.Table("archive_experiments").Unscoped().Delete(*exp).Error; err != nil { | ||
if err := e.db.Table("experiments").Unscoped().Delete(*exp).Error; err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep archive_experiments
as the name of table
…-mesh into feat/yaml-editor
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
/run-all-tests |
/run-all-tests |
What problem does this PR solve?
This PR aims to use YAML format as an experiment detail in the dashboard.
Motivation:
Usually, we can create or update a chaos experiment by run
kubectl apply -f
. But the dashboard isn't, we reorder some spec values into different areas, especially in theupdate
editor. The difficulty is The user will face a very huge JSON structure, but our documentation doesn't explain this (because we use inside the API). And also, to handle different chaos, our update codes add much more conditions and patches which are hard to maintain.So to solve this problem it's better to make the experiment detail structure consistent with the CRD structure.
What is changed and how does it work?
/experiments/detail/:uid
to return the same structure as the chaos YAML/experiments/update
to receive the same structure as the chaos YAMLDeleteIncompleteExperiments
, call it after fx providers already initialized.Checklist
Tests
Side effects
Related changes
Does this PR introduce a user-facing change?