Commit Graph

25 Commits

Author SHA1 Message Date
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
iwilltry42
7073a8fad7 migrate to module rancher/k3d/v5 2021-09-07 08:58:57 +02:00
iwilltry42
17dc4b7b4d fix e2e makefile target 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
iwilltry42
737ae9570c
Merge branch 'main' into main-v5 2021-08-24 07:34:39 +02:00
iwilltry42
6a58a9f57d
fix: trim 'v' prefix when getting helper image tag version due to the new semver release pipeline 2021-08-24 07:34:19 +02:00
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus (closes #583) (#699, @Shanduur) 2021-08-18 12:22:44 +02:00
iwilltry42
6c94d7db3d
overall/license: update to year range -2021 2021-05-21 13:07:59 +02:00
Thorsten Klein
185ffcd34f
[Enhancement] clusterDelete: proper node and network handling (#437)
This comes with several fixes/improvements

- only consider containers that have the default object label (app=k3d)
- handle network deletion
  - check if there are other k3d containers connected
  - if there are only registries, disconnect them
  - if there are non-registry nodes, leave everything as it is
  - if there are any containers connected, that are not automatically
  disconnected, log a warning and continue
2021-01-07 11:32:30 +01:00
iwilltry42
ec20a1e549
update default versions 2021-01-05 08:44:24 +01:00
Thorsten Klein
778f80d8fd
[FEATURE] Config File (#351) 2020-12-04 16:02:37 +01:00
iwilltry42
3b52e0407e
fix hardcoded fallback version of k3s to v1.19.4-k3s1 2020-11-25 07:35:19 +01:00
iwilltry42
26053d5ab6
add helperversionoverride 2020-07-13 11:58:42 +02:00
iwilltry42
d2deb02c3d
version: allow overriding helper image version from env var 2020-06-18 14:40:46 +02:00
iwilltry42
eac293a263
Overall: helper container images should always use same tag as CLI or fallback to latest 2020-06-18 09:01:04 +02:00
iwilltry42
db03084e5d
fix tests and add Dockerfile 2020-01-27 16:22:57 +01: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
52b23adec9 v1.0.0 as default version 2019-12-05 09:15:29 +01:00
iwilltry42
6b148ae755 add version command 2019-10-16 14:46:02 +02:00
Chris Carty
e82e95a23d update default K3sVersion to use latest tag 2019-05-03 22:04:39 -04:00
Chris Carty
f9afbc5b9a updated location of K3sVersion 2019-05-02 22:39:37 -04:00
Chris Carty
508f9715ee added default version 2019-05-02 22:11:50 -04:00
iwilltry42
6fdc1e4a70 automatically get latest k3s version tag at build time 2019-04-23 11:12:42 +02:00
Rishabh Gupta
29fced4ef7 Added version tags, separated command implementaitons, added wait and timeout
Signed-off-by: Rishabh Gupta <r.g.gupta@outlook.com>
2019-04-09 13:47:47 +05:30