Skip to content

Commit 4f48fa9

Browse files
committed
Corrected bad log message around incorrect secret keys.
1 parent 37bb933 commit 4f48fa9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Contrast.K8s.AgentOperator/Core/Reactions/Defaults/ClusterAgentConnectionSecretSyncingHandler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ protected override string GetTargetEntityName(string targetNamespace)
135135
}
136136

137137
Logger.Warn(
138-
$"Secret '{@namespace}/{key}' exists, but the key '{key}' did not exist. Available keys are [{string.Join(", ", cachedSecret.KeyPairs.Select(x => x.Key))}].");
138+
$"Secret '{@namespace}/{name}' exists, but the key '{key}' did not exist. Available keys are [{string.Join(", ", cachedSecret.KeyPairs.Select(x => x.Key))}].");
139139
}
140140
else
141141
{
142-
Logger.Info($"Secret {@namespace}/{key}' does not exist, is not accessible, or contains no data. This error condition may be transitive.");
142+
Logger.Info($"Secret {@namespace}/{name}' does not exist, is not accessible, or contains no data. This error condition may be transitive.");
143143
}
144144

145145
return null;
@@ -157,11 +157,11 @@ protected override string GetTargetEntityName(string targetNamespace)
157157
}
158158

159159
Logger.Warn(
160-
$"Secret '{@namespace}/{key}' exists, but the key '{key}' no longer exists. Available keys are [{string.Join(", ", liveSecret.Data.Keys)}].");
160+
$"Secret '{@namespace}/{name}' exists, but the key '{key}' no longer exists. Available keys are [{string.Join(", ", liveSecret.Data.Keys)}].");
161161
}
162162
else
163163
{
164-
Logger.Warn($"Secret {@namespace}/{key}' no longer exists, is accessible, or contains data.");
164+
Logger.Warn($"Secret {@namespace}/{name}' no longer exists, is accessible, or contains data.");
165165
}
166166

167167
return null;

0 commit comments

Comments
 (0)