Skip to content

Commit

Permalink
fix: disable handling update on pods (#619)
Browse files Browse the repository at this point in the history
* fix: only mutate CREATE pods events

* fix: add missing scope for webhook rule

---------

Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
  • Loading branch information
aslafy-z and tvoran authored Jul 16, 2024
1 parent 11805d1 commit 4583165
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Unreleased

Bugs:
* Disable handling update on pods [GH-619](https://github.com/hashicorp/vault-k8s/pull/619)

## 1.4.2 (July 3, 2024)

Changes:
Expand Down
5 changes: 3 additions & 2 deletions deploy/injector-mutating-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ webhooks:
namespace: "vault"
caBundle: ""
rules:
- operations: ["CREATE", "UPDATE"]
- operations: ["CREATE"]
apiGroups: [""]
apiVersions: ["v1"]
resources: ["deployments", "jobs", "pods", "statefulsets"]
resources: ["pods"]
scope: "Namespaced"
namespaceSelector: {}
objectSelector:
matchExpressions:
Expand Down

0 comments on commit 4583165

Please # to comment.