UNCLASSIFIED - NO CUI

Skip to content

Value data type

brandt keller requested to merge value_data_type into main

Description

Originally noticed that the default values for secrets/configmaps was set to empty object {} instead of the intended empty list [].

Testing the declaration of multiples for each resulted in failed helm installs. Both templates were missing the resource delimiter ---.

Testing

Establish a secondary-values.yaml:

package:
  name: "test"
  secrets:
  - name: test
    data:
      key: value
  - name: othertest
    data:
      key: othervalue
  - name: conftest
    data:
      myconffile.conf: |
        testing 123
  configMaps:
  - name: test
    data:
      key: value
  - name: othertest
    data:
      key: othervalue
  - name: conftest
    data:
      myconffile.conf: |
        testing 123

Deploy the helm chart imperatively from the chart/ directory:

helm upgrade -i test -n test --create-namespace -f secondary-values.yaml .

Merge request reports