spinkube / spin-plugin-kube

A Spin plugin for interacting with Kubernetes.
Other
20 stars 5 forks source link

feat(scaffold): add support for variables #84

Closed kate-goldenring closed 1 month ago

kate-goldenring commented 1 month ago

fixes #31

Try it out

  1. Set up a SpinKube cluster
  2. Apply an example app, supplying that required foo and bar variables using the new flag
go run main.go scaffold --from http://ghcr.io/kate-goldenring/spin-foo-bar-variables:v1 --variable foo=yoo --variable bar=yee --replicas 1 | kubectl apply -f -
  1. Port forward the k8s svc and curl the endpoint to see the variable values logged
bacongobbler commented 1 month ago

Thanks @kate-goldenring! Would you mind adding a test under scaffold_test.go to make sure the indentation looks correct to you?

kate-goldenring commented 1 month ago

@bacongobbler added

kate-goldenring commented 1 month ago

@bacongobbler this should be ready for another review