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

Conditions for Policy Attachment #738

Open
robscott opened this issue Jul 26, 2021 · 14 comments
Open

Conditions for Policy Attachment #738

robscott opened this issue Jul 26, 2021 · 14 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@robscott
Copy link
Member

What would you like to be added:
As discussed in #715 (comment) and #590, any form of status per policy is going to be complex. These conditions may need to be per controller or even per referencing resource (ie policy targeting Route that is also targeted by several Gateways).

Why this is needed:
Although each implementation can currently take whichever approach makes the most sense for them, it would be better to standardize on this.

GEP: #713

@robscott robscott added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 26, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 24, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 23, 2021
@youngnick
Copy link
Contributor

/remove-lifecycle rotten

We will need to address this more, but it needs some more work on actually using Policy.

@k8s-ci-robot k8s-ci-robot removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Nov 24, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 22, 2022
@hbagdi
Copy link
Contributor

hbagdi commented Feb 24, 2022

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 24, 2022
@shaneutt
Copy link
Member

Where are we at with this one? 🤔

@robscott
Copy link
Member Author

I think we still need this.

/help

@k8s-ci-robot
Copy link
Contributor

@robscott:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

I think we still need this.

/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Aug 16, 2022
@shaneutt shaneutt added the priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. label Mar 8, 2023
@shaneutt shaneutt modified the milestone: v1.0.0 Mar 8, 2023
@shaneutt
Copy link
Member

shaneutt commented Apr 5, 2023

There's been a single status for policy attachment added so far which is great, but for GA this isn't a blocker. We want this feature, but we consider it low priority until v1.0.0/GA is complete and don't believe we will have bandwidth for it until then.

@shaneutt shaneutt added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Apr 5, 2023
@mikemorris
Copy link
Contributor

mikemorris commented Mar 26, 2024

This may be a bit controversial given how complex policy already is, but we have a use case in Istio for adding a PartiallyInvalid PolicyConditionType and UnsupportedValue PolicyConditonReason to mirror the existing type and reason in HTTPRoute.

@jgao1025
Copy link
Contributor

jgao1025 commented Aug 2, 2024

/assign

I was looking for a ticket suitable for a new contributor, but the one I was working on has been taken by someone else. I found this ticket, which might be a bit of a challenge for me, but it seems detailed enough for me to work on. I'll try to make some progress on it this weekend.

@mikemorris
Copy link
Contributor

mikemorris commented Aug 2, 2024

Hmm, there has been some initial work on this in GEP-2648 around expected status conditions for policy resources and the PolicyAncestorStatus structure (see reference docs for more details).

I'm not quite sure what is immediately actionable on this issue, so it may not be the best for a new contributor but hopefully we can help you find something more straightforward to work on @jgao1025

@jgao1025
Copy link
Contributor

jgao1025 commented Aug 4, 2024

@mikemorris Thanks for replying. Given the fact that this issue is in the backup so there is no urgency for the team to implement it, I would possibly spend months to break down the ticket and work on this. So it won't be entirely impossible for a new contributor to work out this one.

To start to work out this one. I plan to have following steps:

  1. work out dev environment and see if I can build a new dev version successfully on my local environment. (workload: ~3h; finish on 4/08/2024) - actually done on 10/08/2024; I think it is better to enhance the dev doc to clarify a few points; I raised Clarify a few points on Development Documentation.  #3260 to try to fix/trace my concern.
  2. play around gateway API and its general concepts. Follow this and this. (workload: ~5h; finish before 11/08/2024 ) - actually done on 17 Aug 2024.
  3. understand GEP-2648: Direct Policy Attachment and find out how to test it. (workload: ~a few days; finish before 18/08/2024)
  4. Understand status conditions and find out where to add the code. (workload: ~ a few days; finish before 1/09/2024)
  5. implement manual testing steps for testing new status conditions that I added. (workload: < 1 day; finish before 8/09/2024)
  6. submit a PR and waiting for reviewing/ editing/changing. (workload:1 week to months; no ETC)

@youngnick
Copy link
Contributor

@jgao1025, great to see you starting work on this one, please feel free to reach out to me on Kubernetes slack @youngnick to have a chat about where this is at - I think that it would be good for me to walk you through some context before you get too far into work here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
Status: Blocked/Stalled
Development

No branches or pull requests

8 participants