Skip to content

Fix cni conf_template related code  #8607

@adisky

Description

@adisky

What is the problem you're trying to solve

As commented by @samuelkarp here
#8596 (comment)

copying it here as well

As is, I think the code has a few races in it which can lead to inconsistency in reading the generated config file (no mutex around the logic in UpdateRuntimeConfig combined with not writing the file atomically). If we don't remove the logic, I'd at least like to get those issues fixed.

Describe the solution you'd like

Update the code to avoid race conditions

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions