From 764021ca09304871bb30bf3b3315c6c03141a458 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:08:09 +0100 Subject: [PATCH] [bitnami/kube-state-metrics] Add hostAliases (#5254) --- bitnami/kube-state-metrics/Chart.yaml | 2 +- bitnami/kube-state-metrics/README.md | 1 + bitnami/kube-state-metrics/templates/deployment.yaml | 3 +++ bitnami/kube-state-metrics/values.yaml | 9 +++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bitnami/kube-state-metrics/Chart.yaml b/bitnami/kube-state-metrics/Chart.yaml index d0d7cc2daa..7eedc685c2 100644 --- a/bitnami/kube-state-metrics/Chart.yaml +++ b/bitnami/kube-state-metrics/Chart.yaml @@ -23,4 +23,4 @@ name: kube-state-metrics sources: - https://github.com/bitnami/bitnami-docker-kube-state-metrics - https://github.com/kubernetes/kube-state-metrics -version: 1.1.6 +version: 1.2.0 diff --git a/bitnami/kube-state-metrics/README.md b/bitnami/kube-state-metrics/README.md index 8f2c18215b..f78fa57a7b 100644 --- a/bitnami/kube-state-metrics/README.md +++ b/bitnami/kube-state-metrics/README.md @@ -70,6 +70,7 @@ The following table lists the configurable parameters of the kube-state-metrics | `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | | `extraArgs` | Additional command line arguments to pass to kube-state-metrics | `{}` | | `namespace` | Comma-separated list of namespaces to be enabled. Defaults to all namespaces | `` | +| `hostAliases` | Add deployment host aliases | `[]` | | `collectors.certificatesigningrequests` | Enable the `certificatesigningrequests` collector | `true` | | `collectors.configmaps` | Enable the `configmaps` collector | `true` | | `collectors.cronjobs` | Enable the `cronjobs` collector | `true` | diff --git a/bitnami/kube-state-metrics/templates/deployment.yaml b/bitnami/kube-state-metrics/templates/deployment.yaml index a0b1a0b5ec..066a61c9ee 100644 --- a/bitnami/kube-state-metrics/templates/deployment.yaml +++ b/bitnami/kube-state-metrics/templates/deployment.yaml @@ -21,6 +21,9 @@ spec: {{- end }} spec: {{- include "kube-state-metrics.imagePullSecrets" . | nindent 6 }} + {{- if .Values.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} diff --git a/bitnami/kube-state-metrics/values.yaml b/bitnami/kube-state-metrics/values.yaml index 5feb9ebffd..2b38964b5f 100644 --- a/bitnami/kube-state-metrics/values.yaml +++ b/bitnami/kube-state-metrics/values.yaml @@ -9,6 +9,7 @@ global: # storageClass: myStorageClass ## Additional labels to apply to all resources + ## labels: {} # foo: bar @@ -20,6 +21,11 @@ global: ## # fullnameOverride: +## Deployment pod host aliases +## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ +## +hostAliases: [] + ## Role Based Access ## ref: https://kubernetes.io/docs/admin/authorization/rbac/ ## @@ -66,12 +72,14 @@ image: # - myRegistryKeySecretName ## Additional command line arguments to pass to kube-state-metrics +## extraArgs: {} ## Comma-separated list of namespaces to be enabled. Defaults to all namespaces # namespace: "" ## Collectors to be enabled +## collectors: certificatesigningrequests: true configmaps: true @@ -206,6 +214,7 @@ podAntiAffinityPreset: soft nodeAffinityPreset: ## Node affinity type ## Allowed values: soft, hard + ## type: "" ## Node label key to match ## E.g.