component.yaml 769 B

123456789101112131415161718
  1. {{- range $name, $config := .Values.components }}
  2. {{- $config := set . "Capabilities" $.Capabilities }}
  3. {{- $config := set . "Template" $.Template }}
  4. {{- $config := set . "name" ($name | lower) }}
  5. {{- $config := set . "Release" $.Release }}
  6. {{- $config := set . "Chart" $.Chart }}
  7. {{- $config := set . "serviceAccount" $.Values.serviceAccount }}
  8. {{- $config := set . "observability" $.Values.observability }}
  9. {{- $config := set . "defaultValues" $.Values.default }}
  10. {{- if $config.enabled -}}
  11. {{- include "otel-demo.deployment" $config -}}
  12. {{- include "otel-demo.service" $config -}}
  13. {{- include "otel-demo.ingress" $config -}}
  14. {{- include "otel-demo.configmap" $config -}}
  15. {{ end }}
  16. {{- end }}