iwilltry42
f73fe36eb0
change/docs: copyright notice year
10 months ago
iwilltry42
93a67d712e
change: golangci-lint fix whitespaces
1 year ago
dan-ash
88c5f18792
Add support for ulimits ( #1264 )
1 year ago
Sunil Shivanand
16d400aa05
Support reading in registries-config via env ( #1199 )
...
Fixes https://github.com/k3d-io/k3d/issues/1198
2 years ago
Kamesh Sampath
1dc49a2856
add: ability to load configuration from stdin ( #1126 )
2 years ago
Sunghoon Kang
24bb5f4493
fix: print consistent json/yaml output ( #1094 )
2 years ago
Thorsten Klein
852df7786a
[Migration] search and replace rancher/k3d with k3d-io/k3d in most places ( #976 )
3 years ago
iwilltry42
e7ed1ebcd2
license: time range everywhere
3 years ago
Thorsten Klein
3b0e6990c4
license: - 2022 ( #943 )
3 years ago
iwilltry42
7710f33686
license: - 2022
3 years ago
Thorsten Klein
5a00a39323
[Feature] Volume Shortcuts and k3d-managed volumes ( #916 )
...
- volume-mount destination shortcuts, e.g. `k3s-storage`
- non-existing named volumes starting with `k3d-` created/handled by k3d
- removed unused volume validation logic in `cmd/util`
3 years ago
Thorsten Klein
25ec400c49
[Fix] only replace default api host with docker host ( #879 )
...
- move docker-machine lookup into general GetHost function
- only use GetHost result if API host is default (0.0.0.0) to not override user-provided value
- when looking up IP for host value (e.g. localhost), only use IPv4 to prevent errors
3 years ago
Eng Zer Jun
5e5a35c67c
refactor: move from io/ioutil to io and os package ( #827 )
3 years ago
iwilltry42
a4d573fc2c
fix: check temp file with env vars expanded instead of original config file to avoid validation failures
3 years ago
iwilltry42
7073a8fad7
migrate to module rancher/k3d/v5
3 years ago
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
3 years ago
iwilltry42
9efe980789
overall: make error handling and error logs a bit more streamlined
3 years ago
Mateusz Urbanek
917c19eae5
feat(logging): using new package containing logrus.Logger instead of global scope logrus ( closes #583 ) ( #699 , @Shanduur )
3 years ago
ejose19
bfead49c46
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
ejose19
1deb0aa64d
[Enhancement] Refactoring: normalize label flags (k3s node & runtime) ( #598 , @ejose19 )
3 years ago
iwilltry42
6c94d7db3d
overall/license: update to year range -2021
3 years ago
iwilltry42
8b0174bed2
runtimes/docker/getgatewayip: properly catch non-existent ipam config
4 years ago
markrexwinkel
e307b69dca
[Fix] Allow absolute paths for volumes on Windows ( #510 , @markrexwinkel )
4 years ago
Thorsten Klein
092f26a4e2
[FEATURE/FIX] Viper Configuration and JSON Schema ( #472 )
4 years ago
Alvaro
c6df1448ef
[Enhancement] Improved listings for nodes & registries ( #439 , @inercia )
4 years ago
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries ( #427 )
4 years ago
iwilltry42
621640c901
rename ExposedPort
4 years ago
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation ( #334 )
4 years ago
Thorsten Klein
778f80d8fd
[FEATURE] Config File ( #351 )
4 years ago
iwilltry42
d7b25ac6ab
v3 -> v4
4 years ago
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)
4 years ago
Thorsten Klein
a5d2910f29
[Feature] clusterCreate: add back --env/-e flag to inject environment variables ( #409 )
4 years ago
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'.
4 years ago
iwilltry42
972c004930
add entry for host.k3d.internal to /etc/hosts in the node containers
4 years ago
iwilltry42
fb0d09545b
plugin: finish handling and executing plugins
4 years ago
iwilltry42
a746e4f2db
init plugin system
4 years ago
iwilltry42
ec3f10ec57
use server/agent instead of master/worker
4 years ago
iwilltry42
b02c783130
adjust toplevel pkg functions to new syntax
4 years ago
iwilltry42
76d90478f5
Go Module: use v3 for go module compatibility
4 years ago
iwilltry42
d6b5d4dbf5
createCluster: fallback to default api port if random allocation fails
4 years ago
iwilltry42
3205cbac67
createCluster: ask OS/kernel for free port...
...
... instead of leaving this up to docker, since then we don't know about
it when creating the labels, etc. used e.g. for updating the kubeconfig with
the correct port
4 years ago
iwilltry42
711e1ed048
createCluster: use random hostPort for API-Port by default
...
- this makes it easier to create multiple clusters without having to
worry about choosing a different port every time
- This is for you @ibuildthecloud ;)
4 years ago
iwilltry42
374d9d16d7
completion: NodeRoles for '--role' flag on 'create node'
4 years ago
iwilltry42
45a7b2dd7d
completion: new ValidArgsAvailableNodes
...
- completion proposes list of existing nodes
- available for get/delete/start/stop node
4 years ago
iwilltry42
2e75b90ffb
completion/getCluster: move validargs function to util package
4 years ago
Antoine
0862f11324
👌 replace `k3d getk3stoken` command by `--token` flag onto command `k3d get cluster`
4 years ago
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`
4 years ago
iwilltry42
ae9be0603d
volumes: only warn about possible issues and don't error out
...
- allows for specifying more possibilities
4 years ago
iwilltry42
06f543518c
fix: re-add support for named volumes used with --volume flag
4 years ago
iwilltry42
dabec2f091
createCluster: fix loadblancer consideration
...
- issue #248 : nil pointer dereference because we're trying to access
non-existent loadblancer node
4 years ago