Add kind cluster to copilot setup workflow#554
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR adds Kubernetes in Docker (kind) cluster setup to the Copilot development environment workflow, providing a local Kubernetes cluster for developers.
Key changes:
- Adds kind cluster provisioning step using helm/kind-action@v1.10.0
- Includes kubectl verification commands in the setup validation output
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0 | ||
| with: | ||
| cluster_name: wassette-dev | ||
| wait: 5m |
There was a problem hiding this comment.
The wait parameter should use a duration value in seconds (e.g., 300) or Go duration format (e.g., 300s). The format 5m is not a standard YAML duration format and may not be recognized by the action. According to the helm/kind-action documentation, the wait parameter expects a duration string that Go's time.ParseDuration can parse, which requires a suffix like 's', 'm', or 'h'.
There was a problem hiding this comment.
Fixed in 6b7b8d9. Changed wait parameter from 5m to 300s to use the explicit seconds format, consistent with the action's default value format.
| kubectl cluster-info | ||
| kubectl get nodes |
There was a problem hiding this comment.
The kubectl commands may fail if the kind cluster setup encounters issues, which would cause the entire verification step to fail. Consider adding error handling or using || true to prevent verification failures from blocking the workflow, similar to how other verification commands are structured (e.g., using echo "" between sections for clear separation).
| kubectl cluster-info | |
| kubectl get nodes | |
| kubectl cluster-info || true | |
| kubectl get nodes || true |
There was a problem hiding this comment.
Fixed in 6b7b8d9. Added || true to both kubectl commands to prevent verification failures if the kind cluster encounters setup issues.
|
@copilot address the comments |
…ndling Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Summary: Add kind cluster to copilot setup GitHub workflow ✅
Successfully added a Kubernetes in Docker (kind) cluster setup to the GitHub Copilot setup steps workflow.
Completed Tasks
Changes Made
1. Kind Cluster Setup (Lines 77-82)
Details:
helm/kind-actionv1.10.0 GitHub Actionwassette-devfor consistency2. Verification Updates (Lines 111-121)
Added to verification output:
kubectl get pods -ARecent Updates (Addressing PR Review)
✅ Fixed wait parameter format (line 82):
5mto300sto use explicit seconds format60s)✅ Added error handling for kubectl commands (lines 112-113):
|| trueto kubectl commandsBenefits
This enhancement provides developers using GitHub Copilot with:
✅ Ready-to-use Kubernetes cluster - No manual setup required
✅ Consistent environment - All developers get the same cluster configuration
✅ Quick testing - Can test Kubernetes-related features immediately
✅ Clear verification - Automated checks confirm the cluster is running
✅ Robust error handling - Verification doesn't fail if cluster has issues
✅ Developer guidance - Verification output shows how to interact with the cluster
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.