pangeo-forge / pangeo-forge-cloud-federation

Infrastructure for running pangeo-forge across multiple bakeries
Apache License 2.0
3 stars 6 forks source link

kubernetes.jobmanager.annotations result in parse error #7

Open ranchodeluxe opened 9 months ago

ranchodeluxe commented 9 months ago

Problem

Using templatfile or yamlencode for kubernetes.jobmanager.annotations Map both result in the operator reporting

[WARN ] Error while trying to split key and value in configuration file /opt/flink/conf/flink-conf.yaml:55: Line is not a key-value pair (missing space after ':'?)

It seems an inline literal Map works fine but good luck getting that to be rendered using templatefile or yamlencode: kubernetes.jobmanager.annotations: {"prometheus.io/scrape": true, "prometheus.io/port": 9999}

Background thread: https://github.com/pangeo-forge/pangeo-forge-cloud-federation/pull/6#discussion_r1417992014