{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}

{{- if .Values.env.enable_integration -}}
{{- $_ := set .Values "serviceAccount" (include "flame.integration.serviceAccount" . | fromYaml) -}}
{{- $_ := set .Values "rbac" (include "flame.integration.rbac" . | fromYaml) -}}
{{- end -}}

{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}
