wso2 / kubernetes-apim

Kubernetes and Helm resources for WSO2 API Manager
Apache License 2.0
113 stars 216 forks source link

[4.0.0.1] Add choreo analytics configurations for the helm resources #500

Closed sajithaliyanage closed 3 years ago

sajithaliyanage commented 3 years ago

Description: $subject. Add the following configuration to the APIM deployment.toml file which can be configured through values.yaml in each patterns and single node helm resources.

{{ if .Values.wso2.choreoAnalytics.enabled }}
    [apim.analytics]
    enable = true
    config_endpoint = "{{ .Values.wso2.choreoAnalytics.endpoint }}"
    auth_token = "{{ .Values.wso2.choreoAnalytics.onpremKey }}"
{{ else }}
    [apim.analytics]
    enable = false
    config_endpoint = "https://analytics-event-auth.choreo.dev/auth/v1"
    auth_token = ""
{{ end }}