Skip to content

fix: add toYaml for extraTls in ingress templates#62

Open
davidloz wants to merge 1 commit into
hoppscotch:mainfrom
davidloz:fix/ingress-extratls-toyaml
Open

fix: add toYaml for extraTls in ingress templates#62
davidloz wants to merge 1 commit into
hoppscotch:mainfrom
davidloz:fix/ingress-extratls-toyaml

Conversation

@davidloz
Copy link
Copy Markdown

The extraTls field is an array but was being passed directly to nindnet, causing template rendering to fail.

This fix adds the toYaml function to properly convert the array to YAML before indenting, consistent with how extraRules and extraPaths are handled in the same templates.

The extraTls field is an array but was being passed directly to nindnet, causing template rendering to fail.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes Helm ingress template rendering for Hoppscotch by correctly serializing the extraTls array to YAML before indenting, matching how other “extra*” ingress fields are rendered.

Changes:

  • Render *.ingress.extraTls with toYaml | nindent (instead of nindent directly) to avoid Helm type/rendering errors.
  • Apply the same fix across frontend, backend, admin, and aio ingress templates for consistent behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
charts/hoppscotch/templates/frontend/ingress.yaml Serialize frontend.ingress.extraTls with toYaml before indenting under spec.tls.
charts/hoppscotch/templates/backend/ingress.yaml Serialize backend.ingress.extraTls with toYaml before indenting under spec.tls.
charts/hoppscotch/templates/aio/ingress.yaml Serialize aio.ingress.extraTls with toYaml before indenting under spec.tls.
charts/hoppscotch/templates/admin/ingress.yaml Serialize admin.ingress.extraTls with toYaml before indenting under spec.tls.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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