Revert "Add extra configMaps support to helm chart (#10673)"
This reverts commit 1f06e26080
.
This commit is contained in:
parent
1f06e26080
commit
c1b3f2b56c
8 changed files with 2 additions and 100 deletions
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
|
@ -163,14 +163,6 @@ jobs:
|
||||||
go-version: '1.21.3'
|
go-version: '1.21.3'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Install Helm Unit Test Plugin
|
|
||||||
run: |
|
|
||||||
helm plugin install https://github.com/quintush/helm-unittest
|
|
||||||
|
|
||||||
- name: Run Helm Unit Tests
|
|
||||||
run: |
|
|
||||||
helm unittest charts/ingress-nginx -d
|
|
||||||
|
|
||||||
- name: cache
|
- name: cache
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
||||||
with:
|
with:
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -61,4 +61,3 @@ cmd/plugin/release/*.tar.gz
|
||||||
cmd/plugin/release/LICENSE
|
cmd/plugin/release/LICENSE
|
||||||
tmp/
|
tmp/
|
||||||
test/junitreports/
|
test/junitreports/
|
||||||
tests/__snapshot__
|
|
||||||
|
|
|
@ -20,4 +20,3 @@
|
||||||
.idea/
|
.idea/
|
||||||
*.tmproj
|
*.tmproj
|
||||||
.vscode/
|
.vscode/
|
||||||
__snapshot__
|
|
||||||
|
|
|
@ -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.4
|
version: 4.8.3
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
@ -465,7 +465,6 @@ 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 | `[]` | |
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
{{- if .Values.defaultBackend.enabled }}
|
|
||||||
{{- range .Values.defaultBackend.extraConfigMaps }}
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ .name }}
|
|
||||||
namespace: {{ include "ingress-nginx.namespace" $ | quote }}
|
|
||||||
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 }}
|
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
suite: test default backend extra ConfigMaps
|
|
||||||
templates:
|
|
||||||
- default-backend-extra-configmaps.yaml
|
|
||||||
|
|
||||||
tests:
|
|
||||||
- it: should not create any ConfigMap by default
|
|
||||||
set:
|
|
||||||
Release.Namespace: default
|
|
||||||
defaultBackend.enabled: true
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 0
|
|
||||||
|
|
||||||
- it: should create one ConfigMap
|
|
||||||
set:
|
|
||||||
Release.Namespace: default
|
|
||||||
defaultBackend.enabled: true
|
|
||||||
defaultBackend.extraConfigMaps:
|
|
||||||
- name: my-configmap-1
|
|
||||||
data:
|
|
||||||
key1: value1
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 1
|
|
||||||
- isKind:
|
|
||||||
of: ConfigMap
|
|
||||||
- equal:
|
|
||||||
path: metadata.name
|
|
||||||
value: my-configmap-1
|
|
||||||
|
|
||||||
- it: should correctly render multiple ConfigMaps
|
|
||||||
set:
|
|
||||||
Release.Namespace: nginx
|
|
||||||
defaultBackend.enabled: true
|
|
||||||
defaultBackend.extraConfigMaps:
|
|
||||||
- name: my-configmap-1
|
|
||||||
data:
|
|
||||||
key1: value1
|
|
||||||
- name: my-configmap-2
|
|
||||||
data:
|
|
||||||
key2: value2
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 2
|
|
||||||
- isKind:
|
|
||||||
of: ConfigMap
|
|
||||||
- matchRegex:
|
|
||||||
path: metadata.name
|
|
||||||
pattern: "my-configmap-\\d+"
|
|
|
@ -931,21 +931,6 @@ 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