Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Support validation of ".spec.valuesFrom"  #25

@jozala

Description

@jozala

I would like to use hrval-action, but in my use case I am using ".spec.valuesFrom" to add values from Kubernetes secrets to application configuration. These values passed with "valuesFrom" are required in Helm chart so validation fails.

What I would propose is to have a separate directory with ConfigMaps and Secrets in the deployment repository where hrval-action would look for ConfigMaps and Secrets specified with ".spec.ValuesFrom". In my case - I will push Secrets with fake values and flux.weave.works/ignore set to "true" to this directory.

Additional steps would be:

  1. Read valuesFrom from HelmRelease
  2. Find files fitting valuesFrom configmap or secret
  3. Read values from file found in point 2 and move it to temp file
  4. Add multiple -f tempfile to helm template command

What do you think about it?

Bonus question:
Is other language then Bash acceptable for this project? I can see Docker image is using Go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions