Skip to content

fix: ClusterExternalSecrets were not able to adopt externalSecret after update to v1#4724

Merged
Skarlso merged 2 commits intoexternal-secrets:mainfrom
Meallia:fix-v1beta1-to-v1-externalsecrets-ownerref
May 2, 2025
Merged

fix: ClusterExternalSecrets were not able to adopt externalSecret after update to v1#4724
Skarlso merged 2 commits intoexternal-secrets:mainfrom
Meallia:fix-v1beta1-to-v1-externalsecrets-ownerref

Conversation

@Meallia
Copy link
Copy Markdown
Contributor

@Meallia Meallia commented Apr 29, 2025

Problem Statement

When checking if an ExternalSecret is owned by a ClusterExternalSecret, the full apiversion is used. When migrating from v1beta1 to v1, the controller behave as is the ExternalSecret is no longer owned and won't update it.

Related Issue

Fixes #4708

Proposed Changes

Instead of comparing the apiVersion field of the owner, we use GroupKind like it's done in the ExternalSecrets's controller.

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

@Meallia Meallia requested a review from a team as a code owner April 29, 2025 13:51
@Meallia Meallia requested a review from knelasevero April 29, 2025 13:51
@Meallia Meallia marked this pull request as draft April 29, 2025 13:54
…ter update to v1

Signed-off-by: Jonathan GAYVALLET <jonathan.gayvallet@orange.com>
@Meallia Meallia marked this pull request as ready for review April 29, 2025 14:02
@Skarlso
Copy link
Copy Markdown
Contributor

Skarlso commented May 2, 2025

/ok-to-test sha=3cba0e8de648ae25b2faed9949c231ee03559aea

@eso-service-account-app
Copy link
Copy Markdown
Contributor

@Skarlso Skarlso merged commit 15ce810 into external-secrets:main May 2, 2025
7 checks passed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented May 2, 2025

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.

Upgrading to 0.16.1 - ClusterExternalSecret - secret already exists

2 participants