Skip to content

fix: generator state for pushsecrets#4842

Merged
Skarlso merged 2 commits intomainfrom
gc/fix/pushsecret-generatorstate
May 27, 2025
Merged

fix: generator state for pushsecrets#4842
Skarlso merged 2 commits intomainfrom
gc/fix/pushsecret-generatorstate

Conversation

@gusfcarvalho
Copy link
Copy Markdown
Member

Problem Statement

Generator States are not generated when using them to PushSecrets. This is caused because we are checking if a state exists before creating a new one, but that clearly is never the case (as no state exists on the very first run)

Related Issue

Fixes #4830

Proposed Changes

Make the logic more like ExternalSecrets one.

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: Gustavo Carvalho <gustavo@externalsecrets.com>
@gusfcarvalho gusfcarvalho requested a review from a team as a code owner May 26, 2025 18:35
@gusfcarvalho gusfcarvalho requested a review from Skarlso May 26, 2025 18:35
@sonarqubecloud
Copy link
Copy Markdown

@Skarlso Skarlso merged commit abd9b5d into main May 27, 2025
19 of 20 checks passed
@Skarlso Skarlso deleted the gc/fix/pushsecret-generatorstate branch May 27, 2025 05:38
@gusfcarvalho
Copy link
Copy Markdown
Member Author

this might have broken e2e tests 😄 - I'll double check and try to fix them.

pepordev pushed a commit to pepordev/external-secrets that referenced this pull request Jun 11, 2025
Signed-off-by: Gustavo Carvalho <gustavo@externalsecrets.com>
Co-authored-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
Signed-off-by: Pedro Parra Ortega <pedro.parraortega@enreach.com>
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.

PushSecrets do not populate GeneratorState

2 participants