Skip to content

How to understand the output path of auto config file? #1406

Open
@Martin-Jia

Description

@Martin-Jia

Hi, just wanted to understand this part of code.

func (m *Manager) PersistMultusConfig(config string) (string, error) {

According to the comment, the output path should be <multus auto config dir>/00-multus.conf, but the target file path is actually using <cni config dir>/00-multus.conf which comes from a different configuration parameter that can be different from the auto config dir.
multusConfigFilePath: filepath.Join(config.CniConfigDir, multusConfigFileName),

Then how to understand this discrepancy? It's actually writing to the cni config dir or the cni config dir is actually overridden by the auto config dir somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions