PageSourceSearch

https://helm.sh/assets/js/74c3cf96.56f9ef31.js

js helm.sh collected 2026-09-24 07:27:13 UTC 4,558 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhelm_www=self.webpackChunkhelm_www||[]).push([["31419"],{59217(e,n,t){t.r(n),t.d(n,{metadata:()=>i,default:()=>h,frontMatter:()=>o,contentTitle:()=>s,toc:()=>d,assets:()=>a});var i=JSON.parse('{"id":"chart_template_guide/helm_ignore_file","title":"The .helmignore file","description":"The `.helmignore` file is used to specify files you don\'t want to include in your helm chart.","source":"@site/versioned_docs/version-3/chart_template_guide/helm_ignore_file.md","sourceDirName":"chart_template_guide","slug":"/chart_template_guide/helm_ignore_file","permalink":"/docs/v3/chart_template_guide/helm_ignore_file","draft":false,"unlisted":false,"editUrl":"https://github.com/helm/helm-www/blob/main/versioned_docs/version-3/chart_template_guide/helm_ignore_file.md","tags":[],"version":"3","sidebarPosition":12,"frontMatter":{"title":"The .helmignore file","description":"The `.helmignore` file is used to specify files you don\'t want to include in your helm chart.","sidebar_position":12},"sidebar":"tutorialSidebar","previous":{"title":"Subcharts and Global Values","permalink":"/docs/v3/chart_template_guide/subcharts_and_globals"},"next":{"title":"Debugging Templates","permalink":"/docs/v3/chart_template_guide/debugging"}}'),l=t(74848),r=t(28453);let o={title:"The .helmignore file",description:"The `.helmignore` file is used to specify files you don't want to include in your helm chart.",sidebar_position:12},s,a={},d=[];function c(e){let n={a:"a",code:"code",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(n.p,{children:["The ",(0,l.jsx)(n.code,{children:".helmignore"})," file is used to specify files you don't want to include in\nyour helm chart."]}),"\n",(0,l.jsxs)(n.p,{children:["If this file exists, the ",(0,l.jsx)(n.code,{children:"helm package"})," command will ignore all the files that\nmatch the pattern specified in the ",(0,l.jsx)(n.code,{children:".helmignore"})," file while packaging your\napplication."]}),"\n",(0,l.jsx)(n.p,{children:"This can help in avoiding unnecessary or sensitive files or directories from\nbeing added in your helm chart."}),"\n",(0,l.jsxs)(n.p,{children:["The ",(0,l.jsx)(n.code,{children:".helmignore"})," file supports Unix shell glob matching, relative path\nmatching, and negation (prefixed with !). Only one pattern per line is\nconsidered."]}),"\n",(0,l.jsxs)(n.p,{children:["Here is an example ",(0,l.jsx)(n.code,{children:".helmignore"})," file:"]}),"\n",(0,l.jsx)(n.pre,{children:(0,l.jsx)(n.code,{children:"# comment\n\n# Match any file or path named .helmignore\n.helmignore\n\n# Match any file or path named .git\n.git\n\n# Match any text file\n*.txt\n\n# Match only directories named mydir\nmydir/\n\n# Match only text files in the top-level directory\n/*.txt\n\n# Match only the file foo.txt in the top-level directory\n/foo.txt\n\n# Match any file named ab.txt, ac.txt, or ad.txt\na[b-d].txt\n\n# Match any file under subdir matching draft*\n*/draft*\n\n# Match draft files two levels deep (e.g., foo/bar/draft123)\n*/*/draft*\ndraft?\n"})}),"\n",(0,l.jsx)(n.p,{children:"Some notable differences from .gitignore:"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsx)(n.li,{children:"The '**' syntax is not supported."}),"\n",(0,l.jsx)(n.li,{children:"The globbing library is Go's 'filepath.Match', not fnmatch(3)"}),"\n",(0,l.jsx)(n.li,{children:"Trailing spaces are always ignored (there is no supported escape sequence)"}),"\n",(0,l.jsx)(n.li,{children:"There is no support for '!' as a special leading sequence."}),"\n",(0,l.jsxs)(n.li,{children:["It does not exclude itself by default, you have to add an explicit entry for ",(0,l.jsx)(n.code,{children:".helmignore"})]}),"\n"]}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.strong,{children:"We'd love your help"})," making this document better. To add, correct, or remove\ninformation, ",(0,l.jsx)(n.a,{href:"https://github.com/helm/helm-www/issues",children:"file an issue"})," or send us a\npull request."]})]})}function h(e={}){let{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(c,{...e})}):c(e)}},28453(e,n,t){t.d(n,{R:()=>o,x:()=>s});var i=t(96540);let l={},r=i.createContext(l);function o(e){let n=i.useContext(r);return i.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:o(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.