Skip to content

Commit

Permalink
added ingress annotations to plane-enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
mguptahub committed Jun 14, 2024
1 parent 2b43ab9 commit d5511d2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/plane-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Meet Plane. An Enterprise software development tool to manage issue

type: application

version: 1.0.5
version: 1.0.6
appVersion: "1.0.0"

home: https://plane.so/
Expand Down
15 changes: 8 additions & 7 deletions charts/plane-enterprise/questions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,18 +284,19 @@ questions:
type: string
default: "5242880"

- variable: ingress.ingressClass
label: "Ingress Classname"
type: string
- variable: ingress.enabled
label: "Enable Ingress"
type: boolean
required: true
default: "nginx"
default: true
group: "Ingress"
show_subquestion_if: true
subquestions:
- variable: ingress.clientMaxBodySize
label: "Max Body Size"
- variable: ingress.ingressClass
label: "Ingress Classname"
type: string
required: true
default: "10m"
default: "nginx"
- variable: ingress.minioHost
label: "Minio Host"
type: string
Expand Down
6 changes: 5 additions & 1 deletion charts/plane-enterprise/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ kind: Ingress
metadata:
namespace: {{ .Release.Namespace }}
name: {{ .Release.Name }}-ingress
{{- if gt (len .Values.ingress.ingress_annotations) 0 }}
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.ingress.clientMaxBodySize | default "5m" | quote}}
{{- range $key, $value := .Values.ingress.ingress_annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ingressClass }}
rules:
Expand Down
4 changes: 3 additions & 1 deletion charts/plane-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ ingress:
enabled: true
minioHost: ''
ingressClass: 'nginx'
clientMaxBodySize: 10m
ingress_annotations: {
"nginx.ingress.kubernetes.io/proxy-body-size": "5m",
}

ssl:
createIssuer: false
Expand Down

0 comments on commit d5511d2

Please sign in to comment.