64 Commits

Author SHA1 Message Date
iwilltry42
76d90478f5
Go Module: use v3 for go module compatibility 2020-06-18 07:58:36 +02:00
iwilltry42
3cd1a05b91
Maintenance: move all labels to constants and fix log formatting issues 2020-06-12 19:00:01 +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
dbb24f4e1c
loadImages: accept mixed runtimeImage and tarball args
- loads images from tarballs and runtime
- only tries to do something if respective lists are not empty
- only creates tools node if it's not present yet
- uses new tools image to remove tarballs after process
2020-06-04 11:55:40 +02:00
iwilltry42
933ac38059
loadImages: loop over all input images 2020-06-04 09:50:45 +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
ae9be0603d
volumes: only warn about possible issues and don't error out
- allows for specifying more possibilities
2020-05-29 14:26:18 +02:00
iwilltry42
16f01f5fc9
runtime/getNode: do not return nil
- fixes: #253
2020-05-29 13:34:11 +02:00
iwilltry42
4710f65b85
Merge branch 'master' of github.com:rancher/k3d into enhancement/use-context 2020-05-29 11:42:47 +02:00
iwilltry42
99f5a6884a
getNodeLogs: accept time.Time parameter
- fixes startCluster's --wait/--timeout functionality
--> now doesn't check all the logs (e.g. from previous run)
----> no more false positives when checking for a specifc log message
only in the current run
2020-05-29 11:21:12 +02:00
iwilltry42
06f543518c
fix: re-add support for named volumes used with --volume flag 2020-05-28 11:01:25 +02:00
iwilltry42
7817054801
do not use context pointer 2020-05-26 17:15:20 +02:00
iwilltry42
f6c312256e
add names to error messages 2020-05-26 15:12:34 +02:00
iwilltry42
ba431c6235
Merge branch 'master' of github.com:rancher/k3d into enhancement/use-context 2020-05-26 14:49:45 +02:00
iwilltry42
434cf8e91d
overall: pass context from top to bottom 2020-05-26 14:47:21 +02:00
iwilltry42
21fd427d8a
maintenance: cleanup debug logs 2020-05-26 14:14:55 +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
da8adf5469
createNode: update nginx masterlb with new master node
- if --role=master, update nginx config and reload it
2020-05-09 15:11:06 +02:00
iwilltry42
7744c52ec7
overall: always defer close docker client connections 2020-04-27 18:27:33 +02:00
iwilltry42
3b77ecd6dd
getLogs: return error if container is not in running state to avoid long unnecessary wait 2020-04-26 17:17:14 +02:00
iwilltry42
b32e116a67
add comment 2020-04-24 15:00:04 +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
c51ec003bd
createCluster/network: add basic support for hostnetwork mode in docker 2020-04-16 10:07:19 +02:00
iwilltry42
f2c8e0cf03
docker/create/node: replace goto with for loop 2020-04-14 19:51:24 +02:00
iwilltry42
9e59f6ed36
network: only filter for name when checking for existing networks and do not use aliases in endpointsconfig 2020-04-11 15:53:40 +02:00
iwilltry42
bc49f197d9
cleanup and prepare for push to rancher/k3d 2020-01-05 21:16:31 +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
11b937a910 implement load images command 2019-12-04 14:54:58 +01:00
iwilltry42
e6d7726ffb add image volume 2019-12-04 08:19:42 +01:00
iwilltry42
ff98343420 extend 2019-11-20 22:52:48 +01:00
iwilltry42
536b543cc2 implement get nodes 2019-11-13 14:58:59 +01:00
iwilltry42
098fe0803c implement start/stop for nodes and clusters 2019-11-13 13:43:56 +01:00
iwilltry42
100ba3db2b add cluster network deletion 2019-11-11 11:24:09 +01:00
iwilltry42
e5c9f8e910 fix runtimes 2019-11-11 11:16:51 +01:00
iwilltry42
5851da3ef3 start coupling network to clusters 2019-11-11 11:14:54 +01:00
iwilltry42
7827840e64 start apiport stuff 2019-11-08 18:12:23 +01:00
iwilltry42
7098be1693 initial version of --port flag 2019-11-08 14:21:21 +01:00
iwilltry42
a14854502e allow setting api-port 2019-10-24 15:31:29 +02:00
iwilltry42
24a0bda247 init get kubeconfig 2019-10-24 14:57:15 +02:00
iwilltry42
8450604182 start implementing getkubeconfig 2019-10-17 07:59:56 +02:00
iwilltry42
acebc511ef start get kubeconfig 2019-10-16 16:52:46 +02:00
iwilltry42
7063d62508 initial implementation of 'get clusters' 2019-10-15 18:57:54 +02:00
iwilltry42
30a98cce38 create cluster network if not present 2019-10-10 15:44:16 +02:00
iwilltry42
eb9d14fe47 node network 2019-10-10 15:12:54 +02:00
iwilltry42
84cdfac7cb introduce node roles 2019-10-10 15:02:56 +02:00
iwilltry42
cc682427b8 pull image before creation if not exists 2019-10-10 13:36:11 +02:00
iwilltry42
03eaba037f restructure docker runtime pkg 2019-10-10 12:30:48 +02:00
iwilltry42
9323179a3c implement first test 2019-10-10 12:01:53 +02:00
iwilltry42
1200a2a500 further translation improvement and first test 2019-10-09 20:38:39 +02:00
iwilltry42
d4060bc4be improve k3d -> docker translation 2019-10-09 19:47:58 +02:00