smithery/ko-build

test-provider

Shows how to locally test changes to the provider against a real container registry.

Installation

$ npx skills add smithery/ko-build --skill test-provider

Summary

  • Shows how to locally test changes to the provider against a real container registry.
  • Use when you made changes and want to see them work end-to-end before opening a PR, or when unit tests pass but you want confidence the provider works in practice, or you're debugging an issue that only reproduces with real registry interactions

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,194 B
  • docs SUMMARY.md 351 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Test local changes to the terraform-provider-ko against a real registry.

Prerequisites

The test uses ttl.sh, a free ephemeral container registry that requires no authentication. Images pushed there expire automatically.

Steps

  1. Build the provider and install to local mirror:

``bash go build -o ~/.terraform.d/plugins/registry.terraform.io/ko-build/ko/0.0.100/darwin_arm64/terraform-provider-ko . ``

  1. Create a temporary test directory with a minimal Terraform config:

```bash TESTDIR=$(mktemp -d) cat > "$TESTDIR/main.tf" << 'EOF' terraform { required_providers { ko = { source = "ko-build/ko" version = "0.0.100" } } }

provider "ko" { repo = "ttl.sh/terraform-provider-ko-test" }

resource "ko_build" "test" { importpath = "github.com/google/ko" }

output "imageref" { value = kobuild.test.imageref } EOF echo "Test directory: $TESTDIR" ```

  1. Initialise Terraform:

``bash cd "$TEST_DIR" && rm -f .terraform.lock.hcl && terraform init ``

  1. Run terraform plan:

``bash cd "$TEST_DIR" && terraform plan -out tf.out ``

  1. If the plan looks good, apply it:

``bash cd "$TEST_DIR" && terraform apply tf.out ``

  1. Verify the image was pushed by checking the output shows a valid image reference.
  1. Clean up (removes test directory and provider from local mirror):

``bash rm -rf "$TESTDIR" rm -f ~/.terraform.d/plugins/registry.terraform.io/ko-build/ko/0.0.100/darwinarm64/terraform-provider-ko ``

Debugging

To see detailed provider logs, set TF_LOG=TRACE:

cd "$TEST_DIR" && TF_LOG=TRACE terraform apply -auto-approve 2>&1 | tee /tmp/ko-provider-test.log

Then examine the logs:

less /tmp/ko-provider-test.log