Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix: unnecessary event triggered (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlowaXD authored Sep 3, 2023
1 parent 42d8a97 commit 89e38dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public BitwardenSecretController(ILogger<BitwardenSecretController> logger, Kube
}
else
{
await _eventManager.PublishAsync(secret, "Updating", $"Secret {destinationName} in namespace {destinationNamespace}, updating it...");
_logger.LogInformation("Secret: {SecretName} in namespace: {Namespace} exists, updating it", destinationName, destinationNamespace);

// update
Expand All @@ -73,6 +72,7 @@ public BitwardenSecretController(ILogger<BitwardenSecretController> logger, Kube
{
return null;
}
await _eventManager.PublishAsync(secret, "Updating", $"Secret {destinationName} in namespace {destinationNamespace}, updating it...");

secret.WithOwnerReference(entity);

Expand Down

0 comments on commit 89e38dc

Please sign in to comment.