github.com/codefresh-io/kcfi@v0.0.0-20230301195427-c1578715cc46/charts/codefresh-db-infra/templates/_helpers.tpl (about)

     1  {{/* vim: set filetype=mustache: */}}
     2  {{/*
     3  Generate labels
     4  */}}
     5  {{- define "labels" }}
     6  heritage: {{ $.Release.Service | quote }}
     7  release: {{ $.Release.Name | quote }}
     8  chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
     9  app: {{ $.Chart.Name | quote }}
    10  {{- end -}}
    11  
    12  {{- define "nodeSelector" }}
    13  {{- if and .Values.nodeSelector.enabled -}}
    14  nodeSelector:
    15  {{ toYaml .Values.nodeSelector.selector | indent 2 -}}
    16  {{- end -}}
    17  {{- end -}}