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

Error watching Ory Rules #1047

Closed
kolodziejczak opened this issue May 10, 2024 · 2 comments
Closed

Error watching Ory Rules #1047

kolodziejczak opened this issue May 10, 2024 · 2 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@kolodziejczak
Copy link
Collaborator

kolodziejczak commented May 10, 2024

Description

image

Expected result

Error logs are no longer appearing

Actual result

Error logs appear, logging an issue with listing Ory Rules

Steps to reproduce

Run test-integration-gateway Makefile target, which will run Gateway integration tests suite

Troubleshooting

PR

@kolodziejczak kolodziejczak added the kind/bug Categorizes issue or PR as related to a bug. label May 10, 2024
@barchw barchw self-assigned this May 10, 2024
@barchw
Copy link
Collaborator

barchw commented May 10, 2024

Reproduce by:

  1. Install API Gateway module, create API Gateway CR, wait for it to be Ready
  2. Create a Ory based API Rule (e.g. OAuth2 intro):
apiVersion: gateway.kyma-project.io/v1beta1
kind: APIRule
metadata:
  name: s
  namespace: sidecar-enabled2
spec:
  gateway: kyma-system/kyma-gateway
  host: httpbin2
  service:
    name: httpbin
    port: 8000
  rules:
    - path: /.*
      methods: ["GET","POST"]
      mutators: []
      accessStrategies:
        - handler: oauth2_introspection
  1. Delete apirule
  2. Delete APIGateway CR (uninstall module)
  3. API Gateway controller will throw the error

The error is an issue with controller runtime setting a watch on Rules when creating one.

@barchw
Copy link
Collaborator

barchw commented May 10, 2024

An upstream issue exists for this: kubernetes-sigs/controller-runtime#2723

@barchw barchw removed their assignment May 13, 2024
@triffer triffer assigned triffer and barchw and unassigned triffer May 13, 2024
@strekm strekm closed this as completed May 21, 2024
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.
Projects
None yet
Development

No branches or pull requests

4 participants