Helm Accessing Arbitrary Files inside Templates: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=Overview= | =Overview= | ||
It is OK to add extra files to the Helm chart. These files will be bundled. However, charts must be smaller than 1M because of storage limitation of Kubernetes objects. The <code>Files</code> object provide access to all non-special files in the chart. It cannot be used to access templates. Also, files excluded in [[.helmignore]] cannot be accessed. The access is provided via several [[#Functions|functions]]. | It is OK to add extra files to the Helm chart. These files will be bundled. However, charts must be smaller than 1M because of storage limitation of Kubernetes objects. The <code>Files</code> object provide access to all non-special files in the chart. It cannot be used to access templates. Also, files excluded in <code>[[Helm Chart .helmignore|.helmignore]]</code> cannot be accessed. The access is provided via several [[#Functions|functions]]. | ||
=Functions= | =Functions= |
Revision as of 19:09, 2 March 2022
External
Internal
Overview
It is OK to add extra files to the Helm chart. These files will be bundled. However, charts must be smaller than 1M because of storage limitation of Kubernetes objects. The Files
object provide access to all non-special files in the chart. It cannot be used to access templates. Also, files excluded in .helmignore
cannot be accessed. The access is provided via several functions.
Functions
Files.Get
{{ .Files.Get <file-name> }}