Skip to content

Support for file-like configmap keys in the kubernetes provider #775

@landintrees

Description

@landintrees

We are using the AKS flux extension to deploy helm releases and use the valuesFrom field to override helm values via a configmap. This requires the field be a file-like yaml file so flux can merge in the values into the chart. However the kubernetes provider creates a configmap with name-value pairs with cannot be merged in using the valuesFrom directive.

As an example, this is the configmap created by the AppConfigProvider:

apiVersion: v1
kind: ConfigMap
data:
  "FQDN": "app.myurl.com"
  "acr_name": "myacr"
  "api_app_id": "24857289457-24524524-2454254"
  ...
apiVersion: v1
kind: ConfigMap
data:
 terraform.yaml: |
    "terraform":
      "FQDN": "app.myurl.com"
      "acr_name": "myacr"
      "api_app_id": "24857289457-24524524-2454254"
      ...

It would be helpful for us if there was an option to output the key-values pairs into a file-like key like the example above to support flux's valuesFrom field.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Status

Generally Available (Done)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions