Skip to content

helm: refactor ingress.yaml to improve structure and support multiple hosts MAPCO-10675#243

Merged
michalby24 merged 2 commits into
masterfrom
ingress-support
Jun 1, 2026
Merged

helm: refactor ingress.yaml to improve structure and support multiple hosts MAPCO-10675#243
michalby24 merged 2 commits into
masterfrom
ingress-support

Conversation

@michalby24

Copy link
Copy Markdown
Contributor
Question Answer
Bug fix ✔/✖
New feature ✔/✖
Breaking change ✔/✖
Deprecations ✔/✖
Documentation ✔/✖
Tests added ✔/✖
Chore ✔/✖

Related issues: #XXX , #XXX ...
Closes #XXX ...

Further information:

@github-actions

github-actions Bot commented May 28, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 80%) 765 / 765
🔵 Statements 100% (🎯 80%) 782 / 782
🔵 Functions 100% (🎯 80%) 111 / 111
🔵 Branches 100% (🎯 80%) 217 / 217
File CoverageNo changed files found.
Generated in workflow #730 for commit f0d1653 by the Vitest Coverage Report Action

@michalby24 michalby24 changed the title helm: refactor ingress.yaml to improve structure and support multiple hosts helm: refactor ingress.yaml to improve structure and support multiple hosts MAPCO-10675 Jun 1, 2026
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

🎫 Related Jira Issue: MAPCO-10675

@ronenkapelian ronenkapelian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The template uses six new ingress.* fields that have no defaults in values.yaml. Running helm template or helm lint with a bare values.yaml will silently produce incomplete output for those fields (nil variables), and any chart consumer expecting documented defaults will be surprised.

  2. ingress.cors remains in values.yaml but is no longer referenced anywhere in the template — it is dead configuration. should it be templated?

3.Ingress resource name changed ( Breaking) - validate on kela, etc, that the new ingresses and dns working after naming change

Comment thread helm/templates/ingress.yaml Outdated
add_header 'Access-Control-Expose-Headers' 'Content-Length';
add_header 'Access-Control-Allow-Headers' '*';
{{- range $key, $value := . }}
{{ $key }}: {{ tpl $value $ | quote }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tpl function requires its first argument to be a string. When an annotation value is an integer or boolean in YAML (e.g. proxy-read-timeout: 60), Helm throws a hard error

Convert the value to a string before passing it to tpl:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@michalby24 michalby24 merged commit 6bb4a1b into master Jun 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants