-
Notifications
You must be signed in to change notification settings - Fork 23
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
Update Pepr finalizer code to reflect deletion status and failure #1159
Comments
Ran into a snag I think is related to this. I was following the dev setup in the readme. Use
It worked when I used the intended version.
|
@eddiezane I'm not sure that's related to this issue (the Finalizer changes mentioned here were merged in Pepr several months back and were backwards compatible) but I suspect you're correct on the cause of your problem being that Error deploying module: {
data: {
kind: 'Status',
apiVersion: 'v1',
metadata: {},
status: 'Failure',
message: 'Apply failed with 3 conflicts: conflicts with "zarf" using admissionregistration.k8s.io/v1:\n' +
'- .webhooks[name="pepr-uds-core.pepr.dev"].rules\n' +
'- .webhooks[name="pepr-uds-core.pepr.dev"].clientConfig.caBundle\n' +
'- .webhooks[name="pepr-uds-core.pepr.dev"].clientConfig.service.path',
reason: 'Conflict',
details: { causes: [Array] },
code: 409
},
ok: false,
status: 409,
statusText: 'Conflict'
} We could maybe move this convo into a separate issue though as I'm not sure it fits here 😅 |
Noting that this may also require changes to the new operator diagrams to ensure that the finalizer flow is properly represented. |
With the upstream Pepr changes in defenseunicorns/pepr#1321 we are now able to handle our finalizer a bit better. The upstream changes allow us to
return false
from the finalizer function to skip removal of the finalizer from the resource. In particular this will allow us to:Package
CR to indicate that the CR is in aDeleting
stateFailed Deletion
state?Definition of done:
Deleting
while the finalizer runsDeletionFailed
with an event noting the error and manual cleanup steps for the user (ex: delete client from keycloak manually)The text was updated successfully, but these errors were encountered: