Skip to content

hotfix: allow rendering extra port services #259

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

Merged
merged 2 commits into from
Mar 28, 2025

Conversation

d3adb5
Copy link
Contributor

@d3adb5 d3adb5 commented Mar 28, 2025

When using .Values.minecraftServer.extraPorts with the Service resource
enabled and not embedded, template rendering is failing due to the invocation of
minecraft.fullname with the context being . instead of $.

This effectively fixes it.

Minimal values file to reproduce the issue on 4.26.0:

minecraftServer:
  extraPorts:
    - name: voice-chat
      containerPort: 24454
      service:
        enabled: true
        embedded: false
        port: 24454

Running a helm template with this results in the following error:

Error: template: minecraft/templates/_helpers.tpl:32:14: executing "minecraft.fullname" at <.Values.fullnameOverride>: nil pointer evaluating interface {}.fullnameOverride

d3adb5 added 2 commits March 28, 2025 11:19
Fix rendering of extra port services, previously broken due to an
invocation of the "minecraft.fullname" partial on a local context within
a range loop.
Bump chart version accordingly.
@itzg itzg added the bug Something isn't working label Mar 28, 2025
Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

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

Thanks!

@itzg itzg merged commit 7ce7466 into itzg:master Mar 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants