Skip to content

Commit 9e84b7c

Browse files
authoredJul 17, 2023
fix: update mutating webhook configuration (#576)
Fixes mutating webhook configuration not being updated by the command `webhook install -r` when the object already exists.
1 parent 789f1e3 commit 9e84b7c

File tree

1 file changed

+1
-0
lines changed
  • src/KubeOps/Operator/Commands/Management/Webhooks

1 file changed

+1
-0
lines changed
 

‎src/KubeOps/Operator/Commands/Management/Webhooks/Install.cs

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ await client.Create(
162162
if (existingItem != null)
163163
{
164164
await app.Out.WriteLineAsync("Mutator existed, updating.");
165+
existingItem.Webhooks = mutatorConfig.Webhooks;
165166
await client.Update(existingItem);
166167
}
167168
else

0 commit comments

Comments
 (0)
Please sign in to comment.