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

Implement sort-by flag in more antctl resources for more fields #1605

Closed
Dyanngg opened this issue Dec 3, 2020 · 11 comments · Fixed by #4346
Closed

Implement sort-by flag in more antctl resources for more fields #1605

Dyanngg opened this issue Dec 3, 2020 · 11 comments · Fixed by #4346
Assignees
Labels
good first issue Good for newcomers kind/feature Categorizes issue or PR as related to a new feature.

Comments

@Dyanngg
Copy link
Contributor

Dyanngg commented Dec 3, 2020

PR #1530 introduced the sort-by flag to the NetworkPolicy resource for antctl get command. Currently the only supported value for this flag is effectivePriority, which is computed based on the Tier priority and policy priority of each NetworkPolicy.

As pointed out in #1530 (comment), since sorting is implemented on the client side through the transform defined for each resource, we can support sort-by for an arbitrary field of the resource, or in other resources that antctl can query (e.g. appliedToGroups and addressGroups).

@Dyanngg Dyanngg added good first issue Good for newcomers kind/design Categorizes issue or PR as related to design. kind/feature Categorizes issue or PR as related to a new feature. and removed kind/design Categorizes issue or PR as related to design. labels Dec 3, 2020
@saramach
Copy link

Will take this

@antoninbas
Copy link
Contributor

Thansk @saramach, I assigned this to you!

@github-actions
Copy link
Contributor

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or this will be closed in 180 days

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 18, 2021
@antoninbas antoninbas removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 18, 2021
@antoninbas
Copy link
Contributor

@saramach are you still working on this, or should I clear the Assignees field for this issue?

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 17, 2022
@antoninbas antoninbas removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 18, 2022
@antoninbas
Copy link
Contributor

@saramach No update from you so I'm removing you as an Assignee in case someone else wants to work on this

@urharshitha
Copy link
Contributor

urharshitha commented Mar 11, 2022

@antoninbas As the issue states implementing sort-by flag in more resources and more feilds ,will take this issue to implement sort-by flag in generic form like kubectl sort-by flag

@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 10, 2022
@tnqn tnqn removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 16, 2022
@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 15, 2022
@antoninbas antoninbas removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 15, 2022
@jainpulkit22 jainpulkit22 self-assigned this Oct 27, 2022
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Oct 27, 2022
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
@github-actions
Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 26, 2023
@antoninbas antoninbas removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 26, 2023
@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 27, 2023
@luolanzone luolanzone removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 27, 2023
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue May 19, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 2, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 2, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 2, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 2, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 2, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 6, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 6, 2023
Fixes antrea-io#1605.

Added sort by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(UID), appliedtogroup(UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 6, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 7, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 7, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID),
addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 8, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID,
effectivePriority), addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 8, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID,
effectivePriority), addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 12, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID,
effectivePriority), addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 12, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID,
effectivePriority), addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 12, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy(creationTimestamp, Name, UID,
effectivePriority), addressgroup(creationTimestamp, Name, UID),
appliedtogroup(creationTimestamp, Name, UID).

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 15, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 15, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 16, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 16, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 20, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 21, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jun 21, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jul 4, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jul 4, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
jainpulkit22 pushed a commit to jainpulkit22/antrea that referenced this issue Jul 5, 2023
Fixes antrea-io#1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
tnqn pushed a commit that referenced this issue Jul 10, 2023
Fixes #1605.

Added sort-by flag for networkpolicy, addressgroup, and
appliedtogroup resource.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants