32 Commits

Author SHA1 Message Date
iwilltry42
8278e8d20b
mod: use upstream cobra again 2020-06-29 22:22:18 +02:00
iwilltry42
d75672887e
mod: use upstream cobra again 2020-06-29 22:21:45 +02:00
iwilltry42
3a962b3226
completion: use PR branch of cobra to fix completion for zsh 2020-06-05 08:24:03 +02:00
iwilltry42
ae84791cf4
deps: update modules 2020-06-04 15:04:14 +02:00
iwilltry42
f39a9513fd
dependencies: update docker dependencies to fix issues with failing windows builds introduced by the usage of the archive package 2020-06-04 15:03:18 +02:00
iwilltry42
48f8393a86
Merge branch 'master-v3' of ssh://github.com/rancher/k3d into feature/kubeconfig-modification 2020-04-22 08:14:20 +02:00
Jacob Weinstock
3548642cb3
Merge branch 'master-v3' into master-v3 2020-04-19 09:36:17 -06:00
Jacob Weinstock
fdd5e5a57a log to stdout or stderr depending on the log level 2020-04-19 15:32:40 +00:00
iwilltry42
2a76bba98b
getKubeconfig: modify kubeconfig as an object
Before this change, we simply did a search/replace on the
stringified kubeconfig blob.
Now we're parsing it into a kubeconfig struct and modify the fields
directly in a more controlled manner.
Here's what we change:
- server URL: based on the chosen APIHost and APIPort
- cluster name: default -> k3d-CLUSTERNAME
- user name: default -> admin@k3d-CLUSTERNAME
- context name: default -> admin@k3d-CLUSTERNAME
2020-04-16 11:42:57 +02:00
iwilltry42
1b7f5c5f78
createCluster/timeout: use context to handle cancellation
With the updated cobra depencendy, we're now passing a context
from the cmd to the called functions.
When creating a cluster, one can pass a Duration to the --timeout
flag, which will create a new context with a timeout.
In the two blocking functions, where we're waiting for the master nodes
(initializing master nodes and "normal" master nodes), we're now
checking for the context cancellation as well, which may be caused
by the timeout.
2020-04-15 11:52:22 +02:00
iwilltry42
f571ff3143
getk3sversion 2020-01-02 14:32:25 +01:00
iwilltry42
4929915717
add completion 2019-12-19 22:11:14 +01:00
iwilltry42
7c63c34609
init completion 2019-12-19 13:12:07 +01:00
iwilltry42
0a8eca31f5 update vendor 2019-12-05 09:09:17 +01:00
iwilltry42
84234e7a98 add proper k3d config dir and kubeconfig output path 2019-12-05 09:08:10 +01:00
iwilltry42
62501af7e9 prepare volume flag 2019-11-05 19:17:47 +01:00
iwilltry42
05c048ec43 tabular output for getClusters 2019-10-16 14:10:18 +02:00
iwilltry42
9323179a3c implement first test 2019-10-10 12:01:53 +02:00
iwilltry42
d4060bc4be improve k3d -> docker translation 2019-10-09 19:47:58 +02:00
iwilltry42
566e7bb854 start translation k3d -> docker 2019-10-08 22:11:15 +02:00
iwilltry42
2217048daf comment cleanup 2019-09-30 10:57:56 +02:00
iwilltry42
4a02c25857 update modules 2019-09-25 13:08:55 +02:00
iwilltry42
97a8081c59 init containerd 2019-09-25 13:08:27 +02:00
Thorsten Klein
a34bbc3ef7 try interface 2019-09-24 19:42:29 +02:00
Thorsten Klein
73efb98b32 start docker runtime 2019-09-06 14:45:16 +02:00
iwilltry42
e9a620caf3 add most important flags to create cluster 2019-09-03 15:17:36 +02:00
iwilltry42
bdcdbd817a init cobra 2019-09-03 12:04:02 +02:00
iwilltry42
205a521c81 go mod tidy 2019-07-30 10:36:49 +02:00
wxdao
c1263487a5 Upgrade docker sdk 2019-07-25 03:15:28 +00:00
iwilltry42
1f417ce948 enhanced list 2019-04-04 09:19:26 +02:00
iwilltry42
609be6c84c add state and fix issues 2019-04-03 09:13:09 +02:00
iwilltry42
3d79811839 initial version 2019-04-02 14:36:13 +02:00