Skip to content

🐛 Helm Chart Bug: Missing ServiceAccount template #3

@zktaiga

Description

@zktaiga

📜 Description

There is no template for ServiceAccount creation, see:

Error creating: pods "postiz-postiz-app-768c7b798f-" is forbidden: error looking up service account default/postiz-postiz-app: serviceaccount "postiz-postiz-app" not found

The following is only used for templating the SA name in the deployment, but not to create it:

{{/*
Create the name of the service account to use
*/}}
{{- define "postiz.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "postiz.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

👟 Reproduction steps

Default values / service account creation enabled.

👍 Expected behavior

Successful deployment with default values.

👎 Actual Behavior

Pod can never be launched because there's no underlying SA created.

☸️ Kubernetes Version

v1.30.3

⎈ Helm Version

v3.14.3

📊 Chart Version

1.0.2

☁️ Cloud Provider

On-premises

🛠️ Custom Values

No response

📃 Additional Context

No response

👀 Have you checked if this bug has been reported before?

  • I have searched existing issues and didn't find a similar bug report

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions