Skip to content

Conversation

@Cubid
Copy link
Contributor

@Cubid Cubid commented Oct 2, 2025

This MR add support for hostAliases

I need this to be able to target npmjs registry which DNS resolution has been dropped from our clusters

@juanpicado juanpicado requested a review from Copilot November 27, 2025 18:26
Copilot finished reviewing on behalf of juanpicado November 27, 2025 18:32
Copy link
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 adds support for Kubernetes hostAliases to the Verdaccio Helm chart, enabling users to configure custom DNS resolutions within pods. This is particularly useful when DNS resolution for certain registries (like npmjs) has been removed from clusters, allowing manual IP-to-hostname mappings to be configured.

Key Changes

  • Added hostAliases configuration option to values.yaml with example documentation
  • Applied hostAliases to both deployment and statefulset pod specs
  • Maintained consistency with existing pod-level configuration patterns

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
charts/verdaccio/values.yaml Introduces hostAliases configuration field with example showing how to map IP addresses to hostnames
charts/verdaccio/templates/statefulset.yaml Adds conditional rendering of hostAliases to the pod spec when using statefulset deployment type
charts/verdaccio/templates/deployment.yaml Adds conditional rendering of hostAliases to the pod spec when using deployment type

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

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@juanpicado juanpicado merged commit 55f89d1 into verdaccio:master Nov 27, 2025
3 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