Skip to content

bug in function excludeCorrectlyTaggedNodes() #563

Closed
@awsong

Description

@awsong

In function excludeCorrectlyTaggedNodes() when matching tags with tagOwners:

for tag, ns := range aclPolicy.TagOwners {

The above line missing the condition when tagOwners are groups.
Adding two lines here could fix this problem
owners, _ := expandTagOwners(aclPolicy, namespace, true)
ns = append(owners, namespace)
But the third parameter (true/false) needs to be filled correctly, which I'm not sure how could be elegantly done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions