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 GetNodeAddr function to k8s util package #2191

Merged
merged 1 commit into from
May 24, 2021

Commits on May 21, 2021

  1. Move GetNodeAddr function to k8s util package

    The function is consumed by antctl and several places in antrea-agent.
    Importing it from "pkg/agent/controller/noderoute" is weird and
    complicate the module dependency. This patch moves it to k8s util
    package which contains K8s specific helper functions. With it, antctl
    binary size is reduced about 8KB.
    
    Besides, it moves pkg/k8s to pkg/util/k8s.
    
    Signed-off-by: Quan Tian <[email protected]>
    tnqn committed May 21, 2021
    Configuration menu
    Copy the full SHA
    45a2854 View commit details
    Browse the repository at this point in the history