【问题标题】:What's the order of execution of the yamls in the helm templates/ directory?helm templates/ 目录中 yamls 的执行顺序是什么?
【发布时间】:2019-10-05 06:54:14
【问题描述】:

我是舵手/舵手新手。我的图表目录如下所示:

$ helm create mychart

$ tree mychart
mychart
├── Chart.yaml
├── templates
│   ├── daemonset.yaml
│   ├── ingress.yaml
│   ├── ingress_external.yaml
│   ├── ingress_path.yaml
│   ├── rbac.yaml
│   └── service.yaml
└── tests
    ├── daemonset_test.yaml
    ├── ingress_external_test.yaml
    ├── ingress_test.yaml
    └── service_test.yaml

在安装此图表时,模板的执行顺序是否已明确定义,或者 templates/ 目录下的 yaml 文件是否以不确定的顺序执行?模板是否按字母顺序执行?

谢谢。

【问题讨论】:

标签: kubernetes-helm


【解决方案1】:

在 v3.1.0 中添加了订单

  // expectation is sorted by kind (unknown is last) and within each

同类组,保持顺序 {"cm,clusterRole,clusterRoleBinding,Unknown,Unknown2", InstallOrder, "01aAz!u2u1t3"},

https://github.com/helm/helm/pull/6842/commits/4d8160eedf43db8ed137

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-20
    • 1970-01-01
    • 1970-01-01
    • 2020-02-14
    • 2011-10-10
    相关资源
    最近更新 更多