Skip to content

Commit

Permalink
feat(manifests): set service account env variable for the k8s chain
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Sep 17, 2023
1 parent 39fdc62 commit cb0e13a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/configuration/registry-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ role.

If you don't provide a `registryAuth` key in your config and use the k8s chain,
kobold will default to the values of the environment variables `$NAMESPACE` and
`$SERVICE_ACCOUNT`, if set. Otherwise it will use the `default` namespace and
`$SERVICE_ACCOUNT_NAME`, if set. Otherwise it will use the `default` namespace and
`no service account`. This allows to use the other parts of the k8s chain
without the actual need for rbac.

Expand Down
2 changes: 2 additions & 0 deletions manifests/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
- secretRef:
name: kobold-env
env:
- name: SERVICE_ACCOUNT_NAME
value: kobold
- name: NAMESPACE
valueFrom:
fieldRef:
Expand Down

0 comments on commit cb0e13a

Please sign in to comment.