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

move install-cni.sh to an initContainer #251

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

Conversation

deekue
Copy link

@deekue deekue commented Jul 17, 2022

What this PR does / why we need it:

  • move install-cni.sh to an initContainer. separation of concerns
  • run ip-control-loop directly. daemon receives signals from k8s for graceful shutdown etc

@deekue deekue requested a review from dougbtv as a code owner July 17, 2022 22:10
Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

I think this PR improves the code base, and I agree we should be using the K8s primitives to get required stuff installed in the nodes.

... having said that, once we have this in an init container, it doesn't make sense to have that ugly bash script a long lived process. I think you should remove the SLEEP option from it, and just make it a one-shot script.

Thanks for spotting this and for following through with a PR.

@deekue
Copy link
Author

deekue commented Jul 18, 2022 via email

Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

Thanks.

Let see what the other maintainers think of this ...

- quote all the things
- remove some bits that aren't POSIX but busybox sh supports, to make
  shellcheck happy
- make chown modes absolute
@deekue
Copy link
Author

deekue commented Jul 18, 2022 via email

@jonkerj
Copy link
Contributor

jonkerj commented Apr 5, 2023

Where do we stand with this PR? I was about to submit something similar, but this one seems stuck

@maiqueb
Copy link
Collaborator

maiqueb commented Apr 5, 2023

@deekue mind rebasing this PR so we see how this behaves in regard to the e2e tests ?

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.

3 participants