Commit Graph

24 Commits

Author SHA1 Message Date
iwilltry42
374d9d16d7
completion: NodeRoles for '--role' flag on 'create node' 2020-06-05 14:12:08 +02:00
iwilltry42
91425d3738
completion: AvailableClusters for '--cluster' flag in createNode and loadImage 2020-06-05 14:00:27 +02:00
iwilltry42
42ee62e552
createNode: add --wait and --timeout flags
- new struct: createNodeOpts for wait and timeout values
- new commands for creating/adding multiple nodes which then wait for
all nodes to be up, if specified
- tests/e2e: new test for adding a master node
2020-06-03 14:55:50 +02:00
iwilltry42
477fe8b395
Merge branch 'master' of github.com:rancher/k3d into enhancement/use-context 2020-06-02 19:26:20 +02:00
iwilltry42
cf2c839b27
createNode: use default role label and cmd...
...if existing node does not match target role
Fixes #254
2020-05-29 14:03:51 +02:00
iwilltry42
0d2c22455d
Overall: use context.Context in top-level exported functions
- package cluster: use context.Context as first function param in every
exported function
- package cmd: pass cmd.Context() to calls to package cluster exported
functions
2020-05-18 12:57:59 +02:00
iwilltry42
05f2fc1f66
docs: add more command information 2020-04-27 17:30:51 +02:00
iwilltry42
5121ef80a5
create/start/stop cluster: fix how Master-LoadBalancer is treated
- always include the k3d.role label and use LoadBalancerRole for
masterlb
- start masterlb last when starting a stopped cluster so it won't fail
2020-04-22 13:18:26 +02:00
iwilltry42
b1d71dfa0f
create/node: default clusterName for --cluster flag 2020-04-14 19:28:07 +02:00
iwilltry42
7005f8182a
validate clustername on create and use global runtime variable 2020-03-29 19:39:41 +02:00
iwilltry42
bc49f197d9
cleanup and prepare for push to rancher/k3d 2020-01-05 21:16:31 +01:00
iwilltry42
f571ff3143
getk3sversion 2020-01-02 14:32:25 +01:00
iwilltry42
644b369b60
switch from K3S_CLUSTER_SECRET to K3S_TOKEN and use exact matching to get node containers by name and make --cluster flag required when creating a new node 2019-12-19 11:50:25 +01:00
iwilltry42
fd4b803681 start fixing createNode 2019-12-12 19:14:26 +01:00
iwilltry42
8aad61a39a improve usage texts 2019-12-12 08:20:24 +01:00
iwilltry42
84cdfac7cb introduce node roles 2019-10-10 15:02:56 +02:00
iwilltry42
7583340d23 create cluster 2019-09-30 13:18:42 +02:00
iwilltry42
43eb626b0c specify role, image and labels 2019-09-30 12:33:17 +02:00
iwilltry42
cd4223e4ed create multiple nodes at once 2019-09-30 09:28:00 +02:00
iwilltry42
0278388f34 add command parsing to crete node 2019-09-28 17:11:58 +02:00
iwilltry42
8eb9832298 delete cluster 2019-09-27 16:34:49 +02:00
iwilltry42
8c965a9f16 add missing errchecks 2019-09-26 18:19:34 +02:00
iwilltry42
24ba46fc2a initial test to create container 2019-09-24 21:19:03 +02:00
iwilltry42
95c28f298c add subcommands 2019-09-03 14:04:32 +02:00