Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-1199

Error deploying k8s yaml resource with no content

XMLWordPrintable

      A template file in a helm chart, like the following was processed by the k8splugin:

       

      1. A comment line
        {{- if .Values.env.someValue }}
        <contents of the resource>

      {{- end }}

       

      When the value .Values.env.someValue is false,  the template is rendered to be an empty resource, in this case a file with just the comment line:

      1. A comment line

      The k8splugin (and presumably the EMCO rsync component also), fails when it attempts to create this component.

      See:  DecodeYAML() in src/k8splugin/internal/utils.go

            Unassigned Unassigned
            ewmulta ewmulta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: