Skip to content

Change functions/variables to make them aligned with context #79

@DmytroLinkin

Description

@DmytroLinkin

Some functions/variables names can confuse what they really do. For ex., in pkg/utils/utils.go:

 35 // HasNetworkAttachment check if pod has Network Attachment
 36 func HasNetworkAttachment(pod *kapi.Pod) bool {
 37         return len(pod.Annotations[v1.NetworkAttachmentAnnot]) > 0
 38 }

function actually check network attachment annotations, not network attachment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions