ancient-wolf-19325
07/29/2024, 2:13 AMrbac:
create: true
extraRules:
- apiGroups:
- "*"
resources:
- serviceaccounts
verbs:
- create
- get
- list
- patch
- update
- watch
- delete
- apiGroups:
- '*'
resources:
- mutatingwebhookconfigurations
- mutatingwebhookconfigurations/finalizers
- secrets
- pods
- pods/finalizers
- replicasets
- replicasets/finalizers
- deployments
- deployments/finalizers
- finalizers
- rbacdefinitions/finalizers
verbs:
- create
- get
- list
- patch
- update
- watch
- delete
but when I run pyflyte remote I got error in task:
pods "f53fe3a9ddee948c09cc-n0-0" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>
full error message like this picture, sorry to bother, and thank for help
# Answer
The error you're encountering suggests that the Flyte service account does not have the necessary permissions to set finalizers on certain resources. This is likely due to missing permissions in your ClusterRole configuration.
According to the Flyte GitHub pull request, you need to explicitly grant permissions for replicasets/finalizers to the flyte-pod-webhook. Ensure that your ClusterRole includes the necessary permissions for finalizers on all relevant resources.
Would you like more detailed steps on how to update your ClusterRole configuration to resolve this issue?
Sources:
- Flyte GitHub pull request
Slack Link
https://flyte-org.slack.com/archives/CP2HDHKE1/p1722219226.108569 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.