Thorsten Klein
d0158c97c6
clusterCreate: add docker's --gpus flag ( #395 )
2020-11-03 20:12:52 +01:00
iwilltry42
9ea71d8c88
cmd: upgrade cobra dep to v1.1.0 with fixed zsh completion
2020-10-15 07:25:08 +02:00
iwilltry42
d75672887e
mod: use upstream cobra again
2020-06-29 22:21:45 +02:00
iwilltry42
76d90478f5
Go Module: use v3 for go module compatibility
2020-06-18 07:58:36 +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
c061104b53
createNode: copy as many details as possible from existing
...
- we now use the full containerJSON details when getting a node
- we now use as many details as possible to copy k3d settings from an
existing node when adding a new node to a running cluster
2020-05-11 08:42:44 +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
iwilltry42
9464651f1a
fix go.mod
2020-04-20 20:10:43 +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
1b70008457
use go 1.14
2020-03-29 18:32:44 +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
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
24a0bda247
init get kubeconfig
2019-10-24 14:57:15 +02:00
iwilltry42
ecfe035895
getkubeconfig
2019-10-24 14:01:46 +02: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
43eb626b0c
specify role, image and labels
2019-09-30 12:33:17 +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
7eec5b061b
use docker sdk wherever possible
2019-04-15 15:48:43 +02:00
iwilltry42
866b98c429
rename and add authors
2019-04-12 07:36:59 +02:00
iwilltry42
4e477d3262
rename to k3d
2019-04-10 20:10:36 +02: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