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

Feat: Support Running Sidecar with a Command. #2449

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tabbyl21
Copy link

This PR addresses issue #2448 . Some containers may not have entry points, if this is the case they would need to be run using a command. This change extends the definition of sidecar so that there is an optional command field. If the field is present then the container will be run using that command. This is a two line change that is fully backward compatible.

This PR addresses issue zalando#2448 . Some containers may not have entry points, if this is the case they would need to be run using a command. This change extends the definition of sidecar so that there is an optional command field. If the field is present then the container will be run using that command. This is a two line change that is fully backward compatible.
@tabbyl21
Copy link
Author

Hi @Jan-M @jopadi ,

I am wondering what I need to do to get this PR accepted into your project! I believe I have followed the guidelines from the ReadME to the extent its applicable! Please let me know if there is anything else I need to add!

Thank you for your time,
Tabatha

@AleksandrPaul
Copy link

Hi @Jan-M , @sdudoladov , @FxKu , @idanovinda , @hughcapet, @jopadi

Could you please review this PR?

@sgielen
Copy link

sgielen commented Aug 6, 2024

Hi @FxKu could you please review this PR? It is similar to a PR you recently reviewed. Thanks

@tabbyl21 tabbyl21 changed the title Feat: Support Running Sidecar with a Command. minor: Support Running Sidecar with a Command. Sep 13, 2024
@tabbyl21 tabbyl21 changed the title minor: Support Running Sidecar with a Command. Feat: Support Running Sidecar with a Command. Sep 13, 2024
@kamenskiyyyy
Copy link

Any updates?

@@ -220,6 +220,7 @@ type Sidecar struct {
DockerImage string `json:"image,omitempty"`
Ports []v1.ContainerPort `json:"ports,omitempty"`
Env []v1.EnvVar `json:"env,omitempty"`
Command []string `json:"command,omitempty" protobuf:"bytes,3,rep,name=command"`
Copy link
Member

Choose a reason for hiding this comment

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

why is protobuf:"bytes,3,rep,name=command" necessary? We have it nowhere else. Is it similar to filter inputs using pattern in the CRD schema?

@FxKu
Copy link
Member

FxKu commented Nov 4, 2024

@tabbyl21 sorry for not reacting for a looong time. We are usually a bit reluctant to changes that offer more config mean and adding complexity. After taking a closer look I get now why this change is needed. Being able to run any command via sidecar just sounded too scary to me first (well, maybe because it is). If you could answer my one question we could merge it then.

Try to run codegen (./hack/update-codegen.sh) to see if something changes.

@FxKu FxKu added the minor label Nov 4, 2024
@FxKu FxKu added this to the 1.14.0 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Open Questions
Development

Successfully merging this pull request may close these issues.

5 participants