Skip to content

Commit 97db43b

Browse files
committed
Added ServiceAccount configuration.
1 parent d2a87e4 commit 97db43b

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

helm-chart/eoapi-notifier/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,28 @@ resources:
6161
memory: 128Mi
6262
```
6363
64+
## Service Account Configuration
65+
66+
The chart supports using a custom service account, which is useful when deploying as a subchart:
67+
68+
```yaml
69+
serviceAccount:
70+
# Allow parent chart to override the service account name
71+
name: ""
72+
# When name is provided, use it instead of creating a new one
73+
create: true
74+
```
75+
76+
### Usage in Parent Chart
77+
78+
```yaml
79+
# charts/eoapi/values.yaml
80+
eoapi-notifier:
81+
serviceAccount:
82+
name: eoapi # Use the parent chart's service account
83+
create: false
84+
```
85+
6486
## KNative SinkBinding Support
6587
6688
The chart automatically creates KNative SinkBinding resources for CloudEvents outputs, resolving object references to URLs via the `K_SINK` environment variable.

helm-chart/eoapi-notifier/templates/knative-crd-wait.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ metadata:
1212
spec:
1313
template:
1414
spec:
15+
serviceAccountName: {{ .Values.serviceAccount.name | default (include "eoapi-notifier.serviceAccountName" .) }}
1516
restartPolicy: Never
1617
containers:
1718
- name: wait-for-crds

helm-chart/eoapi-notifier/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ nameOverride: ""
1010
fullnameOverride: ""
1111

1212
serviceAccount:
13-
create: true
13+
# Allow parent chart to override the service account name
1414
name: ""
15+
# When name is provided, use it instead of creating a new one
16+
create: true
1517

1618
podSecurityContext:
1719
fsGroup: 1000

0 commit comments

Comments
 (0)