iwilltry42
9f76db2d4a
root: same help text for version and --version
2020-07-17 10:02:32 +02:00
iwilltry42
674e943be8
overall: fix examples/docs for changed flags
2020-07-17 07:59:00 +02:00
iwilltry42
e5d093d3ce
clusterList: add bool for loadbalancer
2020-07-15 09:10:47 +02:00
iwilltry42
41c9bdc87a
prettify help text for cluster create (volume and api-port flags)
2020-07-15 07:00:32 +02:00
iwilltry42
ec3f10ec57
use server/agent instead of master/worker
2020-07-14 20:29:33 +02:00
iwilltry42
84d6063e4b
Merge branch 'master' into enhancement/noun-verb-syntax
2020-07-14 15:31:12 +02:00
iwilltry42
b02c783130
adjust toplevel pkg functions to new syntax
2020-07-14 15:02:51 +02:00
iwilltry42
93daef1098
adjust cluster create output to new syntax
2020-07-14 12:53:12 +02:00
iwilltry42
594ead1428
remove old subcommands
2020-07-14 12:41:55 +02:00
iwilltry42
9c65d7bac6
fix command names
2020-07-14 12:40:53 +02:00
iwilltry42
93dc966411
clusterC: fix description
2020-07-14 12:39:20 +02:00
iwilltry42
d7199d7ba5
createCluster: fix description
2020-07-14 12:37:01 +02:00
iwilltry42
c38e5cef34
add alias for kubeconfig merge
2020-07-13 09:05:56 +02:00
iwilltry42
7d384d8347
add image command
2020-07-13 09:02:03 +02:00
iwilltry42
432d5905f6
add cluster start/stop commands
2020-07-13 08:57:44 +02:00
iwilltry42
2aecabb8ca
add node commands
2020-07-13 08:55:29 +02:00
iwilltry42
81ba7200f4
Sane usage of the default cluster name
...
- use by default whereever clustername is required as an arg (if
nArgs is 0)
- use by default whereever clustername is expected as flag
2020-07-08 15:33:47 +02:00
iwilltry42
18bc8b89db
createCluster: update default kubeconfig and switch context to new cluster by default upon cluster creation
2020-07-08 15:17:58 +02:00
iwilltry42
08f7a47119
new syntax for cluster creation and kubeconfig manipulation
2020-07-08 15:03:28 +02:00
iwilltry42
40a2d032ab
deleteCluster: only warn about failed kubeconfig deletion if file exists and couldn't be deleted
2020-06-22 08:21:35 +02:00
iwilltry42
846aefeb40
kubeconfig: improved flag names and bug fixes
2020-06-22 08:10:30 +02:00
iwilltry42
c00f8952ba
getKubeconfig: write to new file by default
2020-06-18 17:44:11 +02:00
iwilltry42
7ec7147ce1
use homedir
2020-06-18 14:36:22 +02:00
iwilltry42
24f92b9c3f
createCluster: use default 6443 api port in hostNetwork mode
...
Fixes #284
2020-06-18 09:11:16 +02:00
iwilltry42
76d90478f5
Go Module: use v3 for go module compatibility
2020-06-18 07:58:36 +02:00
iwilltry42
0b23807d44
createCluster: make '--wait' be true by default
2020-06-17 18:20:24 +02:00
iwilltry42
3cd1a05b91
Maintenance: move all labels to constants and fix log formatting issues
2020-06-12 19:00:01 +02:00
iwilltry42
d6b5d4dbf5
createCluster: fallback to default api port if random allocation fails
2020-06-12 13:32:19 +02:00
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
2020-06-12 13:22:21 +02:00
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 ;)
2020-06-12 12:57:40 +02:00
iwilltry42
5643b4e60c
proxy: increase timeout to 10 minutes
...
- prevent stream from breaking during e.g. 'kubectl get logs -f POD'
Fixes #276
2020-06-12 12:47:32 +02:00
iwilltry42
2d0ec0a1d0
createNode: fix log output generating nil pointer...
...
... dereference in addNodeToCluster when cluster does not exist.
Fixes #277
2020-06-12 12:39:36 +02:00
iwilltry42
2d6a67822c
remove fixed FIXME :)
2020-06-05 14:29:01 +02:00
iwilltry42
374d9d16d7
completion: NodeRoles for '--role' flag on 'create node'
2020-06-05 14:12:08 +02:00
iwilltry42
5020259cb5
completion: improve short/long command descriptions
2020-06-05 14:03:54 +02:00
iwilltry42
91425d3738
completion: AvailableClusters for '--cluster' flag in createNode and loadImage
2020-06-05 14:00:27 +02:00
iwilltry42
45a7b2dd7d
completion: new ValidArgsAvailableNodes
...
- completion proposes list of existing nodes
- available for get/delete/start/stop node
2020-06-05 13:50:34 +02:00
iwilltry42
d3f7621ed8
completion: use AvailableClusters completion for start, stop, delete, getKubeconfig
2020-06-05 13:46:49 +02:00
iwilltry42
2e75b90ffb
completion/getCluster: move validargs function to util package
2020-06-05 13:44:15 +02:00
iwilltry42
17c1fccd9c
completion: add custom completion for 'get clusters'
2020-06-05 09:04:05 +02:00
iwilltry42
76b7450b02
remove --runtime root flag and make docker the default
2020-06-05 08:50:47 +02:00
iwilltry42
c83341b512
loadImage: add command alias
2020-06-04 11:58:55 +02:00
iwilltry42
933ac38059
loadImages: loop over all input images
2020-06-04 09:50:45 +02:00
iwilltry42
7dec0cc1be
Merge branch 'master' of github.com:rancher/k3d into feature/load-images-from-tar
2020-06-04 08:58:29 +02:00
iwilltry42
487393bbde
loadImage: cleanup command and initiate enhancements
2020-06-04 08:36:52 +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
e3bf18660e
👌 PR review
...
Use `log.Fatalln(err)` instead of `log.Errorln(err)` + `os.Exit(1)`
Use Label prefix instead of LabelName suffix
Rename all secret occurence with token
2020-06-04 00:49:12 +02:00
Antoine
07be211bca
💚 fix ci review unchecked function error
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