diff --git a/src/main/helm/templates/ingress.yaml b/src/main/helm/templates/ingress.yaml index 0199f6603e175ffc33c793269d6eab6fb179d4df..5c22e5c6b80bd6b1c6ccd3610c20dd086955f1bd 100644 --- a/src/main/helm/templates/ingress.yaml +++ b/src/main/helm/templates/ingress.yaml @@ -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: diff --git a/src/test/helm/ingress_test.yaml b/src/test/helm/ingress_test.yaml index 7561bb305275f8ca3e90dc3a317c762bae8dd995..3675fb2eaf431d554d5852c9732292206287ca6d 100644 --- a/src/test/helm/ingress_test.yaml +++ b/src/test/helm/ingress_test.yaml @@ -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]