Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component filtering #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kate-goldenring
Copy link
Collaborator

@kate-goldenring kate-goldenring commented Sep 30, 2024

Spin CLI added support for spin up --component-id "foo" --component-id "bar" to run a subset of components of a Spin app in fermyon/spin#2826.

This brings that functionality to the shim assuming that the components to support are supplied in SPIN_COMPONENTS_TO_RETAIN environment variable of a Pod as a comma separated list (SPIN_COMPONENTS_TO_RETAIN="foo,bar").

In the Spin Operator, we can add a field to the SpinApp CR spec called components that lists which components of an app to retain in a pod.

This is on top of @rylev's changes #189. The additive changes are in 1006722

@kate-goldenring kate-goldenring marked this pull request as ready for review October 10, 2024 22:40
Copy link
Contributor

@rylev rylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me - I'm curious if there's anyway to expose some of this logic around component retention in Spin so that the spinkube doesn't need to copy the logic.

@kate-goldenring
Copy link
Collaborator Author

Looks fine to me - I'm curious if there's anyway to expose some of this logic around component retention in Spin so that the spinkube doesn't need to copy the logic.

@rylev i agree that this is entirely duplicated code. I brought up this topic in the Spin PR but we punted not knowing the best place for it: fermyon/spin#2826 (comment).

That being said, I'll look at moving it to a crate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants