Skip to content

batazor/hcfc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hcfc

generate Helm Chart from yaml config

Getting start

go get -u github.com/batazor/hcfc/cmd/hcfc

hcfc init // Create deploy.yaml
hcfc generate -o ./mychart -f deploy.yaml

value.yaml

chart:
  name: hcfc
  description: ""
  version: 0.1.0
 
deployment:
  image:
    repository: alpine
    tag: latest
 
service:
  type: ClusterIP

ingress:
  enable: true
  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