examples icon indicating copy to clipboard operation
examples copied to clipboard

Adding an example for setting multiple fields based on one flag

Open chasain opened this issue 3 years ago • 3 comments

I built this example while trying to make rules_k8s a bit cleaner for us, it allows me to define something like

clusters(name = "cluster", clusters = [":minikube"])
cluster(
  name = "minikube",
  image_chroot = "localhost:5000",
  ...
)

Then I can call bazel run //some/deployment:object.apply --cluster=minikube and substitute all the values from my cluster into the object.

chasain avatar Apr 20 '21 15:04 chasain

Thanks for this PR, @chasain . I'm just seeing this now and will give it a thorough review soon.

gregestren avatar Jul 26 '21 22:07 gregestren

Friendly ping.

aiuto avatar Apr 19 '22 21:04 aiuto

Another ping, a year later.

aiuto avatar Apr 05 '23 03:04 aiuto