58 Commits

Author SHA1 Message Date
iwilltry42
a2b3e9ddcf
tests/e2e: update tested k3s versions 2021-05-27 12:04:43 +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
iwilltry42
ad9a128703
tests/e2e: add memory limit test 2021-03-30 12:55:40 +02:00
iwilltry42
0225fab8e8
tests/e2e/k3s-versions: skip multi-server-start-stop test for k3s versions that won't work with it (dqlite) 2021-02-05 19:07:13 +01:00
iwilltry42
ac96c9c448
simplify log outputs and increase timeout for tests 2021-02-05 16:08:32 +01:00
iwilltry42
98a48a0fc6
enable buildkit and timestamped logging 2021-02-04 19:33:19 +01:00
iwilltry42
58cf15b0e5
tests/e2e: add step information and clean resources after every step 2021-02-04 19:07:37 +01:00
iwilltry42
504fd3ad31
run multi-server e2e tests for multiple k3s versions 2021-02-04 19:07:37 +01:00
iwilltry42
7966ade1d9
tests/e2e: add multi-server start stop scenario 2021-02-04 19:07:35 +01:00
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema (#472) 2021-02-03 11:31:21 +01:00
iwilltry42
8f7d820081
fix order of interpreting different registry inputs 2021-01-18 20:20:13 +01:00
iwilltry42
064f1071de
allow reading embedded registries.yaml from SimpleConfig file and add a test case 2021-01-18 16:44:42 +01:00
iwilltry42
267e520fce
registry: basic merge of existing registry with generated registry config 2021-01-18 15:35:57 +01:00
iwilltry42
d17a2aefa9
registry: only warn, if configmap couldn't be created in any node, as one is enough. 2021-01-14 09:49:30 +01:00
iwilltry42
680a6974c6
tests/e2e: add E2E_INCLUDE and rename E2E_SKIP to E2E_EXCLUDE 2021-01-14 09:01:24 +01:00
Thorsten Klein
4dfb62ebff
[Feature] add LocalRegistryHostingV1 from KEP-1755 (#441) 2021-01-12 09:05:58 +01:00
iwilltry42
4590ac57e2
tests/e2e: allow overriding helper image tag for e2e tests to avoid building 2020-12-11 16:24:15 +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
Thorsten Klein
0f15ca34d0
[Fix] Allow literal @ in flags that have nodefilters (#421)
- literal @s can now be escaped with a preceeding backslash
  - use case e.g. `--env HTTPS_PROXY=user:pass\@myproxy.com`
- if the last char before a non-literal @ (designating a following
nodefilter) is a backslash, then it can be escaped with another
backslash (no cascading escapes though)
2020-12-04 11:45:56 +01:00
iwilltry42
870b82c8d7
update checked k3s versions 2020-11-23 10:44:38 +01:00
iwilltry42
5cea7eae0a
tests/e2e: more extensive k3s version tests 2020-10-19 13:53:34 +02:00
iwilltry42
688c8d1ef6
tests/e2e: update k3s versions 2020-10-10 17:39:00 +02:00
iwilltry42
6708515125
tests/e2e: add wait time between exec tries 2020-10-06 12:50:46 +02:00
iwilltry42
dc725fcdbc
docs: add some missing flags and info on host.k3d.internal 2020-10-06 12:46:06 +02:00
iwilltry42
c47f7b731d
tests/e2e: test host.k3d.internal DNS entry 2020-10-05 21:44:11 +02:00
iwilltry42
d420ccf1f7
tests/e2e: use imported image 2020-10-05 15:53:41 +02:00
iwilltry42
66a63f654f
E2E: enable skipping multiple tests and improve log messages 2020-09-20 14:42:52 +02:00
iwilltry42
a578c32260
E2E: add extra tests and test different k3s versions 2020-09-19 09:11:30 +02:00
iwilltry42
ec3f10ec57
use server/agent instead of master/worker 2020-07-14 20:29:33 +02:00
iwilltry42
c83ac0afd4
fix merge leftovers 2020-07-14 15:46:44 +02:00
iwilltry42
84d6063e4b
Merge branch 'master' into enhancement/noun-verb-syntax 2020-07-14 15:31:12 +02:00
iwilltry42
59359073e4
adjust e2e tests to new syntax 2020-07-14 12:52:34 +02:00
iwilltry42
7325cc41c4
tests/e2e: update flags for 'get kubeconfig' 2020-06-22 08:15:35 +02:00
iwilltry42
c00f8952ba
getKubeconfig: write to new file by default 2020-06-18 17:44:11 +02:00
iwilltry42
7e775f009f
Tests/E2E: include heper image builds in e2e tests 2020-06-18 10:02:46 +02:00
Thorsten Klein
4272ad4fd8
[Enhancement] Improved CI with Drone (#278)
* Misc: cleanup and restructure Makefile

* Misc: use dind output target in Dockerfile

* tests/e2e: ensure that the docker runner is really up before continuing

* CI: add drone

* Misc: fix image tag for e2e in Makefile

* CI/drone: add build step, step conditionals and restrict to linux platform

* CI/drone: add docs pipeline

* Misc: allow setting e2e runner timeout via Makefile arg

* CI/drone: add target platform for docs pipeline

* CI: Goodbye travis

* Misc: add drone make target to run drone CI locally

* CI/drone: add basic pipelines for k3d-tools and k3d-proxy

* remove ref event trigger
2020-06-17 19:35:42 +02:00
iwilltry42
d6b5d4dbf5
createCluster: fallback to default api port if random allocation fails 2020-06-12 13:32:19 +02:00
Antoine
0862f11324
👌 replace k3d getk3stoken command by --token flag onto command k3d get cluster 2020-06-04 00:56:02 +02:00
iwilltry42
ad06e90e13 fix issues with context.Context and remove LOG_LEVEL=debug in e2e test 2020-06-04 00:49:12 +02:00
Antoine
6d9d5a0cc4
Add get k3stoken feature
Add new command verb `k3stoken` to `k3d get`
Populate cluster secret field
Add test for `k3d get k3stoken` command
Externalize validable flag `--all`, in anticipation to reuse into `getKubeConfig.go`
2020-06-04 00:49:12 +02:00
iwilltry42
b8886b86c4
get: allow multiple or no names for getCluster/getNodes
- no name: get all
- one or more name: get only named nodes/clusters
2020-06-03 15:51:21 +02:00
iwilltry42
42ee62e552
createNode: add --wait and --timeout flags
- new struct: createNodeOpts for wait and timeout values
- new commands for creating/adding multiple nodes which then wait for
all nodes to be up, if specified
- tests/e2e: new test for adding a master node
2020-06-03 14:55:50 +02:00
iwilltry42
ee8b34d9f6
createNode: do not copy '--cluster-init' when creating a new master node, as this will break the node 2020-06-03 13:40:13 +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
e98f96b4f4
tests/e2e: add E2E_SKIP env var to skip specific e2e tests, as test_multi_master tends to fail in travis 2020-05-11 12:31:16 +02:00
iwilltry42
813a8a98af
tests/e2e: add failure case for importing images 2020-04-23 11:53:34 +02:00
iwilltry42
d7e71e07d2
fix/loadImage: extract labels from master/worker nodes only
- imageVolume couldn't be determined before in some cases, because it
tried to extract the name from labels on the masterlb which doesn't have
them.
- now we're only trying get the label from master/worker nodes and this
also adds a failover solution
- also, we ignore non-worker/master nodes upon image import
2020-04-23 11:40:13 +02:00
iwilltry42
f9862be237
tests/e2e: Add a full lifecycle e2e test and restructure
- new full lifecycle test also tests stop/start functionality
- cleaned up a bit
2020-04-22 12:58:02 +02:00