diff --git a/config-templates/helm.json b/config-templates/helm.json index 378c0f27c..5dad652b9 100644 --- a/config-templates/helm.json +++ b/config-templates/helm.json @@ -27,7 +27,7 @@ "targetElement": "datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS' || @.type=='TRACING')]", "conditionalTemplates": [ { - "condition": "((datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')]) && (datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')].params[?(@.name=='isObjectLogs')].value)) || (datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='TRACING')])", + "condition": "((datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')].length > 0) && (datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')].params[?(@.name=='isObjectLogs')].value)) || (datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='TRACING')].length > 0)", "template": " --set logzio-k8s-telemetry.secrets.LogzioRegion='<>' \\" } ]