Commit Graph

1116 Commits

Author SHA1 Message Date
iwilltry42
89d979287e
v5.0.3: changelog 2021-10-29 14:44:46 +02:00
iwilltry42
09686f121d
add test script for connecting to remote docker servers 2021-10-29 14:40:54 +02:00
蜻蜓特派员
1bcf802012
[Fix] Fix docker client creation by tls verify from env (#829) 2021-10-29 14:40:23 +02:00
iwilltry42
3a467b42c1
v5.0.2: changelog 2021-10-27 16:36:17 +02:00
Eng Zer Jun
5e5a35c67c
refactor: move from io/ioutil to io and os package (#827) 2021-10-27 15:52:37 +02:00
Thorsten Klein
f8f17caf78
[Cleanup] Types, ready-log-messages & closing connections (#818)
- new special internal role `initServer` used only to determine the correct ready-log-message
- ready-log-messages now looked up by role and new `Intent` type (cluster-create/cluster-start/node-create/node-start), as especially for the init server there are different log messages indicating that we can proceed with the next step
- moving types around:
	- K3s env vars now under .../types/k3s/env.go
	- defaults now under .../types/defaults.go
	- ...
- improved waiting for log messages
	- not checking the whole log again and again in a loop
	- follow log with a single reader (and retry in case we see a fatal error, meaning that the K3s container will restart -> backoff after 10 tries)
	- BREAKING: new `*runtimeTypes.NodeLogsOpts` parameter in GetNodeLogs
2021-10-27 12:56:04 +02:00
Maxim Eryomenko
407ced6405
chore(cmd): add subcommands in one call (#819) 2021-10-27 09:43:10 +02:00
Thorsten Klein
7113694ab5
[Enhancement] Edit CoreDNS ConfigMap on disk for more reliability (#814) 2021-10-22 15:07:01 +02:00
Harley Laue
376f0378af
[Docs] Clarify node create help text about cluster reference (#808) 2021-10-22 09:08:57 +02:00
iwilltry42
a4d573fc2c
fix: check temp file with env vars expanded instead of original config file to avoid validation failures 2021-10-21 21:28:31 +02:00
iwilltry42
6abb1fb20c
v5.0.1: changelog 2021-10-13 21:11:38 +02:00
Thorsten Klein
594e3ced3f
config: fix failing v1alpha2 -> v1alpha3 migration (#799)
- add validation as extra step after migration
- add missing json struct tags to new v1alpha3 config fields
- add unit tests
- add missing `omitempty` tags to configs to avoid (un-)marshalling issues
- drop `string` type for `time.Duration` type field in JSON Schema (doesn't work properly sometimes due to broken handling of time.Duration as per https://github.com/golang/go/issues/10275)
2021-10-13 21:05:35 +02:00
Thorsten Klein
12180ffdd5
[Fix] more resilient post-create cluster preparation (DNS) (#780) 2021-10-13 17:36:42 +02:00
John Poth
de2cda4396
[FIX] Add HostFromClusterNetwork from KEP-1755 (#754) 2021-10-13 17:30:00 +02:00
iwilltry42
33507fd19a
docs: fix missing update of k3s-server/agent-arg flag to k3s-arg + nodefilter (fixes #782) 2021-10-11 15:35:50 +02:00
iwilltry42
1e9c20e0a9
do not use logreader if it doesn't exist 2021-10-11 11:53:50 +02:00
Donovan Brown
7d4d63f18b
Fix typo (#784) 2021-10-11 10:31:04 +02:00
allcontributors[bot]
a897201914
docs: add benjaminjb as a contributor for code (#776)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-10-08 11:47:28 +02:00
Benjamin Blattberg
2040a458b1
[FIX] Prevent segmentation fault with --no-lb and --verbose/trace (#775) 2021-10-08 11:32:11 +02:00
iwilltry42
de5805640b
readme: fix missing linebreaks 2021-10-05 11:35:27 +02:00
Thorsten Klein
0b4c4d51aa
v5.0.0: Merge pull request #768 from rancher/main-v5 2021-10-05 11:11:41 +02:00
iwilltry42
8bdba73669
update changelog for v5 2021-10-05 11:03:10 +02:00
iwilltry42
5f2ea9aac0
speed up /etc/hosts injection 2021-10-05 10:55:41 +02:00
Thorsten Klein
53bdbec636
[Fix] k3d config migrate missing nodefilter migration (#767)
configMigrate: add missing migrations for nodefilters and fix perm of outputfile
2021-10-05 10:42:09 +02:00
iwilltry42
81a41bdab1
debug: add env var flag K3D_DEBUG_DISABLE_DOCKER_INIT to test k3s as pid 1 2021-10-01 19:01:19 +02:00
iwilltry42
d21882a01c
tools: use older alpine base image while building to avoid execution issues with make caused by https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2 (in DroneCI) 2021-09-30 15:30:46 +02:00
iwilltry42
2a2bee0e63
fix: not gathering env info on cluster start (+ fix ipam e2e test) 2021-09-30 14:59:27 +02:00
Thorsten Klein
67d8c8c84f
[Enhancement/Fix] Properly use env/runtime info and inject dns accordingly (#758)
- make use of environment and runtime info
- DfD: use host.docker.internal
- All other cases: use Docker network Gateway
- k3d-tools: based on alpine to have `getent` present
2021-09-23 12:41:30 +02:00
iwilltry42
f801e46e9e
fix --k3s-arg not applied from CLI due to wrong viper instance
- fixes #747
2021-09-20 09:21:59 +02:00
iwilltry42
acf9e65ef9
docs: update asciicast k3d demo 2021-09-17 22:12:20 +02:00
iwilltry42
a3d27e9c86
v5: update changelog 2021-09-17 21:19:34 +02:00
Thorsten Klein
3b9d8373e1
[Docs] v5 update (#740) 2021-09-17 20:41:57 +02:00
iwilltry42
bfe1efb1e6
docs: switch everything to v5 2021-09-08 19:19:13 +02:00
Thorsten Klein
7071129df8
[Enhancement] More powerful registry-create opt (#727)
- `--registry-create NAME[:HOST][:HOSTPORT]` changed from bool flag
- respective config added to config file
2021-09-08 19:09:23 +02:00
iwilltry42
149dfdb9ab
Merge branch 'main' into main-v5 2021-09-08 19:07:27 +02:00
iwilltry42
fdcdc4117b
ci/drone: remove docs references 2021-09-08 19:02:36 +02:00
Thorsten Klein
2a62eab3a2
docs: use mike and gh actions for versioned k3d.io (#731)
* docs: use mike for versioned k3d.io
* switch to ghactions for docs
2021-09-08 14:48:07 +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
iwilltry42
630788f1e7 clusterCreate: add --lb-config-override flag
- allow overriding k3d-proxy settings (workerProcesses,
defaultProxyTimeout)
- add new field to loadbalancer config and SimpleConfig structs
2021-09-07 08:23:46 +02:00
Thorsten Klein
7ba71ad66c
[Feature] CreateNode: add token and network flags and allow remote cluster (#734)
- `--cluster` flag parsed for `https://` prefix and node creation treated differently accordingly
- new `--network` string array flag to add the node to multiple networks (primary network when adding to a remote cluster)
- new `--token` flag to provide the cluster token
2021-09-07 07:31:18 +02:00
iwilltry42
91426eabd1 cmd: make config initialization more general
- move viper initialization from k3d config file to separate util
sub-package in cmd/
- use that new subpackage init function to leverage the config file in
`k3d cluster delete`
- cover that with an e2e test case
2021-09-06 17:44:38 +02:00
iwilltry42
78738058c8
fix regression on checking edac folder introduced by wrapping a nil error 2021-08-31 10:42:45 +02:00
iwilltry42
6f76f8ce5d
fix: delete k3d-tools node after gathering environment information, so it doesn't block an IP in a designated subnet 2021-08-31 10:10:40 +02:00
iwilltry42
17dc4b7b4d fix e2e makefile target 2021-08-31 09:33:39 +02:00
iwilltry42
6d45a15e05 fix/cluster: do not use the same nodestartopts value for all nodes 2021-08-31 09:33:39 +02:00
iwilltry42
9efe980789 overall: make error handling and error logs a bit more streamlined 2021-08-31 09:33:39 +02:00
Thorsten Klein
b4158a1dc1
[Enhancement] Network Magic (#721)
- before starting the cluster, gather environment info via tools node
- use hostIP/gatewayIP for DNS (iptables + resolv.conf updated in entrypoint script)
- revamp of custom entrypoint scripts
2021-08-30 14:59:12 +02:00
iwilltry42
7c635c29ab
Merge branch 'main' into main-v5 2021-08-30 12:35:02 +02:00
iwilltry42
bcc1d60db9
manifests: ensure that dind image has - separator 2021-08-30 12:34:11 +02:00