Skip to content

Commit

Permalink
Allow running Helm tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 9, 2023
1 parent fd86ffd commit d812c99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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 @@ -31,6 +31,8 @@ import (
interval: int | *60
}

runTests: bool | *false

releases: int | *1
replicas: int | *2
requests: cpu: int | *1
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 @@ -31,6 +31,9 @@ import (
}
install: crds: "Create"
upgrade: crds: "CreateReplace"
if _config.replicas > 0 {
test: enable: _config.runTests
}
values: {
replicaCount: _config.replicas
if _config.replicas > 0 {
Expand Down

0 comments on commit d812c99

Please sign in to comment.