apiVersion: v1
kind: ConfigMap
metadata:
  name: fluvio-config-map
data:
  fluvioClientConfig: |
    version = "2.0"
    current_profile = "k8-config-map-deployment"

    [profile.k8-config-map-deployment]
    cluster = "k8-config-map-deployment"

    [cluster.k8-config-map-deployment]
    {{ if .Values.tls }}
    endpoint = "fluvio-sc-public:9005"
    {{else}}
    endpoint = "fluvio-sc-public:9003"
    {{end}}
    use_spu_local_address = true
    [cluster.k8-config-map-deployment.tls]
    tls_policy = "disabled"
