Skip to content

Commit

Permalink
hostAliases
Browse files Browse the repository at this point in the history
  • Loading branch information
juri committed Mar 27, 2024
1 parent 9f24f6c commit daf9238
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: app
description: A Helm chart for Kubernetes Deployment
type: application

version: 0.13.8
version: 0.13.9

keywords:
- deployment
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-applications/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: argo-applications
description: A Helm chart for Kubernetes argo applications
type: application

version: 0.13.8
version: 0.13.9

keywords:
- argocd
Expand Down
2 changes: 1 addition & 1 deletion charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: base
description: A Helm chart for Kubernetes with helm named templates
type: library

version: 0.13.8
version: 0.13.9

keywords:
- deployment
Expand Down
14 changes: 14 additions & 0 deletions charts/base/templates/_deploymentSpec.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,19 @@ args:
{{- end }}
{{- end }}

{{/*
define pod command and args
*/}}
{{- define "base.hostAliases" -}}
{{- if .hostNetwork }}
hostNetwork: {{ .hostNetwork }}
{{- end }}
{{- with .hostAliases }}
hostAliases:
{{ toYaml . | indent 2 }}
{{- end }}
{{- end }}

{{/*
define pod service account
*/}}
Expand Down Expand Up @@ -281,5 +294,6 @@ define default container properties
{{- include "base.podSecurityContext" .Values }}
{{- include "base.NodeScheduling" . }}
{{- include "base.serviceAccount" .Values }}
{{- include "base.hostAliases" .Values }}
{{- include "base.priorityClassName" .Values }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/cronjob/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cronjob
description: A Helm chart for Kubernetes cronjob
type: application

version: 0.13.8
version: 0.13.9

keywords:
- cronjob
Expand Down
2 changes: 1 addition & 1 deletion charts/default-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: default-base
description: A Helm chart for Kubernetes - default-base for namespaces

version: 0.13.8
version: 0.13.9

keywords:
- BackendConfig
Expand Down
2 changes: 1 addition & 1 deletion charts/ingress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ingress
description: A Helm chart for Kubernetes ingress
type: application

version: 0.13.8
version: 0.13.9

keywords:
- ingress
Expand Down
2 changes: 1 addition & 1 deletion charts/job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: job
description: A Helm chart for Kubernetes job
type: application

version: 0.13.8
version: 0.13.9

keywords:
- job
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-rules/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: prometheus-rules
description: A Helm chart for Prometheus Rules
type: application

version: 0.13.8
version: 0.13.9

keywords:
- job
Expand Down
2 changes: 1 addition & 1 deletion charts/rbac/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: rbac
description: A Helm chart for Kubernetes rbac
type: application

version: 0.13.8
version: 0.13.9

keywords:
- rbac
Expand Down
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: service
description: A Helm chart for Kubernetes service
type: application

version: 0.13.8
version: 0.13.9

keywords:
- service
Expand Down

0 comments on commit daf9238

Please sign in to comment.