Skip to content

Commit

Permalink
Update LogzioRegion set condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ralongit committed Jul 23, 2024
1 parent b57b55d commit c102aef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config-templates/helm.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@
},
{
"template": " --set metricsOrTraces.enabled=true \\",
"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)",
"template": " --set logzio-k8s-telemetry.secrets.LogzioRegion='<<LOGZIO_ACCOUNT_REGION_CODE>>' \\"
}
]
},
"targetElement": "((datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')]) && (&& datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')].params[?(@.name=='isObjectLogs')].value)) || @.type=='TRACING')]"
},
{
"template": " --set logzio-k8s-telemetry.metrics.enabled=true \\",
"targetElement": "datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')]",
Expand Down Expand Up @@ -91,6 +85,9 @@
"template": " --set logzio-k8s-telemetry.secrets.k8sObjectsLogsToken='<<LOGZIO_LOGS_SHIPPING_TOKEN>>' \\",
"targetElement":
"datasources[?(@.name=='Kubernetes')].telemetries[?(@.type=='METRICS')].params[?(@.name=='isObjectLogs')].value"
},
{
"template": " --set logzio-k8s-telemetry.secrets.LogzioRegion='<<LOGZIO_ACCOUNT_REGION_CODE>>' \\"
}
]
},
Expand All @@ -101,6 +98,9 @@
{
"template": " --set logzio-k8s-telemetry.secrets.TracesToken='<<LOGZIO_TRACING_SHIPPING_TOKEN>>' \\"
},
{
"template": " --set logzio-k8s-telemetry.secrets.LogzioRegion='<<LOGZIO_ACCOUNT_REGION_CODE>>' \\"
},
{
"template": " --set logzio-k8s-telemetry.spm.enabled=true \\",
"targetElement": "capabilities[?(@ == 'SPM')]",
Expand Down

0 comments on commit c102aef

Please sign in to comment.