From 1861971efbd0cd2c40ea6fdf03507bb64e55db11 Mon Sep 17 00:00:00 2001 From: Felipe Gonzalez Date: Tue, 30 Jan 2024 13:38:11 -0800 Subject: [PATCH] added extraObjects --- charts/ingress-nginx/README.md | 1 + .../ingress-nginx/templates/extra-manifests.yaml | 8 ++++++++ charts/ingress-nginx/values.yaml | 15 +++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 charts/ingress-nginx/templates/extra-manifests.yaml diff --git a/charts/ingress-nginx/README.md b/charts/ingress-nginx/README.md index 44bb10bd7..7ba10ccd5 100644 --- a/charts/ingress-nginx/README.md +++ b/charts/ingress-nginx/README.md @@ -532,6 +532,7 @@ As of version `1.26.0` of this chart, by simply not providing any clusterIP valu | defaultBackend.tolerations | list | `[]` | Node tolerations for server scheduling to nodes with taints # Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ # | | defaultBackend.updateStrategy | object | `{}` | The update strategy to apply to the Deployment or DaemonSet # | | dhParam | string | `""` | A base64-encoded Diffie-Hellman parameter. This can be generated with: `openssl dhparam 4096 2> /dev/null | base64` # Ref: https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/customization/ssl-dh-param | +| extraObjects | list | `[]` | Array of extra K8s manifests to deploy | | imagePullSecrets | list | `[]` | Optional array of imagePullSecrets containing private registry credentials # Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | | namespaceOverride | string | `""` | Override the deployment namespace; defaults to .Release.Namespace | | podSecurityPolicy.enabled | bool | `false` | | diff --git a/charts/ingress-nginx/templates/extra-manifests.yaml b/charts/ingress-nginx/templates/extra-manifests.yaml new file mode 100644 index 000000000..fc9a76b88 --- /dev/null +++ b/charts/ingress-nginx/templates/extra-manifests.yaml @@ -0,0 +1,8 @@ +{{ range .Values.extraObjects }} +--- +{{ if typeIs "string" . }} + {{- tpl . $ }} +{{- else }} + {{- tpl (toYaml .) $ }} +{{- end }} +{{ end }} diff --git a/charts/ingress-nginx/values.yaml b/charts/ingress-nginx/values.yaml index 5e76d2fb4..941aef3a9 100644 --- a/charts/ingress-nginx/values.yaml +++ b/charts/ingress-nginx/values.yaml @@ -913,6 +913,21 @@ controller: revisionHistoryLimit: 10 ## Default 404 backend ## + +# -- Array of extra K8s manifests to deploy +## Note: Supports use of custom Helm templates +extraObjects: [] + # - apiVersion: logging.banzaicloud.io/v1beta1 + # kind: Flow + # metadata: + # name: ingress-nginx + # namespace: ingress + # spec: + # filters: + # - tag_normaliser: {} + # globalOutputRefs: + # - logging + defaultBackend: ## enabled: false