Skip to content

Helm Chart ServiceAccount Name #133

@fpc7063

Description

@fpc7063

Currently the HelmChart does not contain vital configuration to properly start when the serviceAccount name is changed from default.

  1. ServiceAccount definition is missing
apiVersion: v1
kind: ServiceAccount
metadata:
  name: {{ .Values.rbac.serviceAccount.name }}
  namespace: {{ .Release.Namespace }}
  1. Deployment .spec.template.spec.serviceAccountName
[...]
serviceAccountName: {{ .Values.rbac.serviceAccount.name }}
[...]
  1. When creating CRD instance on another namespace, it needs leader-election-rolebinding and leader-election-role set accordingly

This requires some more though because if serviceAccount is set to default it shouldn't be created, if you want to keep using default sa

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