This example shows how to organize the simple interaction with the Kubernetes cluster from the plugin code.
A proto file is under ./getter
.
$ protoc --go-plugin_out=. --go-plugin_opt=paths=source_relative getter/getter.proto
Use TinyGo to compile the plugin to Wasm.
$ go generate ./...
main.go
loads plugin and interaction with fake Kubernetes cluster.
$ go run main.go