专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

jnorwood/helm-docs Docker 镜像 - 轩辕镜像

helm-docs
jnorwood/helm-docs
1 收藏0 次下载
📦 一套镜像服务,解决研发 / 测试 / 生产三套环境
镜像简介版本下载
📦 一套镜像服务,解决研发 / 测试 / 生产三套环境

helm-docs

![Go Report Card]([***]

The helm-docs tool generates automatic documentation from helm charts into a markdown file. The resulting file contains metadata about the chart and a table with all of your charts' values, their defaults, and an optional description parsed from comments.

The markdown generation is entirely gotemplate driven. The tool parses metadata from charts and generates a number of sub-templates that can be referenced in a template file (by default README.md.gotmpl). If no template file is provided, the tool has a default internal template that will generate a reasonably formatted README.

Installation

helm-docs can be installed using homebrew:

brew install norwoodj/tap/helm-docs

This will download and install the latest release of the tool.

To build from source in this repository:

cd cmd/helm-docs
go build

Usage

To run and generate documentation into READMEs for all helm charts within or recursively contained by a directory:

bash
helm-docs
# OR
helm-docs --dry-run # prints generated documentation to stdout rather than modifying READMEs

The tool searches recursively through subdirectories of the current directory for Chart.yaml files and generates documentation for every chart that it finds.

Available Templates

The templates generated by the tool are shown below, and can be included in your README.md.gotmpl file like so:

{{ template "template-name" . }}
NameDescription
chart.headerThe main heading of the generated markdown file
chart.descriptionA description line containing the description field from the chart's Chart.yaml file, or "" if that field is not set
chart.versionThe version field from the chart's Chart.yaml file
chart.versionLineA text line stating the current version of the chart
chart.typeThe type field from the chart's Chart.yaml file
chart.typeLineA text line stating the current type of the chart
chart.sourceLinkThe home link from the chart's Chart.yaml file, or "" if that field is not set
chart.sourceLinkLineA text line with the home link from the chart's Chart.yaml file, or "" if that field is not set
chart.requirementsHeaderThe heading for the chart requirements section
chart.requirementsTableA table of the chart's required sub-charts
chart.requirementsSectionA section headed by the requirementsHeader from above containing the requirementsTable from above or "" if there are no requirements
chart.valuesHeaderThe heading for the chart values section
chart.valuesTableA table of the chart's values parsed from the values.yaml file (see below)
chart.valuesSectionA section headed by the valuesHeader from above containing the valuesTable from above or "" if there are no values

For an example of how these various templates can be used in a README.md.gotmpl file to generate a reasonable markdown file, look at the charts in example-charts.

If there is no README.md.gotmpl (or other specified gotmpl file) present, the default template is used to generate the README. That template looks like so:

{{ template "chart.header" . }}
{{ template "chart.description" . }}

{{ template "chart.versionLine" . }}

{{ template "chart.sourceLinkLine" . }}

{{ template "chart.requirementsSection" . }}

{{ template "chart.valuesSection" . }}

The tool includes the sprig templating library, so those functions can be used in the templates you supply.

Ignoring Chart Directories

helm-docs supports a .helmdocsignore file, exactly like a .gitignore file in which one can specify directories to ignore when searching for charts. Directories specified need not be charts themselves, so parent directories containing potentially many charts can be ignored and none of the charts underneath them will be processed. You may also directly reference the Chart.yaml file for a chart to skip processing for it.

values.yaml metadata

This tool can parse descriptions and defaults of values from values.yaml files. The defaults are pulled directly from the yaml in the file. Descriptions can be added for parameters by specifying the full path of the value and a particular comment format. I invite you to check out the example-charts to see how this is done in practice. In order to add a description for a parameter you need only put a comment somewhere in the file of the format:

yaml
controller:
  publishService:
    # controller.publishService.enabled -- Whether to expose the ingress controller to the public world
    enabled: false

  # controller.replicas -- Number of nginx-ingress pods to load balance between.
  # Do not set this below 2.
  replicas: 2

Note that comments can continue on the next line. In that case leave out the double dash, and the lines will simply be appended with a space in-between.

The following rules are used to determine which values will be added to the values table in the README:

  • By default, only leaf nodes, that is, fields of type int, string, float, bool, empty lists, and empty maps are added as rows in the values table. These fields will be added even if they do not have a description comment
  • Lists and maps which contain elements will not be added as rows in the values table unless they have a description comment which refers to them
  • Adding a description comment for a non-empty list or map in this way makes it so that leaf nodes underneath the described field will not be automatically added to the values table. In order to document both a non-empty list/map and a leaf node within that field, description comments must be added for both

e.g. In this case, both controller.livenessProbe and controller.livenessProbe.httpGet.path will be added as rows in the values table, but controller.livenessProbe.httpGet.port will not

yaml
controller:
  # controller.livenessProbe -- Configure the healthcheck for the ingress controller
  livenessProbe:
    httpGet:
      # controller.livenessProbe.httpGet.path -- This is the liveness check endpoint
      path: /healthz
      port: http

Results in:

KeyTypeDefaultDescription
controller.livenessProbeobject{"httpGet":{"path":"/healthz","port":8080}}Configure the healthcheck for the ingress controller
controller.livenessProbe.httpGet.pathstring"/healthz"This is the liveness check endpoint

If we remove the comment for controller.livenessProbe however, both leaf nodes controller.livenessProbe.httpGet.path and controller.livenessProbe.httpGet.port will be added to the table, with our without description comments:

yaml
controller:
  livenessProbe:
    httpGet:
      # controller.livenessProbe.httpGet.path -- This is the liveness check endpoint
      path: /healthz
      port: http

Results in:

KeyTypeDefaultDescription
controller.livenessProbe.httpGet.pathstring"/healthz"This is the liveness check endpoint
controller.livenessProbe.httpGet.portstring"http"
nil values

If you would like to define a key for a value, but leave the default empty, you can still specify a description for it as well as a type. Like so:

yaml
controller:
  # controller.replicas -- (int) Number of nginx-ingress pods to load balance between
  replicas:

This could be useful when wanting to enforce user-defined values for the chart, where there are no sensible defaults.

Default values/column

In cases where you do not want to include the default value from values.yaml, or where the real default is calculated inside the chart, you can change the contents of the column like so:

yaml
service:
  # service.annotations -- Add annotations to the service
  # @default -- the chart will add some internal annotations automatically
  annotations: []

The order is important. The name must be spelled just like the column heading. The first comment must be the one specifying the key. The "@default" comment must follow.

See here for an example.

Spaces and Dots in keys

If a key name contains any "." or " " characters, that section of the path must be quoted in description comments e.g.

yaml
service:
  annotations:
    # service.annotations."external-dns.alpha.kubernetes.io/hostname" -- Hostname to be assigned to the ELB for the service
    external-dns.alpha.kubernetes.io/hostname: stupidchess.jmn23.com

configMap:
  # configMap."not real config param" -- A completely fake config parameter for a useful example
  not real config param: value

Pre-commit hook

If you want to automatically generate README.md files with a pre-commit hook, make sure you install the pre-commit binary, and add a .pre-commit-config.yaml file to your project. Then run:

bash
pre-commit install
pre-commit install-hooks

Future changes to your charts requirements.yaml, values.yaml, or Chart.yaml files will cause an update to documentation when you commit.

查看更多 helm-docs 相关镜像 →
rancher/klipper-helm logo
rancher/klipper-helm
暂无描述
2100M+ pulls
上次更新:未知
grafana/docs-base logo
grafana/docs-base
用于本地测试Grafana文档网站的Docker镜像
1500K+ pulls
上次更新:未知
alpine/helm logo
alpine/helm
当Kubernetes Helm有新发布时自动触发Docker构建的镜像
7050M+ pulls
上次更新:未知
rancher/docs logo
rancher/docs
用于部署和运行文档网站的Docker镜像,提供便捷的文档站点搭建与服务能力。
2100K+ pulls
上次更新:未知
grafana/loki-helm-test logo
grafana/loki-helm-test
暂无描述
100K+ pulls
上次更新:未知
onlyoffice/docs-utils logo
onlyoffice/docs-utils
暂无描述
50K+ pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
jnorwood/helm-docs
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.