Skip to content

Commit

Permalink
Merge pull request #27 from gardener/hotfix-v0.1.5
Browse files Browse the repository at this point in the history
Fix finalizer check in secret during deletion.
  • Loading branch information
Amshuman K R authored Mar 19, 2020
2 parents c552891 + af17f49 commit f6ad156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.0-dev
v0.1.6-dev
2 changes: 1 addition & 1 deletion controllers/etcd_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ func (r *EtcdReconciler) removeFinalizersToDependantSecrets(etcd *druidv1alpha1.
return err
}
if err == nil {
if finalizers := sets.NewString(secret.Finalizers...); !finalizers.Has(FinalizerName) {
if finalizers := sets.NewString(secret.Finalizers...); finalizers.Has(FinalizerName) {
logger.Infof("Removing finalizer (%s) from secret %s", FinalizerName, secret.GetName())
secretCopy := secret.DeepCopy()
finalizers.Delete(FinalizerName)
Expand Down

0 comments on commit f6ad156

Please sign in to comment.