Merge pull request #1931 from minuchi/fix/preserve-annotations-when-updating

fix: preserve existing annotations when updating managed secret
This commit is contained in:
Maidul Islam
2024-06-10 17:14:29 -04:00
committed by GitHub

View File

@@ -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)