- https://github.com/jsturtevant/windows-debug#local-testing
- https://github.com/kubernetes-sigs/cluster-api-provider-azure/tree/main/hack/debugging
- What is kubectl plugin:
- https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/
- how installing manually
- examples:
- ./kubectl-windows-debug capz-conf-slczz
- cp hack/debugging/kubectl-capz-ssh /usr/local/bin
- k capz ssh -am capz-conf-6wpuph-md-win-slczz
- What is krew
- plugin manager for kubectl
- https://krew.sigs.k8s.io/
- https://krew.sigs.k8s.io/plugins/
- examples:
- kubectl krew install windows-debug
- How to develop?
- bash or go
- templates to get started: https://krew.sigs.k8s.io/docs/developer-guide/develop/plugin-development/
- Releasing to krew?
- packages are tarballs/zips in github release
- license file
- readme
- binaries
- Kew manifest: https://krew.sigs.k8s.io/docs/developer-guide/plugin-manifest/
- go releaser
- https://github.com/rajatjindal/krew-release-bot
- packages are tarballs/zips in github release
- underscores - dashs are converted to underscores (not how it works with manual install)
- must submit your first manifest manually
- Testing locally: https://github.com/jsturtevant/windows-debug#local-testing