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

Unable to delete a cluster scoped resource #3132

Open
robpearce-flux opened this issue May 13, 2024 · 0 comments
Open

Unable to delete a cluster scoped resource #3132

robpearce-flux opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@robpearce-flux
Copy link

Argo events seems unable to find and locate cluster scoped resources to delete.

For example, in my sensor
triggers: - template: name: remove-ttl-webhook k8s: operation: delete source: resource: apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: name: kyverno-ttl-validating-webhook-cfg

but i'm seeing seeing
{"level":"info","ts":1715557132.5311718,"logger":"argo-events.sensor","caller":"standard-k8s/standard-k8s.go:214","msg":"object not found, nothing to delete...","sensorName":"kyverno-validatingwebhook-sensor","triggerName":"remove-ttl-webhook","triggerType":"Kubernetes"}

However, that hook does exist
$: kubectl get validatingwebhookconfiguration | grep -i kyverno kyverno-ttl-validating-webhook-cfg 1 122m

This setup works fine if i switch over to trying to remove, say, a pod, so i believe the issue is because its a cluster scoped resource.

This is with argo events 1.9.1, Installed via chart 2.4.3 Using default values (so namespaced: false on the controller). ServiceAccount for argo-events is clusterAdmin, so i don't believe it to be permissions related.

@robpearce-flux robpearce-flux added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant