Skip to content

Commit

Permalink
Allow hostAliases definition (#109)
Browse files Browse the repository at this point in the history
* Add common.tplvalues helpers

* Add ability to define hostAliases

* Update version in Chart.yaml

* correct syntaxe with simpler way

* update with review

* change version of the chart

* Revert "change version of the chart"

This reverts commit a1ad137.

* remove bump version + add more comments about hostAliases

* fix lint empty-lines

* fix ci trailing-spaces from commit 29d2466

---------

Co-authored-by: Jean-Michel Crepel <[email protected]>
Co-authored-by: Emilien Devos <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 2b0c631 commit 509ff70
Show file tree
Hide file tree
Showing 18 changed files with 76 additions and 1 deletion.
4 changes: 4 additions & 0 deletions templates/analytics/analytics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/cas/cas-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/console/console-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/datafeeder/datafeeder-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/datafeeder/import-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/gateway/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/geonetwork/elasticsearch/es-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}

4 changes: 4 additions & 0 deletions templates/geonetwork/geonetwork-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/geonetwork/kibana/kibana-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/geowebcache/geowebcache-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/header/header-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,9 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}

4 changes: 4 additions & 0 deletions templates/ldap/openldap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/mapstore/mapstore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,9 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}

4 changes: 4 additions & 0 deletions templates/security-proxy/security-proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions templates/smtp-smarthost/smtp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ spec:
tolerations:
{{- $webapp.tolerations | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases:
{{- .Values.hostAliases | toYaml | nindent 8 }}
{{- end }}
{{- end -}}
9 changes: 8 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ georchestra:
harvester_logs:
enabled: false
schedule: "0 1 * * *"
tolerations: []
tolerations: []
service:
annotations: {}
geoserver:
Expand Down Expand Up @@ -392,3 +392,10 @@ rabbitmq:
# pv_name: rabbitmq-data
# storage_class_name: default
# size: 1Gi

# Allow to override /etc/hosts for ALL apps
# https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/
hostAliases: []
# - ip: "127.0.0.1"
# hostnames:
# - "host.alias.com"

0 comments on commit 509ff70

Please sign in to comment.