Skip to content

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