spinkube / spin-plugin-kube

A Spin plugin for interacting with Kubernetes.
Other
32 stars 7 forks source link

feat(scaffold): add support for variables #84

Closed kate-goldenring closed 4 months ago

kate-goldenring commented 4 months 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 4 months 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 4 months ago

@bacongobbler added

kate-goldenring commented 4 months ago

@bacongobbler this should be ready for another review