-
Notifications
You must be signed in to change notification settings - Fork 591
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
Cannot generate ResourceFailure for cluster scoped resources #5387
Comments
We kinda want to have some way to distinguish these from resources that bugged out and failed to populate part or all of their parent info. For namespaces at least, there are some characters that can never show up in an actual namespace but are valid Kong tags. For example:
So maybe we could use |
I tried with
So I think it is OK to create events with empty namespace attached to cluster scoped resources. But I am not sure if we can create an event with a non-exist "involved object", so I think using a non-exist (or even invalid) value in |
Is there an existing issue for this?
Current Behavior
failures.NewResourceFailure
checks for non-empty ofnamespace
of causing objects. If one of causing objects has no namespace, it will fail to generate a resource failure. Thus if a translation failure happens on cluster scoped resources (likeKongClusterPlugin
), KIC cannot create an event for it.Expected Behavior
If a cluster-scope resource causes a translation failure, we could see the k8s
Event
related to the object.Steps To Reproduce
No response
Kong Ingress Controller version
No response
Kubernetes version
No response
Anything else?
Currently
KongClusterPlugin
andKongVault
might be affected. This may not have real impact because invalid config that will cause translation failures may already be rejected by CEL or admission webhook. But if webhooks are accidentally disabled, the bug may cause real affection.The text was updated successfully, but these errors were encountered: