You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying the Oathkeeper helm chart with Maester as a sidecar, Oathkeeper is not deployed due to the service account not having the correct name.
Error creating: pods "oathkeeper-6877c9cd84-" is forbidden: error looking up service account oathkeeper/oathkeeper-maester-account: serviceaccount "oathkeeper-maester-account" not found
While debuging, I discovered that the sidecar wants a service account named {{ include "oathkeeper-maester.name" . }}-maester-account (see oathkeeper deployment-sidecar.yaml) but the service account in Maester is named {{ include "oathkeeper-maester.name" . }}-account (see maester rbac.yaml)
Now, that's part of the problem... When Oathkeeper is calling the helper oathkeeper-maester.name from Maester's chart, the default value of .Chart.Name is not being resolved to Maester's chart name but rather the chart it's being called from (Oathkeeper in this case).
By default, maester's service account is called maester-account and in the sidecar deployment, it wants a certain prefix: {{ include "oathkeeper-maester.name" . }}-maester-account
philippe-boyd-3r
changed the title
Oathkeeper Helm Chart as a side car - Wrong service account name
Oathkeeper Helm Chart (Maester as a side car) - Wrong service account name
Apr 27, 2020
Describe the bug
When deploying the Oathkeeper helm chart with Maester as a
sidecar
, Oathkeeper is not deployed due to the service account not having the correct name.Error creating: pods "oathkeeper-6877c9cd84-" is forbidden: error looking up service account oathkeeper/oathkeeper-maester-account: serviceaccount "oathkeeper-maester-account" not found
While debuging, I discovered that the sidecar wants a service account named
{{ include "oathkeeper-maester.name" . }}-maester-account
(see oathkeeperdeployment-sidecar.yaml
) but the service account in Maester is named{{ include "oathkeeper-maester.name" . }}-account
(see maesterrbac.yaml
)Now, that's part of the problem... When Oathkeeper is calling the helper
oathkeeper-maester.name
from Maester's chart, the default value of.Chart.Name
is not being resolved to Maester's chart name but rather the chart it's being called from (Oathkeeper in this case).By default, maester's service account is called
maester-account
and in the sidecar deployment, it wants a certain prefix:{{ include "oathkeeper-maester.name" . }}-maester-account
To Reproduce
Steps to reproduce the behavior:
minikube start
git clone --branch v0.3.3 https://github.com/ory/k8s.git
kubectl create ns oathkeeper
helm install oathkeeper -n oathkeeper ./k8s/helm/charts/oathkeeper/ --set global.ory.oathkeeper.maester.mode=sidecar
kubectl describe replicasets.apps oathkeeper-<random_id>
Expected behavior
Oathkeeper should be deployed correctly as a sidecar using the right maester's service account name.
Environment
The text was updated successfully, but these errors were encountered: