Closed quintonanderson-zetaris closed 2 years ago
I figured out that this issue relates to #460, therefore updating the annotations targetPath fixes the issue: targetPath: controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-resource-group"
I am currently trying to source values for a HelmRelease from an existing ConfigMap within the cluster. The HelmRelease is being used to install nginx ingress controller, against a AKS cluster with a static IP address. As a result of the static external IP address, the ingress controller needs to know the public IP address and its associated resource group.
When I statically assign the values, everything works fine:
The IP address and resource name are created by Terraform and stored into a ConfigMap using the following Terraform resource:
Therefore at cluster creation time, a configMap is created to with the Terraform managed state, which Flux can then use to manage Kubernetes level resources. Here you can see the resulting ConfigMap:
However when I try to use the
valuesFrom
, I get the following error:Helm upgrade failed: YAML parse error on ingress-nginx/templates/controller-service.yaml: error converting YAML to JSON: yaml: line 4: did not find expected key...
. Here is the snippet of relevant config (replacing the static values above):