Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
445e438
implement Imported Cluster creation via golang, add Cluster state han…
git-ival May 11, 2025
d47fb97
WIP support provisioning clusters via dartboard, WIP support for usin…
git-ival May 11, 2025
d978e47
update state handling to utilize a map[string]*ClusterStatus to avoid…
git-ival May 12, 2025
6e25905
change post-batch sleep logic, update some log messages
git-ival May 12, 2025
ee7a22e
move update channels to separate struct that can be passed as needed,…
git-ival May 12, 2025
e17b99f
add TODO for destroy command
git-ival May 12, 2025
9d6915e
Moved batch Cluster registration logic into a separate file, added a …
git-ival May 12, 2025
a09749a
reduce size of ClusterStatus struct, genericize batchrunner logic to …
git-ival May 13, 2025
bafabe2
support 'naturally' sorting slices by string, cleanup parameters and …
git-ival May 13, 2025
bbbc4f6
replace pod status function from shepherd with custom action
git-ival May 13, 2025
78fd6e4
WIP custom cluster registration flow
git-ival May 14, 2025
58447f5
update shepherd dep
git-ival May 15, 2025
bffffb3
fix clusters.go assert
git-ival May 15, 2025
35d7208
add import nicknames to fix golangci-lint
git-ival May 15, 2025
9baf42b
fix various golangci-lint errors and warnings
git-ival May 15, 2025
8a46df5
add new stages, various func updates
git-ival May 16, 2025
061a0ea
WIP, updates to various interal/dart and internal/tofu types
git-ival May 16, 2025
bc185bc
updates to harvester modules, add node_templates
git-ival May 16, 2025
b098d00
add missing dart types
git-ival May 16, 2025
1646003
update tofu format parsing
git-ival May 19, 2025
df16638
WIP massive overhauls to dart types, added in internal/harvester for …
git-ival May 19, 2025
a95f123
update deps
git-ival May 19, 2025
7525ceb
WIP modifications to type constraints, VM handling logic
git-ival May 19, 2025
9283c05
update test_env to support node-only creation for custom clusters
git-ival May 19, 2025
2814a43
update test_env to support node-only creation for custom clusters
git-ival May 19, 2025
6b19318
WIP update types, custom cluster prov support
git-ival May 19, 2025
5155077
update deps
git-ival May 19, 2025
646f045
WIP custom cluster flow, SO CLOSE
git-ival May 20, 2025
832af75
fix get cluster
git-ival May 20, 2025
25b66d7
cleanup some comments
git-ival May 20, 2025
1fbe36c
ignore tester cluster deploys if no tester, fix custom cluster batchi…
git-ival May 20, 2025
ccffa5c
update image dataresource logic, do not use datasource if image_id is…
git-ival May 20, 2025
512ee3d
remove lots of unused stuff
git-ival May 20, 2025
6a8461e
ensure tunnels are not created by default, added bool flag to control…
git-ival May 21, 2025
f98db1f
removed unused 'node_templates' var
git-ival May 21, 2025
3a07f7f
delay Stage.Create update until after cluster is found post-create ca…
git-ival May 22, 2025
9cb95e7
add new skip-charts flag for so that repeated can bypass chart reins…
git-ival May 22, 2025
e28b7b4
replace shepherd deps with upstream
git-ival May 27, 2025
39700e8
add skip-refresh dartboard argument for tofu.Apply()
git-ival May 31, 2025
24030d0
fix ssh tunnel enable/disable
git-ival Jul 9, 2025
228a4f6
fix imports and outputs.tf
git-ival Sep 10, 2025
0f0af90
fix dependencies, update func params, add custom_clusters output to A…
git-ival Dec 24, 2025
d57d9d3
update shepherd dep to temp branch
git-ival Dec 24, 2025
8b9b6a6
update harvester dep to temp branch
git-ival Dec 24, 2025
3b1729b
fix duped output
git-ival Dec 24, 2025
307c89b
update makefile for more explicit tofu fmt error reporting
git-ival Dec 24, 2025
a627b46
formatting
git-ival Jan 5, 2026
7694872
formatting, remove commented code
git-ival Jan 5, 2026
b663f69
fix linter errors and formatting
git-ival Jan 5, 2026
a37adf6
add .env to .gitignore
git-ival Jan 5, 2026
f2723f8
try to fix k3d github action error due to downstream cluster template…
git-ival Jan 14, 2026
fc109e5
enable public ips for custom cluster nodes, enable setting bastion in…
git-ival Jan 28, 2026
1b64568
skip rancher-ingress deployment if there are no additional SANs
git-ival Jan 28, 2026
5ed8122
update go.mod
git-ival Jan 28, 2026
7bfaff2
update vendored + docker versions
git-ival Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tofu/main/*/*config
.vscode

# Others
.env
scripts/utils/*.txt
scripts/utils/export-metrics/metrics*
scripts/utils/export-metrics/chunks_head
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG K6_VERSION="1.3.0"
ARG K6_VERSION="1.5.0"
FROM golang:1.24-alpine3.22 AS builder
# match whichever tagged version is used by the K6_VERSION docker image
# see build layer at https://github.com/grafana/k6/blob/v${K6_VERSION}/Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ lint: internal/vendored/bin
.PHONY: tofu-fmt-check
tofu-fmt-check: internal/vendored/bin
@for dir in $(TOFU_MAIN_DIRS); do \
$(TOFU) -chdir=./tofu/main/$$dir fmt -check -recursive || exit 1; \
$(TOFU) -chdir=./tofu/main/$$dir fmt -check -diff -recursive || exit 1; \
done
$(TOFU) -chdir=./tofu/modules fmt -check -recursive
$(TOFU) -chdir=./tofu/modules fmt -check -diff -recursive

.PHONY: tofu-fmt
tofu-fmt: internal/vendored/bin
Expand Down
21 changes: 17 additions & 4 deletions cmd/dartboard/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"path/filepath"

"github.com/rancher/dartboard/cmd/dartboard/subcommands"
"github.com/urfave/cli/v2"
cli "github.com/urfave/cli/v2"
)

func main() {
Expand Down Expand Up @@ -52,9 +52,22 @@ func main() {
Action: subcommands.Deploy,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: subcommands.ArgSkipApply,
Value: false,
Usage: "skip `tofu apply`, assume apply was already called",
Name: subcommands.ArgSkipApply,
Value: false,
Usage: "skip 'tofu apply', assume apply was already called",
DefaultText: "false",
},
&cli.BoolFlag{
Name: subcommands.ArgSkipCharts,
Value: false,
Usage: "skip 'helm install' for all charts, assume charts have already been installed for upstream and tester clusters",
DefaultText: "false",
},
&cli.BoolFlag{
Name: subcommands.ArgSkipRefresh,
Value: false,
Usage: "skip refresh phase for tofu resources, assume resources are refreshed and up-to-date",
DefaultText: "false",
},
},
},
Expand Down
9 changes: 6 additions & 3 deletions cmd/dartboard/subcommands/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,21 @@ limitations under the License.

package subcommands

import "github.com/urfave/cli/v2"
import cli "github.com/urfave/cli/v2"

func Apply(cli *cli.Context) error {
tf, _, err := prepare(cli)
if err != nil {
return err
}

if err = tf.PrintVersion(cli.Context); err != nil {
if err = tf.PrintVersion(); err != nil {
return err
}
if err = tf.Apply(cli.Context); err != nil {

skipRefresh := cli.Bool(ArgSkipRefresh)

if err = tf.Apply(skipRefresh); err != nil {
return err
}

Expand Down
Loading
Loading