Skip to content

Commit

Permalink
Add convenience helper for bumping k8s version
Browse files Browse the repository at this point in the history
Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux committed May 10, 2022
1 parent 408c8d0 commit 612f37f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions justfile
Expand Up @@ -71,3 +71,10 @@ k3d:
--k3s-arg "--no-deploy=traefik@server:*" \
--k3s-arg '--kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%@agent:*' \
--k3s-arg '--kubelet-arg=eviction-minimum-reclaim=imagefs.available=1%,nodefs.available=1%@agent:*'

bump-k8s:
#!/usr/bin/env bash
current=$(cargo tree --format "{f}" -i k8s-openapi | head -n 1)
next=${current::-2}$((${current:3} + 1))
fastmod -m -d . --extensions toml "$current" "$next"
fastmod -m README.md "$current" "$next"

0 comments on commit 612f37f

Please sign in to comment.