1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How to parse helm chart yaml file using python

Discussão em 'Python' iniciado por Stack, Setembro 28, 2024 às 07:42.

  1. Stack

    Stack Membro Participativo

    I am trying to parse a helm chart YAML file using python. The file contains some curly braces, that's why I am unable to parse the YAML file.

    a sample YAML file

    apiVersion: v1
    kind: ConfigMap
    metadata:
    name: {{ .Values.nginx.name }}-config-map
    labels:
    app: {{ .Values.nginx.name }}-config-map
    data:
    SERVER_NAME: 12.121.112.12
    CLIENT_MAX_BODY: 500M
    READ_TIME_OUT: '500000'


    Basically, I could not figure out how to ignore the values present at right side.

    Thank you,

    Continue reading...

Compartilhe esta Página