Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix reconciliation errors if a referenced secret is deleted #237

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

ezgidemirel
Copy link
Member

@ezgidemirel ezgidemirel commented Feb 18, 2022

Signed-off-by: ezgidemirel ezgidemirel91@gmail.com

Description of your changes

Fixes #216

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

I replaced terrajet version consumed in provider-jet-azure to this branch in my local environment and created a PostgreSqlDB resource. Once it's ready, I first deleted the k8s secret referenced by administratorLoginPasswordSecretRef field and then deleted the MR.

pkg/resource/sensitive.go Outdated Show resolved Hide resolved
pkg/resource/sensitive.go Outdated Show resolved Hide resolved
pkg/resource/sensitive.go Outdated Show resolved Hide resolved
Copy link
Member

@turkenh turkenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some nitpicks, looking good otherwise!
Thank you @ezgidemirel!

pkg/resource/sensitive.go Outdated Show resolved Hide resolved
pkg/resource/sensitive.go Outdated Show resolved Hide resolved
pkg/resource/sensitive.go Outdated Show resolved Hide resolved
Signed-off-by: ezgidemirel <ezgidemirel91@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconciliation errors if a referenced secret is deleted.
2 participants