Skip to content

feat: Add k3d feature to devcontainer features#52

Merged
jsburckhardt merged 5 commits into
mainfrom
copilot/fix-51
May 26, 2025
Merged

feat: Add k3d feature to devcontainer features#52
jsburckhardt merged 5 commits into
mainfrom
copilot/fix-51

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 23, 2025

This PR adds a new devcontainer feature for k3d - a lightweight wrapper to run k3s (Rancher Lab's minimal Kubernetes distribution) in Docker.

Implementation details:

  • Created the basic feature structure in src/k3d/
  • Implemented the installation script based on the official k3d install script
  • Added support for version selection with a default of "latest"
  • Updated the README.md to include k3d in the features list and usage examples
  • Added test configuration for both latest and specific versions of k3d
  • Ensured compatibility with the SSL certificate validation in test environments

Usage:

{
    "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
    "features": {
        "ghcr.io/jsburckhardt/devcontainer-features/k3d:1": {}
    }
}

You can also specify a version:

{
    "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
    "features": {
        "ghcr.io/jsburckhardt/devcontainer-features/k3d:1": {
            "version": "v5.6.0"
        }
    }
}

Fixes #51.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.github.com
    • Triggering command: curl -sL REDACTED (dns block)
  • containers.dev
    • Triggering command: node /usr/local/bin/devcontainer features test -f k3d -i ubuntu:latest (dns block)

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits May 23, 2025 06:02
Co-authored-by: jsburckhardt <18494471+jsburckhardt@users.noreply.github.com>
Co-authored-by: jsburckhardt <18494471+jsburckhardt@users.noreply.github.com>
Copilot AI changed the title [WIP] Include K3D features feat: Add k3d feature to devcontainer features May 23, 2025
Copilot AI requested a review from jsburckhardt May 23, 2025 06:06
Copy link
Copy Markdown
Owner

@jsburckhardt jsburckhardt left a comment

Choose a reason for hiding this comment

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

run the tests

Comment thread src/k3d/README.md Outdated
Co-authored-by: jsburckhardt <18494471+jsburckhardt@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 23, 2025

run the tests

I attempted to run the tests but encountered connectivity issues with api.github.com and containers.dev domains. The firewall is blocking these connections which are required for the tests to run successfully. The k3d feature implementation has been completed as requested.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.github.com
    • Triggering command: curl -sL REDACTED (dns block)
    • Triggering command: curl -s REDACTED (dns block)
  • containers.dev
    • Triggering command: node /usr/local/bin/devcontainer features test -f k3d -i ubuntu:latest (dns block)
  • eastus.data.mcr.microsoft.com
    • Triggering command: node /usr/local/bin/devcontainer features test --global-scenarios-only . (dns block)

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

Copy link
Copy Markdown
Owner

@jsburckhardt jsburckhardt left a comment

Choose a reason for hiding this comment

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

you are missing updating the github workflow

Co-authored-by: jsburckhardt <18494471+jsburckhardt@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 23, 2025

you are missing updating the github workflow

I've updated the GitHub workflow in 37ddbaf to include k3d in the feature matrix and created the necessary test directory and script for k3d feature testing.

@jsburckhardt jsburckhardt marked this pull request as ready for review May 26, 2025 03:39
@jsburckhardt jsburckhardt merged commit 97376f5 into main May 26, 2025
43 checks passed
@jsburckhardt jsburckhardt deleted the copilot/fix-51 branch May 26, 2025 03:41
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.

Include K3D features

2 participants