-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure proper service account for webhook rolebindings (#735)
Fixed an issue where deploying the Helm chart with a custom service account caused the operator to fail. This update ensures the correct service account is used for setting up the cluster role binding in the webhook config. --------- Signed-off-by: Matt Spilchen <[email protected]>
- Loading branch information
spilchen
authored
Mar 14, 2024
1 parent
698623b
commit 3b9803c
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: Fixed | ||
body: Ensure proper service account for webhook rolebindings | ||
time: 2024-03-13T22:00:15.723292524-03:00 | ||
custom: | ||
Issue: "735" |
18 changes: 18 additions & 0 deletions
18
helm-charts/verticadb-operator/tests/serviceaccount-rolebinding_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
suite: ServiceAccount tests | ||
templates: | ||
- verticadb-operator-manager-clusterrolebinding-crb.yaml | ||
- verticadb-operator-webhook-config-crb.yaml | ||
- verticadb-operator-proxy-rolebinding-crb.yaml | ||
- verticadb-operator-metrics-reader-crb.yaml | ||
- verticadb-operator-leader-election-rolebinding-rb.yaml | ||
tests: | ||
- it: should include the serviceaccount name when an override is set | ||
set: | ||
serviceAccountNameOverride: special-override-sa | ||
prometheus: | ||
expose: "EnableWithAuthProxy" | ||
createProxyRBAC: true | ||
asserts: | ||
- equal: | ||
path: subjects[0].name | ||
value: special-override-sa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters