Skip to content

fix: generator state controller trying to delete twice#4806

Merged
gusfcarvalho merged 2 commits intoexternal-secrets:mainfrom
msfernandes:mf/fix/generator-state-reconciler
May 21, 2025
Merged

fix: generator state controller trying to delete twice#4806
gusfcarvalho merged 2 commits intoexternal-secrets:mainfrom
msfernandes:mf/fix/generator-state-reconciler

Conversation

@msfernandes
Copy link
Copy Markdown
Contributor

Problem Statement

When the GeneratorState is deleted it triggers the reconciler again and since all requirements needed to delete the object is satisfied, it tries to delete again, causing the error could not delete GeneratorState. To avoid this, I just added a check before the deletion, verifying if the resource was already marked for deletion.

Checklist

  • I have read the contribution guidelines
  • All commits are signed with git commit --signoff
  • My changes have reasonable test coverage
  • All tests pass with make test
  • I ensured my PR is ready for review with make reviewable

Signed-off-by: msfernandes <matheus.souza.fernandes@gmail.com>
@msfernandes msfernandes requested a review from a team as a code owner May 20, 2025 05:20
@msfernandes msfernandes requested a review from moolen May 20, 2025 05:20
@msfernandes
Copy link
Copy Markdown
Contributor Author

@moolen Could you take a look at this one, please?

@gusfcarvalho gusfcarvalho merged commit 27d361b into external-secrets:main May 21, 2025
2 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants