项目作者: batazor

项目描述 :
generate Helm Chart from yaml config
高级语言: Go
项目地址: git://github.com/batazor/hcfc.git
创建时间: 2019-03-13T14:18:18Z
项目社区:https://github.com/batazor/hcfc

开源协议:Apache License 2.0

下载


hcfc

generate Helm Chart from yaml config

Getting start

  1. go get -u github.com/batazor/hcfc/cmd/hcfc
  2. hcfc init // Create deploy.yaml
  3. hcfc generate -o ./mychart -f deploy.yaml

value.yaml

  1. chart:
  2. name: hcfc
  3. description: ""
  4. version: 0.1.0
  5. deployment:
  6. image:
  7. repository: alpine
  8. tag: latest
  9. service:
  10. type: ClusterIP
  11. ingress:
  12. enable: true
  13. domain: example.com

Function template

  1. ignore {{ ignore .Values.Cat }} => {{ .Values.Cat }}
  2. text {{ text .Values.Cat }} => .Values.Cat
  3. toToml
  4. toYaml
  5. fromYaml
  6. toJson
  7. fromJson
  8. include
  9. required
  10. tpl