Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: render ingress host also when using tls. #167

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

kaos
Copy link
Contributor

@kaos kaos commented Feb 22, 2024

Description of the change

The ingress.host value is supported to use helm templating when used in the rules section of the Ingress resource, but when enabling TLS, it uses the host value un-rendered so it breaks if using template syntax.

This change renders the ingress.host for all uses, along with ingress.tls.secretName to make it more flexible as well.

Existing or Associated Issue(s)

Additional Information

Checklist

  • Chart version bumped in Chart.yaml according to semver.
  • Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
  • JSON Schema generated.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

@kaos kaos requested a review from a team as a code owner February 22, 2024 12:24
@kaos
Copy link
Contributor Author

kaos commented Feb 22, 2024

Hi, my first contribution here. 👋🏽

I can update the variable description and other todo items as needed, if this change is acceptable :)

Are there any contributing guidelines to follow to setup the pre-commit hooks and how to generate the JSON schema etc?

Copy link
Member

@vinzscam vinzscam left a comment

Choose a reason for hiding this comment

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

Välkommen @kaos, nice finding! 👏

Are there any contributing guidelines to follow to setup the pre-commit hooks and how to generate the JSON schema etc?

the hooks should run automagically, also your changes aren't affecting any values so all good 😄

just a couple of missing things to help CI checks pass:

Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
@kaos kaos force-pushed the kaos/tpl-ingress-values branch from 986e4c5 to f11e633 Compare February 23, 2024 07:13
@kaos kaos requested a review from vinzscam February 23, 2024 07:15
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
@kaos
Copy link
Contributor Author

kaos commented Feb 23, 2024

the hooks should run automagically

Not sure.. I installed pre-commit and then ran pre-commit install, and now the hooks run as they should ;)

@vinzscam vinzscam merged commit 5473e3f into backstage:main Feb 23, 2024
3 checks passed
@kaos kaos deleted the kaos/tpl-ingress-values branch February 25, 2024 13:22
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