chart: ingress-nginx update version
diff --git a/charts/ingress-nginx/templates/NOTES.txt b/charts/ingress-nginx/templates/NOTES.txt
index 03ece9c..9fe35c7 100644
--- a/charts/ingress-nginx/templates/NOTES.txt
+++ b/charts/ingress-nginx/templates/NOTES.txt
@@ -29,27 +29,36 @@
An example Ingress that makes use of the controller:
+{{- $isV1 := semverCompare ">=1" .Chart.AppVersion}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
- annotations:
- kubernetes.io/ingress.class: {{ .Values.controller.ingressClassResource.name }}
name: example
namespace: foo
+ {{- if eq $isV1 false }}
+ annotations:
+ kubernetes.io/ingress.class: {{ .Values.controller.ingressClass }}
+ {{- end }}
spec:
+ {{- if $isV1 }}
+ ingressClassName: {{ .Values.controller.ingressClassResource.name }}
+ {{- end }}
rules:
- host: www.example.com
http:
paths:
- - backend:
- serviceName: exampleService
- servicePort: 80
+ - pathType: Prefix
+ backend:
+ service:
+ name: exampleService
+ port:
+ number: 80
path: /
# This section is only required if TLS is to be enabled for the Ingress
tls:
- - hosts:
- - www.example.com
- secretName: example-tls
+ - hosts:
+ - www.example.com
+ secretName: example-tls
If TLS is enabled for the Ingress, a Secret containing the certificate and key must also be provided:
@@ -62,10 +71,3 @@
tls.crt: <base64 encoded cert>
tls.key: <base64 encoded key>
type: kubernetes.io/tls
-
-{{- if .Values.controller.headers }}
-#################################################################################
-###### WARNING: `controller.headers` has been deprecated! #####
-###### It has been renamed to `controller.proxySetHeaders`. #####
-#################################################################################
-{{- end }}