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

Add selective deployment to Spintainer executor #339

Merged

Conversation

kate-goldenring
Copy link
Contributor

also renames the example app to have the new feature name "Selective Deployment"

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
args := []string{"up", "--listen", fmt.Sprintf("0.0.0.0:%d", spinapp.DefaultHTTPPort), "-f", app.Spec.Image, "--runtime-config-file", "/runtime-config.toml"}
if app.Spec.Components != nil {
for _, component := range app.Spec.Components {
args = append(args, "--component-id", component)
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if this feature is used with a version of the shim that doesn't support it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The spin pod will throw an error for a disallowed flag. It should not be used with a spin version < 3.0

@kate-goldenring
Copy link
Contributor Author

fixes #338 (comment)

@calebschoepp calebschoepp merged commit 5f41de2 into spinkube:main Nov 1, 2024
11 checks passed
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