pega-helm-charts icon indicating copy to clipboard operation
pega-helm-charts copied to clipboard

GKE ingress render error for batch tier when no ingress config specified

Open misterdorito opened this issue 8 months ago • 1 comments

Describe the bug When deploying to GKE and not specifying an ingress for batch tier (which nominally wouldn't have one by convention) the following error happens:

Error: INSTALLATION FAILED: template: pega/templates/pega-tier-ingress.yaml:4:78: executing "pega/templates/pega-tier-ingress.yaml" at <$dep.ingress.enabled>: nil pointer evaluating interface {}.enabled

To Reproduce Deploy to GKE and don't specify ingress configuration for the batch tier.

Expected behavior There should be no error in the event that the ingress configuration is not provided.

Chart version Current chart (master branch).

Server (if applicable, please complete the following information): This happens on GKE deployments

Additional context The issue is that the 'and' operator in go template language is not a short-circuit operator so it evaluates all operands (some of which cause the error).

misterdorito avatar Jun 25 '24 13:06 misterdorito