Commit Graph

70 Commits

Author SHA1 Message Date
iwilltry42
09686f121d
add test script for connecting to remote docker servers 2021-10-29 14:40:54 +02:00
iwilltry42
7073a8fad7 migrate to module rancher/k3d/v5 2021-09-07 08:58:57 +02:00
iwilltry42
5aa1edfb73
update to go1.17 and update direct dependencies 2021-09-07 08:57:05 +02:00
Thorsten Klein
212979d0bb
[Enhancement] DNS Injection (#718)
- remove`--no-hostip` flag and the related `disableHostIPInjection` config option
- inject host IP on every cluster startup (except when hostnetwork is chosen)(/etc/hosts + CoreDNS)
- inject host entries for every cluster network member container into the CoreDNS configmap
2021-08-24 10:18:53 +02:00
iwilltry42
581378feb0
upgrade cobra to prepare completions upgrade 2021-07-20 12:40:55 +02:00
iwilltry42
82cdcac8bd
bump deps 2021-07-20 12:39:40 +02:00
iwilltry42
79790d1c30
Merge branch 'main' of github.com:developer-guy/k3d into developer-guy-main 2021-07-13 12:38:45 +02:00
iwilltry42
6f1f58a2c2
fix missing merge conflict resolutions 2021-07-09 10:48:28 +02:00
Thorsten Klein
2092ceaaa9
[FEATURE] add ability to add ports to an existing loadbalancer (#615) 2021-07-09 10:48:25 +02:00
Thorsten Klein
77aa76d7f2
[FEATURE] add ability to add ports to an existing loadbalancer (#615) 2021-07-09 10:46:16 +02:00
Thorsten Klein
eff262b3c7
[FIX] deps: switch back to upstream viper (StringArray fix) (#655) 2021-06-28 13:51:43 +02:00
Batuhan Apaydın
f59216c2e0 docker context support
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2021-05-11 12:42:51 +03:00
iwilltry42
6499704223
bump deps 2021-04-30 16:31:06 +02:00
Thorsten Klein
24cf263c73
[FEATURE] IPAM via subnet flag (#560) 2021-04-20 07:39:51 +02:00
iwilltry42
45d451a661
[hotfix] use viper fork with fixed stringArray handling from https://github.com/spf13/viper/pull/398 2021-03-30 15:26:37 +02:00
Konrad Malik
e495fe83a8
[FEATURE] Memory Limits (#494, @konradmalik) 2021-03-29 17:52:15 +02:00
iwilltry42
6f5f4bb924
Remove containerd runtime implementation
- unused
- incomplete
- caused issues building on Windows due to dependencies
2021-03-10 17:14:38 +01:00
iwilltry42
c688391549
vendor update including kubernetes, docker, containerd, etc. 2021-03-04 15:34:25 +01:00
iwilltry42
f53e8bd718
Go 1.16 2021-03-04 14:50:16 +01:00
iwilltry42
8b0174bed2
runtimes/docker/getgatewayip: properly catch non-existent ipam config 2021-03-02 18:38:55 +01:00
Erik Kristensen
63d54842c0
[Feature] Support docker over ssh (#324, @ekristen & @inercia) 2021-02-04 17:54:49 +01:00
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema (#472) 2021-02-03 11:31:21 +01:00
iwilltry42
ff7d1bcc57
update docker dependency to fix cross-compilation issues 2020-12-09 18:10:09 +01:00
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation (#334) 2020-12-09 15:59:20 +01:00
Thorsten Klein
778f80d8fd
[FEATURE] Config File (#351) 2020-12-04 16:02:37 +01:00
iwilltry42
ec79db4ef5
go v1.15 2020-12-04 14:10:33 +01:00
iwilltry42
d7b25ac6ab
v3 -> v4 2020-12-04 13:45:57 +01:00
Alvaro
a93932e5b6
[Feature] Options for formatted output of cluster list (#416, @inercia))
This adds a `--ouput` flag to `cluster list` for dumping the
list of clusters as a JSON or YAML document.

Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-12-03 13:34:33 +01:00
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