From daf9238d3ef64fb9e437dc896b2e3963b0add520 Mon Sep 17 00:00:00 2001 From: juri Date: Wed, 27 Mar 2024 15:07:20 +0000 Subject: [PATCH] hostAliases --- charts/app/Chart.yaml | 2 +- charts/argo-applications/Chart.yaml | 2 +- charts/base/Chart.yaml | 2 +- charts/base/templates/_deploymentSpec.tpl | 14 ++++++++++++++ charts/cronjob/Chart.yaml | 2 +- charts/default-base/Chart.yaml | 2 +- charts/ingress/Chart.yaml | 2 +- charts/job/Chart.yaml | 2 +- charts/prometheus-rules/Chart.yaml | 2 +- charts/rbac/Chart.yaml | 2 +- charts/service/Chart.yaml | 2 +- 11 files changed, 24 insertions(+), 10 deletions(-) diff --git a/charts/app/Chart.yaml b/charts/app/Chart.yaml index 9162908..20bd07a 100644 --- a/charts/app/Chart.yaml +++ b/charts/app/Chart.yaml @@ -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 diff --git a/charts/argo-applications/Chart.yaml b/charts/argo-applications/Chart.yaml index 73893d6..febdbfc 100644 --- a/charts/argo-applications/Chart.yaml +++ b/charts/argo-applications/Chart.yaml @@ -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 diff --git a/charts/base/Chart.yaml b/charts/base/Chart.yaml index f46297a..6bd2607 100644 --- a/charts/base/Chart.yaml +++ b/charts/base/Chart.yaml @@ -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 diff --git a/charts/base/templates/_deploymentSpec.tpl b/charts/base/templates/_deploymentSpec.tpl index bc8afa1..a0ad273 100644 --- a/charts/base/templates/_deploymentSpec.tpl +++ b/charts/base/templates/_deploymentSpec.tpl @@ -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 */}} @@ -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 }} diff --git a/charts/cronjob/Chart.yaml b/charts/cronjob/Chart.yaml index f9ce17d..b1c412a 100644 --- a/charts/cronjob/Chart.yaml +++ b/charts/cronjob/Chart.yaml @@ -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 diff --git a/charts/default-base/Chart.yaml b/charts/default-base/Chart.yaml index b0af039..f5e92a1 100644 --- a/charts/default-base/Chart.yaml +++ b/charts/default-base/Chart.yaml @@ -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 diff --git a/charts/ingress/Chart.yaml b/charts/ingress/Chart.yaml index ffaa350..4780bd4 100644 --- a/charts/ingress/Chart.yaml +++ b/charts/ingress/Chart.yaml @@ -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 diff --git a/charts/job/Chart.yaml b/charts/job/Chart.yaml index 3475a30..fed31bd 100644 --- a/charts/job/Chart.yaml +++ b/charts/job/Chart.yaml @@ -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 diff --git a/charts/prometheus-rules/Chart.yaml b/charts/prometheus-rules/Chart.yaml index f0131fc..211f294 100644 --- a/charts/prometheus-rules/Chart.yaml +++ b/charts/prometheus-rules/Chart.yaml @@ -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 diff --git a/charts/rbac/Chart.yaml b/charts/rbac/Chart.yaml index b76779c..1163464 100644 --- a/charts/rbac/Chart.yaml +++ b/charts/rbac/Chart.yaml @@ -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 diff --git a/charts/service/Chart.yaml b/charts/service/Chart.yaml index 61328dd..8444307 100644 --- a/charts/service/Chart.yaml +++ b/charts/service/Chart.yaml @@ -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