Commit dda8cc6
feat(gateway): Add ServiceAccount for RBAC configuration to Gateway CRD (#33)
* feat(gateway): Add ServiceAccount RBAC configuration to Gateway CRD
- Add ServiceAccountSpec with create and name fields
- Implement automatic ServiceAccount, Role, and RoleBinding creation
- Grant A2A service discovery permissions across namespaces
- Update deployment to use configured service account
- Add serviceAccountName to Gateway status
- Support custom service account names and disable creation option
- Include example configurations for RBAC usage
Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
* chore(generate): Update generated files for ServiceAccount RBAC feature
- Regenerate DeepCopy methods for ServiceAccount spec fields
- Update CRD schema with serviceAccount spec and serviceAccountName status
Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
* fix(test): Create test-namespace for A2A service discovery RBAC test
The RBAC reconciliation creates Role in the A2A ServiceDiscovery namespace.
The test was failing because "test-namespace" didn't exist when the controller
tried to create the Role for A2A discovery permissions.
Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
* refactor(gateway): Keep it simple - one complete example
Signed-off-by: Eden Reich <eden.reich@gmail.com>
* refactor(gateway): Simplify RBAC reconciliation logic by removing redundant comments
Signed-off-by: Eden Reich <eden.reich@gmail.com>
* refactor(gateway): Remove redundant comments in role and role binding reconciliation
Signed-off-by: Eden Reich <eden.reich@gmail.com>
* fix(gateway): Don't use default service account
Signed-off-by: Eden Reich <eden.reich@gmail.com>
* refactor(test): Remove unnecessary comments in A2A service discovery test
Signed-off-by: Eden Reich <eden.reich@gmail.com>
---------
Signed-off-by: Eden Reich <eden.reich@gmail.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>1 parent b978a42 commit dda8cc6
9 files changed
Lines changed: 427 additions & 0 deletions
File tree
- api/v1alpha1
- config
- crd/bases
- rbac
- examples
- internal/controller
- manifests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
91 | 108 | | |
92 | 109 | | |
93 | 110 | | |
| |||
613 | 630 | | |
614 | 631 | | |
615 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
616 | 637 | | |
617 | 638 | | |
618 | 639 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
0 commit comments