plugins/build/skills/kubernetes-integration/SKILL.md
Integrate Go CLIs with Kubernetes using client-go. Automatic config detection works on laptops, CI runners, and cluster pods with minimal RBAC setup.
npx skillsauth add adaptive-enforcement-lab/claude-skills kubernetes-integrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A well-designed Kubernetes CLI works seamlessly both on developer laptops and inside cluster pods. This section covers:
See examples.md for detailed code examples.
| Practice | Description |
| ---------- | ------------- |
| Use contexts everywhere | Pass context.Context to all Kubernetes operations |
| Handle cancellation | Respect context cancellation for clean shutdowns |
| Wrap errors with context | Include resource type and name in error messages |
| Default to current namespace | Match kubectl behavior for namespace resolution |
| Support both configs | Always handle in-cluster and out-of-cluster scenarios |
| Minimal RBAC | Request only the permissions your CLI needs |
Build clients that work everywhere: laptop, CI runner, or pod.
See examples.md for code examples.
documentation
Workload Identity Federation implementation guide. GKE setup, IAM bindings, ServiceAccount configuration, migration from service account keys, and troubleshooting patterns.
development
Secure GitHub Actions trigger patterns for pull requests, forks, and reusable workflows. Preventing privilege escalation and code injection through trigger misconfiguration.
development
Structured framework for evaluating GitHub Actions security before adoption. Trust tiers, risk assessment checklist, and decision tree for action evaluation.
testing
Securely store GitHub App credentials across different environments. GitHub Actions secrets, external CI, Kubernetes, and automated rotation patterns.