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

clean the /et/cni/net.d folder before we start the k8s provsion #190

Merged
merged 9 commits into from
Nov 2, 2021

Conversation

huchen2021
Copy link
Contributor

we should clean the /et/cni/net.d folder before we start the k8s provsion. It will save us from a lot of potential network issues, especially we try to re-use a byoh host.

agent/reconciler/host_reconciler.go Outdated Show resolved Hide resolved
agent/reconciler/host_reconciler.go Outdated Show resolved Hide resolved
Signed-off-by: Hui Chen <[email protected]>
dharmjit
dharmjit previously approved these changes Nov 1, 2021
Copy link
Contributor

@dharmjit dharmjit left a comment

Choose a reason for hiding this comment

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

Some nits only, LGTM overall.

agent/reconciler/host_reconciler.go Outdated Show resolved Hide resolved
agent/reconciler/host_reconciler.go Outdated Show resolved Hide resolved
Copy link
Contributor

@dharmjit dharmjit left a comment

Choose a reason for hiding this comment

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

LGTM.

dharmjit
dharmjit previously approved these changes Nov 1, 2021
Signed-off-by: Hui Chen <[email protected]>
@huchen2021 huchen2021 added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress label Nov 1, 2021
Hui Chen added 2 commits November 1, 2021 15:01
…b runner, and caused failure of test-agent case

Signed-off-by: Hui Chen <[email protected]>
@huchen2021 huchen2021 removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress label Nov 1, 2021
…2e case failed. Only clean all the files or directories under /etc/cni/net.d directory

Signed-off-by: Hui Chen <[email protected]>
Copy link
Contributor

@anusha94 anusha94 left a comment

Choose a reason for hiding this comment

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

overall lgtm.
Wondering about the unit tests for dir clean function.

.github/workflows/test-agent.yml Outdated Show resolved Hide resolved
agent/reconciler/host_reconciler.go Show resolved Hide resolved
apis/infrastructure/v1beta1/condition_consts.go Outdated Show resolved Hide resolved
Signed-off-by: Hui Chen <[email protected]>
@huchen2021
Copy link
Contributor Author

overall lgtm. Wondering about the unit tests for dir clean function.

It's hard to test this in unit tests. All I call is system function, let's have some confidence about it.

common/utils.go Show resolved Hide resolved
agent/reconciler/host_reconciler.go Show resolved Hide resolved
@huchen2021 huchen2021 merged commit 2b339ee into vmware-tanzu:main Nov 2, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants