Add extra configMaps support to helm chart
Signed-off-by: Stavros Foteinopoulos <stafot@gmail.com>
This commit is contained in:
parent
7f723c5985
commit
36abefd02f
4 changed files with 40 additions and 2 deletions
|
@ -19,4 +19,4 @@ maintainers:
|
||||||
name: ingress-nginx
|
name: ingress-nginx
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/kubernetes/ingress-nginx
|
- https://github.com/kubernetes/ingress-nginx
|
||||||
version: 4.8.3
|
version: 4.8.4
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[ingress-nginx](https://github.com/kubernetes/ingress-nginx) Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
[ingress-nginx](https://github.com/kubernetes/ingress-nginx) Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
To use, add `ingressClassName: nginx` spec field or the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
|
To use, add `ingressClassName: nginx` spec field or the `kubernetes.io/ingress.class: nginx` annotation to your Ingress resources.
|
||||||
|
|
||||||
|
@ -464,6 +464,7 @@ As of version `1.26.0` of this chart, by simply not providing any clusterIP valu
|
||||||
| defaultBackend.enabled | bool | `false` | |
|
| defaultBackend.enabled | bool | `false` | |
|
||||||
| defaultBackend.existingPsp | string | `""` | Use an existing PSP instead of creating one |
|
| defaultBackend.existingPsp | string | `""` | Use an existing PSP instead of creating one |
|
||||||
| defaultBackend.extraArgs | object | `{}` | |
|
| defaultBackend.extraArgs | object | `{}` | |
|
||||||
|
| defaultBackend.extraConfigMaps | list | `[]` | |
|
||||||
| defaultBackend.extraEnvs | list | `[]` | Additional environment variables to set for defaultBackend pods |
|
| defaultBackend.extraEnvs | list | `[]` | Additional environment variables to set for defaultBackend pods |
|
||||||
| defaultBackend.extraVolumeMounts | list | `[]` | |
|
| defaultBackend.extraVolumeMounts | list | `[]` | |
|
||||||
| defaultBackend.extraVolumes | list | `[]` | |
|
| defaultBackend.extraVolumes | list | `[]` | |
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
{{- if .Values.defaultBackend.enabled }}
|
||||||
|
{{- range .Values.defaultBackend.extraConfigMaps }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ .name }}
|
||||||
|
namespace: {{ include "ingress-nginx.namespace" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "ingress-nginx.labels" $ | nindent 4 }}
|
||||||
|
{{- with $.Values.defaultBackend.labels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .labels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
data:
|
||||||
|
{{- with .data }}
|
||||||
|
{{- toYaml . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -927,6 +927,21 @@ defaultBackend:
|
||||||
## Additional volumes to the default backend pod.
|
## Additional volumes to the default backend pod.
|
||||||
# - name: copy-portal-skins
|
# - name: copy-portal-skins
|
||||||
# emptyDir: {}
|
# emptyDir: {}
|
||||||
|
extraConfigMaps: []
|
||||||
|
## Additional configmaps to the default backend pod.
|
||||||
|
# Example ConfigMap, uncomment and configure as needed
|
||||||
|
# - name: my-extra-configmap-1
|
||||||
|
# labels:
|
||||||
|
# type: config-1
|
||||||
|
# data:
|
||||||
|
# extra_file_1.html: |
|
||||||
|
# <!-- Extra HTML content for ConfigMap 1 -->
|
||||||
|
# - name: my-extra-configmap-2
|
||||||
|
# labels:
|
||||||
|
# type: config-2
|
||||||
|
# data:
|
||||||
|
# extra_file_2.html: |
|
||||||
|
# <!-- Extra HTML content for ConfigMap 2 -->
|
||||||
|
|
||||||
autoscaling:
|
autoscaling:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
Loading…
Reference in a new issue