Sebastiaan van Stijn
1126d853a8
driver/kubernetes/context: don't use ResolveDefaultContext in test
...
The ResolveDefaultContext function is only used internally by the CLI,
and has no known external users, except for this test in buildx. It was
exported in [cli@f820766] to allow (unit) testing, but did not document
that it was only exported for this purpose.
This patch rewrites the test to allow deprecating / removing the function
in the CLI.
[cli@f820766]: https://github.com/docker/cli/commit/f820766f6ac57188d96c9ca377f2b4627e90da28
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-10-01 11:31:09 +02:00
Sebastiaan van Stijn
3f725bf4d8
driver/kubernetes: remove uses of pkg/homedir
...
Create a local fork to keep the existing behavior.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-07-21 14:46:45 +02:00
Tonis Tiigi
d5d3d3d502
lint: apply x/tools/modernize fixes
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2025-03-07 16:37:24 -08:00
Tonis Tiigi
d2c512a95b
lint: enable testifylint
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-11-20 10:53:11 -08:00
CrazyMax
945e774a02
k8s: fix concurrent kubeconfig access when loading nodes
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-03 16:16:24 +02:00
Dmitry Makovey
b986ce566b
Add Bearer token
...
Signed-off-by: Dmitry Makovey <dmakovey@gitlab.com >
2023-06-16 14:55:09 -06:00
Elran Shefer
29b427ce13
kubernetes driver: add support for proxy-url
...
Signed-off-by: Elran Shefer <elran.shefer@velocity.tech >
2023-05-10 08:36:39 +03:00
CrazyMax
af24d72dd8
kubernetes: fix context load test
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-05 17:13:03 +01:00
CrazyMax
3f6a5ab6ba
kubernetes: move context config logic to its own pkg
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-11-17 00:34:42 +01:00
Sebastiaan van Stijn
4983b98005
vendor: v20.10.3-0.20220803220330-418ca3b4d46f (v22.06.0-dev)
...
full diff: https://github.com/docker/cli/compare/f1615facb1ca...418ca3b4d46fed752d771cf96483664a631d8197
relevant changes;
- cli/command: remove unused args from ResolveDefaultContext()
- consider empty DOCKER_HOST and DOCKER_CONTEXT env-vars equivalent to "not set"
- cli: set timeout connection ping on sockets as well
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-08-04 00:45:51 +02:00
Sebastiaan van Stijn
fc7ba75fd7
Remove uses of deprecated io/ioutil
...
The package has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-03-10 01:46:06 +01:00
CrazyMax
971b5d2b73
vendor: update docker/cli to 8667ccd
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-27 00:35:39 +01:00