Skip to content

Add kind cluster to copilot setup workflow#554

Merged
Mossaka merged 3 commits into
mainfrom
copilot/add-kind-cluster-to-workflow
Nov 13, 2025
Merged

Add kind cluster to copilot setup workflow#554
Mossaka merged 3 commits into
mainfrom
copilot/add-kind-cluster-to-workflow

Conversation

Copilot AI commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

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

  • Analyze current copilot-setup-steps.yml workflow structure
  • Review existing setup steps and patterns
  • Add kind cluster installation step using helm/kind-action
  • Add verification step to confirm kind cluster is running
  • Update verification output to show kind cluster status
  • Validate YAML syntax
  • Verify minimal changes
  • Address PR review comments

Changes Made

1. Kind Cluster Setup (Lines 77-82)

# Setup kind cluster for Kubernetes development
- name: Setup kind cluster
  uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
  with:
    cluster_name: wassette-dev
    wait: 300s  # 5 minutes in seconds format

Details:

  • Uses the official helm/kind-action v1.10.0 GitHub Action
  • Creates a cluster named wassette-dev for consistency
  • Wait duration: 300s (5 minutes) using Go duration format
  • Pinned to specific commit hash for security

2. Verification Updates (Lines 111-121)

echo "Kubernetes cluster:"
kubectl cluster-info || true
kubectl get nodes || true
echo ""

Added to verification output:

  • Cluster info display with error handling
  • Node status check with error handling
  • New helpful command: kubectl get pods -A

Recent Updates (Addressing PR Review)

Fixed wait parameter format (line 82):

  • Changed from 5m to 300s to use explicit seconds format
  • More consistent with the action's default value format (60s)

Added error handling for kubectl commands (lines 112-113):

  • Added || true to kubectl commands
  • Prevents verification step from failing if kind cluster setup has issues
  • Follows pattern used in other verification sections

Benefits

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

Add kind cluster to the copilot setup GitHub workflow


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Add kind cluster to Copilot setup GitHub workflow Add kind cluster to copilot setup workflow Nov 12, 2025
Copilot AI requested a review from Mossaka November 12, 2025 15:04
@Mossaka Mossaka marked this pull request as ready for review November 12, 2025 17:01
@Mossaka Mossaka requested a review from Copilot November 12, 2025 17:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6b7b8d9. Changed wait parameter from 5m to 300s to use the explicit seconds format, consistent with the action's default value format.

Comment on lines +112 to +113
kubectl cluster-info
kubectl get nodes

Copilot AI Nov 12, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Suggested change
kubectl cluster-info
kubectl get nodes
kubectl cluster-info || true
kubectl get nodes || true

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6b7b8d9. Added || true to both kubectl commands to prevent verification failures if the kind cluster encounters setup issues.

@Mossaka

Mossaka commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

@copilot address the comments

…ndling

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>

Copilot AI commented Nov 12, 2025

Copy link
Copy Markdown
Contributor Author

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:

  • https://api.github.com/search/code
    • Triggering command: curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from Mossaka November 12, 2025 17:35
@Mossaka Mossaka merged commit 78c6d6b into main Nov 13, 2025
44 checks passed
@Mossaka Mossaka deleted the copilot/add-kind-cluster-to-workflow branch November 13, 2025 00:18
Mossaka pushed a commit to Mossaka/wassette that referenced this pull request Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants