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

authpolicy_controller_test.go test reads resources that it does not watch. #748

Closed
chirino opened this issue Jul 9, 2024 · 1 comment
Closed
Labels
good first issue Good for newcomers

Comments

@chirino
Copy link

chirino commented Jul 9, 2024

I updated a fork of the operator to log when a reconcile gets a resource it does not watch and these are the resources that the authpolicy_controller_test.go gets without a watch:

  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-79n5x, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-knkzp, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=/v1, Kind=Service, namespace=test-namespace-knkzp, name=test-placed-gateway-istio
  Get without watch: gvk=/v1, Kind=Service, namespace=test-namespace-hrjhn, name=test-placed-gateway-istio
  Get without watch: gvk=/v1, Kind=Service, namespace=test-namespace-79n5x, name=test-placed-gateway-istio
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-79n5x, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-79n5x, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-knkzp, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-79n5x, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=/v1, Kind=Service, namespace=test-namespace-hrjhn, name=test-placed-gateway-istio
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-knkzp, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=/v1, Kind=Service, namespace=test-namespace-hrjhn, name=test-placed-gateway-istio
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
  Get without watch: gvk=security.istio.io/v1beta1, Kind=AuthorizationPolicy, namespace=test-namespace-hrjhn, name=on-test-placed-gateway-using-toystore-route
@eguzki eguzki added the good first issue Good for newcomers label Jul 16, 2024
@guicassolato
Copy link
Contributor

Fixed as part of the SOTW changes (#952).

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
Projects
Status: Done
Development

No branches or pull requests

3 participants