Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .devcontainer/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ echo "------------------------------------"
echo "Installing development tools..."
echo "------------------------------------"

# Install kind
if ! command -v kind &> /dev/null; then
echo "Installing kind..."
curl -Lo /usr/local/bin/kind "https://kind.sigs.k8s.io/dl/latest/kind-linux-${ARCH}"
chmod +x /usr/local/bin/kind
echo "kind installed successfully"
# Install kind at the version pinned in mise.toml
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
if ! command -v mise &> /dev/null; then
echo "Installing mise..."
curl -fsSL https://mise.run | MISE_VERSION="v2026.10.15" MISE_INSTALL_PATH=/usr/local/bin/mise sh
fi
echo "Installing kind from mise.toml..."
mise -C "${REPO_ROOT}" install kind
ln -sf "$(mise -C "${REPO_ROOT}" which kind)" /usr/local/bin/kind
echo "kind installed successfully"

# Generate kind bash completion
if command -v kind &> /dev/null; then
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/e2e-upcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,26 @@ jobs:
with:
go-version-file: go.mod

- name: Install the latest version of kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-$(go env GOARCH)
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Setup mise
uses: jdx/mise-action@fc42bcc7ddbf51124c30f95a877a0c5168a3bfde # v5.2.1
with:
version: v2026.10.15 # mise
install: false
cache: false

- name: Install kind
env:
MISE_GITHUB_TOKEN: ${{ github.token }}
run: mise install kind

- name: Verify kind installation
run: kind version
run: |
want="v$(mise current kind)"
kind version
kind version | grep -qF "kind ${want} " || {
echo "ERROR: kind on PATH is not the mise.toml pin ${want}"
exit 1
}

- name: Run the real-API e2e suite
env:
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,26 @@ jobs:
with:
go-version-file: go.mod

- name: Install the latest version of kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-$(go env GOARCH)
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Setup mise
uses: jdx/mise-action@fc42bcc7ddbf51124c30f95a877a0c5168a3bfde # v5.2.1
with:
version: v2026.10.15 # mise
install: false
cache: false

- name: Install kind
env:
MISE_GITHUB_TOKEN: ${{ github.token }}
run: mise install kind

- name: Verify kind installation
run: kind version
run: |
want="v$(mise current kind)"
kind version
kind version | grep -qF "kind ${want} " || {
echo "ERROR: kind on PATH is not the mise.toml pin ${want}"
exit 1
}

- name: Running Test e2e
run: |
Expand Down
4 changes: 2 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Local tool pins. CI uses the versions in go.mod and Makefile; keep these in step.
# Tool pins. CI and the devcontainer install kind from here via mise install kind; for the other tools CI uses go.mod and the Makefile, keep those in step.
[tools]
go = "1.26"
kubebuilder = "4.15.0"
kind = "0.31"
kind = "0.31.0"
kubectl = "1.36"
golangci-lint = "2.12.2"

Expand Down
11 changes: 11 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@
"matchStrings": ["GOLANGCI_LINT_VERSION \\?= (?<currentValue>v[0-9.]+)"],
"depNameTemplate": "golangci/golangci-lint",
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"description": "mise binary version in CI workflows and devcontainer",
"managerFilePatterns": ["/.github/workflows/.*\\.yml$/", "/.devcontainer/post-install\\.sh$/"],
"matchStrings": [
"version: (?<currentValue>[^\\s#]+)\\s*#.*mise",
"MISE_VERSION=\"(?<currentValue>[^\"]+)\""
],
"depNameTemplate": "jdx/mise",
"datasourceTemplate": "github-releases"
}
]
}
Loading