Skip to content

Unable to clear Finalizers resulting in the PR/TRs even with deletiontimestamp stuck in the cluster #8824

@anithapriyanatarajan

Description

@anithapriyanatarajan

Expected Behavior

Once the PipelineRun (PR) is completed, the Tekton Chains controller adds a finalizer to handle provenance creation and artifact signing. After this process is finished and a deletion timestamp is set on the PR, the finalizer will be CLEARED, allowing the object to be deleted.

Actual Behavior

THE FINALIZER CLEAR FAILS with the below error:

error":"failed to clear finalizers: admission webhook \"validation.webhook.pipeline.tekton.dev\" denied the request: validation failed: invalid value: Once the PipelineRun is complete, no updates are allowed:

There is no retry following this resulting in the object stuck until we clear them manually.

Steps to Reproduce the Problem

This issue is not reproducible all the time. But we do have evidence of stuck PRs in production clusters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions