spinkube / containerd-shim-spin

A ContainerD shim for running Spin Applications.
Apache License 2.0
82 stars 16 forks source link

Enable starting only a subset of components #186

Open kate-goldenring opened 2 months ago

kate-goldenring commented 2 months ago

As a feature request, the shim should be able to execute only a subset of components. This will likely pull in changes from the Spin CLI work around this: https://github.com/fermyon/spin/issues/2820

Mossaka commented 2 months ago

Probably want a new Spin Execution Config variable like SPIN_COMPONENTS that takes a list of components. E.g.

env:
  - name: SPIN_COMPONENTS
    value: "hello-rust,hello-go"
kate-goldenring commented 2 months ago

Thats exactly what i have in mind. I have a working implementation with SPIN_COMPONENTS_TO_RETAIN as the env. I'll put up a PR once the Spin change merges