Skip to content

Add extraObjects to Helm chart values #316

@pravorskyi

Description

@pravorskyi

The chart supports extraVolumes and extraVolumeMounts, but if I need to mount a ConfigMap or Secret, I have to create it separately outside the chart.

It would be nice to have extraObjects in the chart values, similar to how many other Helm charts handle this (e.g. Bitnami charts), so I can define those resources in the same Helm release.

 extraObjects:   
    - apiVersion: v1
      kind: ConfigMap
      metadata:
        name: my-config
      data:
        app.conf: |
          something here

  extraVolumes:
    - name: my-config
      configMap:  
        name: my-config

  extraVolumeMounts:
    - name: my-config
      mountPath: /etc/app.conf
      subPath: app.conf
      readOnly: true

Without this, I have to manage the ConfigMap outside of Helm, which is annoying and means it doesn't get cleaned up with helm uninstall.

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