Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9cc70db
implement Imported Cluster creation via golang, add Cluster state han…
git-ival May 11, 2025
146a8cb
WIP support provisioning clusters via dartboard, WIP support for usin…
git-ival May 11, 2025
241bc71
update state handling to utilize a map[string]*ClusterStatus to avoid…
git-ival May 12, 2025
a39a707
add missing wait.go file handling backoff logic
git-ival May 12, 2025
44ccb68
change post-batch sleep logic, update some log messages
git-ival May 12, 2025
72d4fe0
move update channels to separate struct that can be passed as needed,…
git-ival May 12, 2025
2c3f33a
add TODO for destroy command
git-ival May 12, 2025
0406a1d
Moved batch Cluster registration logic into a separate file, added a …
git-ival May 12, 2025
91938d1
reduce size of ClusterStatus struct, genericize batchrunner logic to …
git-ival May 13, 2025
78d9c9a
support 'naturally' sorting slices by string, cleanup parameters and …
git-ival May 13, 2025
3b88e39
replace pod status function from shepherd with custom action
git-ival May 13, 2025
7c5188b
replace pod status function from shepherd with custom action
git-ival May 13, 2025
dc22bf5
WIP custom cluster registration flow
git-ival May 14, 2025
851686e
update shepherd dep
git-ival May 15, 2025
d81ea83
fix clusters.go assert
git-ival May 15, 2025
82d25b6
add import nicknames to fix golangci-lint
git-ival May 15, 2025
136cd75
fix various golangci-lint errors and warnings
git-ival May 15, 2025
9baf89e
add new stages, various func updates
git-ival May 16, 2025
71156b4
WIP, updates to various interal/dart and internal/tofu types
git-ival May 16, 2025
277ad90
updates to harvester modules, add node_templates
git-ival May 16, 2025
5f176dc
add missing dart types
git-ival May 16, 2025
1f4f208
update tofu format parsing
git-ival May 19, 2025
711d027
WIP massive overhauls to dart types, added in internal/harvester for …
git-ival May 19, 2025
6a2cbc9
update deps
git-ival May 19, 2025
6be2594
WIP modifications to type constraints, VM handling logic
git-ival May 19, 2025
c0214b4
update test_env to support node-only creation for custom clusters
git-ival May 19, 2025
6ae5fc7
update test_env to support node-only creation for custom clusters
git-ival May 19, 2025
063dcdd
WIP update types, custom cluster prov support
git-ival May 19, 2025
d1c46c9
update deps
git-ival May 19, 2025
9aceac4
WIP custom cluster flow, SO CLOSE
git-ival May 20, 2025
3525d6d
fix get cluster
git-ival May 20, 2025
e3fce0c
cleanup some comments
git-ival May 20, 2025
ee6b35c
ignore tester cluster deploys if no tester, fix custom cluster batchi…
git-ival May 20, 2025
c0386e6
update image dataresource logic, do not use datasource if image_id is…
git-ival May 20, 2025
c3bcea3
remove lots of unused stuff
git-ival May 20, 2025
8dfc180
ensure tunnels are not created by default, added bool flag to control…
git-ival May 21, 2025
74b5a8f
removed unused 'node_templates' var
git-ival May 21, 2025
9232302
update upstream and tester clusters with new create_tunnels input
git-ival May 22, 2025
24d9043
delay Stage.Create update until after cluster is found post-create ca…
git-ival May 22, 2025
a415bca
add new skip-charts flag for so that repeated can bypass chart reins…
git-ival May 22, 2025
8b5f2b3
replace shepherd deps with upstream
git-ival May 27, 2025
2f0f796
fix upstream cluster URL output when tunnels are not in use
git-ival May 28, 2025
396eb4c
add skip-refresh dartboard argument for tofu.Apply()
git-ival May 31, 2025
a9f959f
replace image_id with node_module_variables field
git-ival Jun 3, 2025
053f2d7
fix ssh tunnel enable/disable
git-ival Jul 9, 2025
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
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