From e38956cd40878f192b4de2b11d88a3c9ceff8225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n-Garc=C3=ADa?= Date: Wed, 27 Jan 2021 10:04:13 +0100 Subject: [PATCH] [bitnami/jenkins] Add hostAliases (#5246) --- bitnami/jenkins/Chart.yaml | 2 +- bitnami/jenkins/README.md | 1 + bitnami/jenkins/templates/deployment.yaml | 3 +++ bitnami/jenkins/values.yaml | 5 +++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bitnami/jenkins/Chart.yaml b/bitnami/jenkins/Chart.yaml index 0f64e5afb2..7da71e6f5b 100644 --- a/bitnami/jenkins/Chart.yaml +++ b/bitnami/jenkins/Chart.yaml @@ -26,4 +26,4 @@ name: jenkins sources: - https://github.com/bitnami/bitnami-docker-jenkins - https://jenkins.io/ -version: 7.2.2 +version: 7.3.0 diff --git a/bitnami/jenkins/README.md b/bitnami/jenkins/README.md index 7e6f0779b7..f1c57d4998 100644 --- a/bitnami/jenkins/README.md +++ b/bitnami/jenkins/README.md @@ -95,6 +95,7 @@ The following tables lists the configurable parameters of the Jenkins chart and |-----------------------------|-------------------------------------------------------------------------------------------|---------------------------------------------| | `podSecurityContext` | Jenkins pods' Security Context | Check `values.yaml` file | | `containerSecurityContext` | Jenkins containers' Security Context | Check `values.yaml` file | +| `hostAliases` | Add deployment host aliases | `[]` | | `resources.limits` | The resources limits for the Jenkins container | `{}` | | `resources.requests` | The requested resources for the Jenkins container | `{ cpu: "300m", memory: "512Mi" }` | | `livenessProbe` | Liveness probe configuration for Jenkins | Check `values.yaml` file | diff --git a/bitnami/jenkins/templates/deployment.yaml b/bitnami/jenkins/templates/deployment.yaml index a3d2737f15..03a0a74353 100644 --- a/bitnami/jenkins/templates/deployment.yaml +++ b/bitnami/jenkins/templates/deployment.yaml @@ -31,6 +31,9 @@ spec: {{- end }} spec: {{- include "jenkins.imagePullSecrets" . | nindent 6 }} + {{- if .Values.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} + {{- end }} {{- if .Values.affinity }} affinity: {{- include "common.tplvalues.render" (dict "value" .Values.affinity "context" $) | nindent 8 }} {{- else }} diff --git a/bitnami/jenkins/values.yaml b/bitnami/jenkins/values.yaml index 3bcd80032b..8127ca0016 100644 --- a/bitnami/jenkins/values.yaml +++ b/bitnami/jenkins/values.yaml @@ -41,6 +41,11 @@ kubeVersion: ## # fullnameOverride: +## Deployment pod host aliases +## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ +## +hostAliases: [] + ## Add labels to all the deployed resources ## commonLabels: {}