Skip to content
Snippets Groups Projects
Commit a383baa8 authored by OZGCloud's avatar OZGCloud
Browse files

variable ingress annotations

parent 50aa1a62
No related tags found
Loading
......@@ -32,7 +32,9 @@ metadata:
{{- else }}
cert-manager.io/cluster-issuer: letsencrypt-prod
{{- end }}
nginx.ingress.kubernetes.io/proxy-body-size: 42m
{{- with (.Values.ingress).annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
name: {{ include "app.name" . }}
namespace: {{ include "app.namespace" . }}
spec:
......
......@@ -125,6 +125,10 @@ tests:
path: metadata.annotations.[cert-manager.io/cluster-issuer]
value: letsencrypt-prod
- it: should set proxy body size to 42m
set:
ingress:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 42m
asserts:
- equal:
path: metadata.annotations.[nginx.ingress.kubernetes.io/proxy-body-size]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment