aws-samples / eks-blueprints-add-ons

MIT No Attribution
139 stars 763 forks source link

Error when not specifying dedicated keys in metadatas #161

Closed allamand closed 1 year ago

allamand commented 1 year ago

I've not put some metadatas to configure external-dns or ingress-nginx then I got some errors:

failed to execute go template controller: service: type: {{default "LoadBalancer" .metadata.annotations.ingress_nginx_service_type}} : template: :3:44: executing "" at <.metadata.annotations.ingress_nginx_service_type>: map has no entry for key "ingress_nginx_service_type"

With configurations like :

values: |
              controller:
                service:
                  type: {{default "LoadBalancer" .metadata.annotations.ingress_nginx_service_type}}

I would like the GoTemplate to select the default value without throwing an error.