Commit Graph

735 Commits

Author SHA1 Message Date
Jonas Dellinger
e5660f4b1f
[Enhancement] CI/CD: AUR Deploy Script (#391, thanks @JohnnyCrazy)
* Added script for automatic AUR release & added steps in .drone.yml

* Don't run AUR release before actual release

* Switch to GitHub Actions

* Try the 'container' setting and checkout repo first

* Readable deploy-aur.sh script, final draft

* Revert changes in .drone.yml

* GITHUB_REF needs to be stripped for the pre-release script

* Introduce COMMIT_REF on top of script, so it can be modified for both type of releases

* Adjust names to new k3d AUR account
2020-11-03 19:07:02 +01:00
iwilltry42
8612b76577
imageImport: exit with non-zero exit code on failure
... if at least one step in the importing process fails, e.g. failed import for at least one cluster or one image

Fixes #393
2020-11-03 18:51:43 +01:00
iwilltry42
b5eeda74d6
execInNode: check if we have a response before trying to access the reader in case of error to avoid nil pointer exceptions 2020-10-26 13:39:29 +01:00
Thorsten Klein
6032be50c0
Merge pull request #383 from rancher/all-contributors/add-toonsevrin
docs: add toonsevrin as a contributor
2020-10-24 14:49:28 +02:00
allcontributors[bot]
5990c326ba
docs: update .all-contributorsrc [skip ci] 2020-10-24 12:49:08 +00:00
allcontributors[bot]
8d4b9bd3ed
docs: update README.md [skip ci] 2020-10-24 12:49:07 +00:00
iwilltry42
27a133a8c3
cicd: build and push binary-only and dind images containing k3d 2020-10-21 20:29:09 +02:00
Thorsten Klein
cdd672a523
Merge pull request #382 from rancher/all-contributors/add-lionelnicolas
docs: add lionelnicolas as a contributor
2020-10-20 15:09:15 +02:00
allcontributors[bot]
fcf76ff889
docs: update .all-contributorsrc [skip ci] 2020-10-20 13:03:24 +00:00
allcontributors[bot]
ed7e1b14b5
docs: update README.md [skip ci] 2020-10-20 13:03:23 +00:00
Thorsten Klein
211c937fee
Merge pull request #378 from lionelnicolas/feature/set-custom-container-labels
Feature: add ability to set container labels on nodes using --label/-l (thanks @lionelnicolas)
2020-10-20 09:45:00 +02:00
iwilltry42
a385241c77
clusterDelete: no error if no cluster was found (fixes #379) 2020-10-19 23:29:18 +02:00
iwilltry42
425b9b709e
execInNode: do not read logreader too early, because that clears it for other read processes 2020-10-19 14:36:49 +02:00
iwilltry42
b69b874098
clusterCreate/injectHostIP: use 'busybox xargs' directly instead of relying on 'xargs' link, which is missing in some images 2020-10-19 13:54:29 +02:00
iwilltry42
5cea7eae0a
tests/e2e: more extensive k3s version tests 2020-10-19 13:53:34 +02:00
iwilltry42
d097caf7d3
clusterCreate: move inject hostIP to separate func 2020-10-19 12:37:27 +02:00
Lionel Nicolas
ffe8c9697c add ability to set container labels on nodes using --label/-l
This supports node filters as is already done for '--volume' and '--port'.
2020-10-16 20:46:04 -04:00
iwilltry42
dcef0b1946
runtime/docker/node: logreader must not be nil
Check for nil when trying to return exec process log reader.
Fixes #377
2020-10-15 07:28:30 +02:00
iwilltry42
9ea71d8c88
cmd: upgrade cobra dep to v1.1.0 with fixed zsh completion 2020-10-15 07:25:08 +02:00
iwilltry42
688c8d1ef6
tests/e2e: update k3s versions 2020-10-10 17:39:00 +02:00
iwilltry42
f0ad42ce8d
clusterCreate: simple change to serialize joining server nodes 2020-10-10 17:11:29 +02:00
iwilltry42
584bf71592
createCluster: wait for 'k3s is up and running' instead of 'Running kubelet' to ensure that the API-Server is up 2020-10-08 20:58:20 +02:00
iwilltry42
ca23c6d898
clusterCreate/network: only use the exact chosen network
Before, we just looked up the name of the docker network, causing docker
to do some sort of relaxed matching (prefix?) which could cause k3d to
choose the first matching network instead of the exact match.
Now we're enforcing exact Regex matching to prevent this.
Fixes #374
2020-10-08 09:31:59 +02:00
Thorsten Klein
eb35667705
Merge pull request #372 from rancher/all-contributors/add-louiznk
docs: add louiznk as a contributor
2020-10-07 15:45:29 +02:00
Thorsten Klein
80da6b2919
Merge pull request #367 from louiznk/docs/replace-flannel-with-calico
docs: add guide on using calico instead of flannel (thanks @louiznk)
2020-10-07 15:45:09 +02:00
allcontributors[bot]
2e4b7792e8
docs: update .all-contributorsrc [skip ci] 2020-10-07 11:46:28 +00:00
allcontributors[bot]
728bd73b0b
docs: update README.md [skip ci] 2020-10-07 11:46:27 +00:00
Louis Tournayre
5ecd1208f4 docs: show the calico pods 2020-10-07 13:21:57 +02:00
iwilltry42
bfbd2873d9
clusterCreate: add extra logs for host record injection 2020-10-07 12:03:26 +02:00
iwilltry42
c27410ea32
createCluster: Fix getHostIP edge cases
- sometimes, the exec process returns a non-zero exit code but still has
logs which are helpful for us
- sometimes everything fails and we should gracefully handle this
2020-10-07 11:02:46 +02:00
iwilltry42
11cc797922
overall/logging: new trace log level
- new root flag '--trace' with precedence over '--verbose'
- some new trace logs
- migrated some debug logs to trace logs to reduce debug verbosity
2020-10-07 08:58:03 +02:00
iwilltry42
da0b23331f
clusterCreate: less breaking hostIP injection
- only print a warning, if hostIP couldn't be fetched
- even if the exec returns a non-zero exit code, still try to read the
logs
2020-10-07 08:29:09 +02:00
Thorsten Klein
656d1aa2a9
Merge pull request #370 from rancher/all-contributors/add-zeerorg
docs: add zeerorg as a contributor
2020-10-06 16:50:40 +02:00
iwilltry42
786baa2b31
update Contributing.md 2020-10-06 16:50:11 +02:00
allcontributors[bot]
13f7090ec5
docs: update .all-contributorsrc [skip ci] 2020-10-06 14:47:11 +00:00
allcontributors[bot]
5e447fb8bd
docs: update README.md [skip ci] 2020-10-06 14:47:10 +00:00
iwilltry42
3bb047501b
docs: restructure 2020-10-06 16:45:30 +02:00
Thorsten Klein
5983972ab5
Merge pull request #369 from rancher/all-contributors/add-iwilltry42
docs: add iwilltry42 as a contributor
2020-10-06 16:43:54 +02:00
allcontributors[bot]
456ac56978
docs: create .all-contributorsrc [skip ci] 2020-10-06 14:42:35 +00:00
allcontributors[bot]
b933d79c13
docs: update README.md [skip ci] 2020-10-06 14:42:34 +00:00
Thorsten Klein
8d52da0b50
Merge pull request #368 from rancher/contributing
Let's attract Contributors!
2020-10-06 16:39:52 +02:00
iwilltry42
5c1e45969d
misc: add contributing guide, CoC and all-contributors 2020-10-06 16:37:45 +02:00
Louis Tournayre
53af379076 docs: use the auto deploy directory instead of the kubectl apply 2020-10-06 14:23:49 +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
Thorsten Klein
54b4123fc4
Merge pull request #360 from rancher/enhancement/host-ip
[Enhancement] Expose Host IP to services inside the cluster
2020-10-06 12:26:50 +02:00
Louis Tournayre
e4488e2b7b docs: add documentation and descriptor for using calico instead of flannel 2020-10-05 22:15:42 +02:00
iwilltry42
c47f7b731d
tests/e2e: test host.k3d.internal DNS entry 2020-10-05 21:44:11 +02:00
iwilltry42
a51063966f
Merge branch 'main' of github.com:rancher/k3d into enhancement/host-ip 2020-10-05 15:55:15 +02:00
iwilltry42
d420ccf1f7
tests/e2e: use imported image 2020-10-05 15:53:41 +02:00