Skip to content

Commit 55f89d1

Browse files
CubidjuanpicadoCopilot
authored
feat: add hostAliases support (#173)
* feat: add hostAliases support * Update charts/verdaccio/values.yaml Co-authored-by: Copilot <[email protected]> * Update charts/verdaccio/values.yaml Co-authored-by: Copilot <[email protected]> * Update Chart.yaml --------- Co-authored-by: Juan Picado <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 47ac4b3 commit 55f89d1

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

charts/verdaccio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A lightweight private node.js proxy registry
33
name: verdaccio
4-
version: 4.26.1
4+
version: 4.27.0
55
appVersion: 6.0.5
66
home: https://verdaccio.org
77
icon: https://cdn.verdaccio.dev/logos/default.png

charts/verdaccio/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,8 @@ spec:
185185
topologySpreadConstraints:
186186
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
187187
{{- end }}
188+
{{- if .Values.hostAliases }}
189+
hostAliases:
190+
{{- toYaml .Values.hostAliases | nindent 8 }}
191+
{{- end }}
188192
{{- end -}}

charts/verdaccio/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ spec:
171171
topologySpreadConstraints:
172172
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
173173
{{- end }}
174+
{{- if .Values.hostAliases }}
175+
hostAliases:
176+
{{- toYaml .Values.hostAliases | nindent 8 }}
177+
{{- end }}
174178
volumeClaimTemplates:
175179
- metadata:
176180
name: storage

charts/verdaccio/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ existingSecret: ""
133133
# Extra Init Containers - allows yaml definitions
134134
extraInitContainers: []
135135

136+
## Configure hostAliases to add extra DNS resolutions
137+
## Ref: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/
138+
hostAliases: []
139+
# - ip: "104.16.24.34"
140+
# hostnames:
141+
# - "registry.npmjs.org"
142+
136143
configMap: |
137144
# This is the config file used for the docker images
138145
# It allows all users to do anything, so don't use it on production systems.

0 commit comments

Comments
 (0)