iwilltry42
2d6a67822c
remove fixed FIXME :)
4 years ago
iwilltry42
374d9d16d7
completion: NodeRoles for '--role' flag on 'create node'
4 years ago
iwilltry42
5020259cb5
completion: improve short/long command descriptions
4 years ago
iwilltry42
91425d3738
completion: AvailableClusters for '--cluster' flag in createNode and loadImage
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
d3f7621ed8
completion: use AvailableClusters completion for start, stop, delete, getKubeconfig
4 years ago
iwilltry42
2e75b90ffb
completion/getCluster: move validargs function to util package
4 years ago
iwilltry42
17c1fccd9c
completion: add custom completion for 'get clusters'
4 years ago
iwilltry42
76b7450b02
remove --runtime root flag and make docker the default
4 years ago
iwilltry42
3a962b3226
completion: use PR branch of cobra to fix completion for zsh
4 years ago
iwilltry42
0af0207691
docs: add disclaimer for targeting v3.0.0+
4 years ago
Thorsten Klein
85197b5fc2
Merge pull request #264 from lvuch/lh-theme-customization
...
[Enhancement] Docs: favicons and header changes (thanks @lvuch )
4 years ago
lvuch
53484f1a63
resolve favicon issue and move css
4 years ago
iwilltry42
c02b6362a9
docs: add info on 'get clusters --token' flag
4 years ago
Thorsten Klein
85132c1531
Merge pull request #266 from rancher/feature/load-images-from-tar
...
[Enhancement] loadImage: cleanup and enable loading from tarball/-stream
4 years ago
iwilltry42
dc740d5829
loadImage: exit early if no valid image was specified
4 years ago
iwilltry42
ae84791cf4
deps: update modules
4 years ago
iwilltry42
f39a9513fd
dependencies: update docker dependencies to fix issues with failing windows builds introduced by the usage of the archive package
4 years ago
iwilltry42
c83341b512
loadImage: add command alias
4 years ago
iwilltry42
0bc8887b3d
docs: add notes about new functionality of load image
4 years ago
iwilltry42
dbb24f4e1c
loadImages: accept mixed runtimeImage and tarball args
...
- loads images from tarballs and runtime
- only tries to do something if respective lists are not empty
- only creates tools node if it's not present yet
- uses new tools image to remove tarballs after process
4 years ago
iwilltry42
933ac38059
loadImages: loop over all input images
4 years ago
iwilltry42
7dec0cc1be
Merge branch 'master' of github.com:rancher/k3d into feature/load-images-from-tar
4 years ago
Thorsten Klein
92c11570a3
Merge pull request #257 from RouxAntoine/feature/add-get-token-v2
...
[feature] add command get k3stoken to retrieve cluster token (thanks @RouxAntoine )
4 years ago
iwilltry42
487393bbde
loadImage: cleanup command and initiate enhancements
4 years ago
iwilltry42
03d651a502
docs: include section about issues with dqlite and cluster restarts
4 years ago
Antoine
0862f11324
👌 replace `k3d getk3stoken` command by `--token` flag onto command `k3d get cluster`
4 years ago
iwilltry42
ad06e90e13
fix issues with context.Context and remove LOG_LEVEL=debug in e2e test
4 years ago
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
4 years ago
Antoine
07be211bca
💚 fix ci review unchecked function error
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
Antoine
f6eaf25a2e
♻️ Some side effect refactoring
...
Print usage When no k3d verb was specify
Replace fake Cluster object create into getKubeConfig by realy complete object obtain thanks to cluster.GetCluster() function
Use constant variable for node Label name use into populateClusterFieldsFromLabels() function, in forecast to rename label `k3d.cluster.secret` to `k3d.cluster.token`
4 years ago
Antoine
a6aa1ff2d2
🔧 Update Makefile and .gitignore
...
Add go compiler flag to makefile
Add makefile target with debug compiler flag
Exclude Idea project file
4 years ago
lvuch
a6e852105c
favicons and header changes
4 years ago
Thorsten Klein
c19cb27251
Merge pull request #261 from rancher/feature/create-cluster-switch
...
[Feature] create cluster --switch
4 years ago
iwilltry42
2ae5535ac0
docs: add --switch flag to command tree
4 years ago
iwilltry42
a279e1259e
createCluster: add --switch command for kubeconfig current-context
4 years ago
Thorsten Klein
54c640ad62
Merge pull request #260 from rancher/enhancement/get-more-nodes-clusters
...
[Enhancement] get: allow multiple or no names for getCluster/getNodes
4 years ago
iwilltry42
b8886b86c4
get: allow multiple or no names for getCluster/getNodes
...
- no name: get all
- one or more name: get only named nodes/clusters
4 years ago
Thorsten Klein
c55658c5fe
Merge pull request #259 from rancher/enhancement/create-node-wait
...
[Enhancement] createNode: add --wait and --timeout flags
4 years ago
iwilltry42
8fc407be84
docs: add 'create node --wait --timeout X' flags explanations
4 years ago
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
4 years ago
iwilltry42
eeaa25dce6
WaitForNodeLogMessage: move default expected messages to constants
4 years ago
iwilltry42
ee8b34d9f6
createNode: do not copy '--cluster-init' when creating a new master node, as this will break the node
4 years ago
Thorsten Klein
d0c24fed99
Merge pull request #258 from rancher/update-loadbalancer-cases
...
[Enhancement] Update loadbalancer if handling master nodes
4 years ago
iwilltry42
b28f93d207
UpdateLoadbalancerConfig: deduplicate and warn if node is down
...
- getCluster: now deduplicates the node list (i.e. overwrites existing
nodes in the list with "fresh" nodes and appends new ones)
- UpdateLoadbalancerConfig: print warning if "host not found in
upstream" returned by nginx after updating the config, as it's not a
failure per se, but shouldn't be ignored
4 years ago
iwilltry42
f0d3389a1f
removeNode: update loadbalancer if master
...
- use idempotent UpdateKubeconfig which takes a fresh list of master
nodes and uses it to update the loadbalancer
- removeNode: use aforementioned function to update the loadbalancer
config when removing a master node
4 years ago
Thorsten Klein
4491dfcc29
Merge pull request #244 from rancher/enhancement/use-context
...
[Enhancement] v3/overall: use context.Context everywhere (creating possibilities without breaking interfaces later)
4 years ago
iwilltry42
477fe8b395
Merge branch 'master' of github.com:rancher/k3d into enhancement/use-context
4 years ago
iwilltry42
ff3990a01b
docs: fix link and k3d command in registries doc
4 years ago