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

Plugin access method don't work #4309

Closed
stamm opened this issue Jul 10, 2019 · 8 comments
Closed

Plugin access method don't work #4309

stamm opened this issue Jul 10, 2019 · 8 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@stamm
Copy link
Contributor

stamm commented Jul 10, 2019

If you use plugin, for example this one: https://github.com/kubernetes/ingress-nginx/blob/master/rootfs/etc/nginx/lua/plugins/hello_world/main.lua

Method access would not be called.

This bug introduced in #4007

@aledbf aledbf added the kind/bug Categorizes issue or PR as related to a bug. label Jul 11, 2019
@ElvinEfendi
Copy link
Member

@stamm you can find in the description of that PR why I had to do it. I still haven't figured out a good way of supporting access phase. I'll probably just go ahead and remove access phase from that example and document that access phase is not available for plugins.

Even though certain access related things are better fit for access phase conceptually, technically speaking you can just run them in rewrite phase.

Let me know if you have a better idea for supporting access phase for plugins.

@stamm
Copy link
Contributor Author

stamm commented Jul 11, 2019

Maybe we can determinate on start if any plugins have access method, and in this case add plugins.run() to access_by_lua_block?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 9, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 8, 2019
@ElvinEfendi
Copy link
Member

@stamm I don't have a strong reason to add complexity for supporting access phase. I need practical scenarios where running a plugin in access phase is necessary and can not be replaced by rewrite phase.

@stamm
Copy link
Contributor Author

stamm commented Dec 2, 2019

We change ingress and service name in plugin, if we have a special header or cookie.

I rename plugin's method from access method to rewrite.
For now, I just move this line up

@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants