Skip to content

Commit

Permalink
Enable Helm rollback
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Nov 23, 2023
1 parent 4daaf81 commit 4612138
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions timoni/bundles/flux-benchmark.cue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bundle: {
mcpu: 1 @timoni(runtime:number:MCPU)
runTests: true
failTests: false
rollback: false
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions timoni/modules/flux-hr-bench/templates/config.cue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import (

driftDetection: "enabled" | "warn" | "disabled" | *"enabled"

rollback: bool | *false

runTests: bool | *false
failTests: bool | *false

Expand Down
3 changes: 3 additions & 0 deletions timoni/modules/flux-hr-bench/templates/helmrelease.cue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ import (
}
install: crds: "Create"
upgrade: crds: "CreateReplace"
if _config.rollback {
upgrade: remediation: retries: 3
}
if _config.pods > 0 {
test: enable: _config.runTests
}
Expand Down

0 comments on commit 4612138

Please sign in to comment.