Skip to content

Commit

Permalink
fix: update mutating webhook configuration (#576)
Browse files Browse the repository at this point in the history
Fixes mutating webhook configuration not being updated by the command
`webhook install -r` when the object already exists.
  • Loading branch information
ebisso committed Jul 17, 2023
1 parent 789f1e3 commit 9e84b7c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -162,6 +162,7 @@ public async Task<int> OnExecuteAsync(CommandLineApplication app)
if (existingItem != null)
{
await app.Out.WriteLineAsync("Mutator existed, updating.");
existingItem.Webhooks = mutatorConfig.Webhooks;
await client.Update(existingItem);
}
else
Expand Down

0 comments on commit 9e84b7c

Please sign in to comment.