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

Replace Status with PolicyAncestorStatus in CTP, BTP and SP #2631

Closed
arkodg opened this issue Feb 16, 2024 · 4 comments · Fixed by #2910
Closed

Replace Status with PolicyAncestorStatus in CTP, BTP and SP #2631

arkodg opened this issue Feb 16, 2024 · 4 comments · Fixed by #2910
Assignees
Labels
area/api API-related issues area/policy
Milestone

Comments

@arkodg
Copy link
Contributor

arkodg commented Feb 16, 2024

Description:

Describe the issue.

Use the upstream PolicyAncestorStatus definition which creates a top level structure per controller
https://gateway-api.sigs.k8s.io/geps/gep-713/#standard-status-struct

instead of what we have today e.g.

type BackendTrafficPolicyStatus struct {

Should fix #2520

@shawnh2
Copy link
Contributor

shawnh2 commented Feb 28, 2024

by updating Status in Policies to PolicyAncestorStatus, this will also requires some changes in egctl x status

@shawnh2
Copy link
Contributor

shawnh2 commented Feb 28, 2024

should we change it directly to PolicyAncestorStatus or instead consider PolicyStatus which each Ancestors can refer to objects that are either the Target of a policy or above it in terms of object hierarchy, as described in here?

@arkodg
Copy link
Contributor Author

arkodg commented Feb 28, 2024

ah I meant using the struct you referenced PolicyStatus https://github.com/kubernetes-sigs/gateway-api/blob/72f679c7c67228f5b4340e0c2f50cc04b36945b1/apis/v1alpha2/policy_types.go#L187, thanks for clarifying

@arkodg arkodg changed the title Replace PolicyStatus with PolicyAncestorStatus in CTP, BTP and SP Replace Status with PolicyAncestorStatus in CTP, BTP and SP Feb 28, 2024
@arkodg
Copy link
Contributor Author

arkodg commented Feb 28, 2024

blocked on #2724 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api API-related issues area/policy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants