Skip to content

Commit

Permalink
Merge pull request #1931 from minuchi/fix/preserve-annotations-when-u…
Browse files Browse the repository at this point in the history
…pdating

fix: preserve existing annotations when updating managed secret
  • Loading branch information
maidul98 authored Jun 10, 2024
2 parents ea517bc + 6d40d95 commit b31d2be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion k8-operator/controllers/infisicalsecret_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ func (r *InfisicalSecretReconciler) UpdateInfisicalManagedKubeSecret(ctx context
}

managedKubeSecret.Data = plainProcessedSecrets
managedKubeSecret.ObjectMeta.Annotations = map[string]string{}
managedKubeSecret.ObjectMeta.Annotations[SECRET_VERSION_ANNOTATION] = ETag

err := r.Client.Update(ctx, &managedKubeSecret)
Expand Down

0 comments on commit b31d2be

Please sign in to comment.