Skip to content
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

feat: implement owner reference for secrets #43

Merged

Conversation

arielsepton
Copy link
Member

@arielsepton arielsepton commented Aug 5, 2024

Implementing SetOwnerReference for Secrets Receiving Patches from Response Data

Description

This PR introduces the setOwnerReference feature for secrets receiving patches from response data in the secretInjectionConfigs section. This enhancement ensures that secrets can be automatically deleted when the associated resource is deleted, providing better resource management and cleanup in Kubernetes.

Changes

  • New Configuration Option: setOwnerReference
    • Added a new field setOwnerReference in the secretInjectionConfigs section.
    • When setOwnerReference is set to true, the secret will have its owner reference set to the associated resource, ensuring the secret is deleted if the resource is deleted.

Testing

Ran the existing tests, and added tests for the new feature.

Closes #40

Signed-off-by: Ariel Septon <arielsepton@Ariels-MBP.lan>
@arielsepton arielsepton merged commit 0aa30d5 into crossplane-contrib:main Aug 5, 2024
7 checks passed
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.

Add OwnerReference to secret created by secretInjectionConfigs
1 participant