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

Error deploying k8s yaml resource with no content

    XMLWordPrintable

Details

    Description

      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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: