Skip to content

Commit

Permalink
Merge pull request #1100 from cwgthornton/priorityClassName
Browse files Browse the repository at this point in the history
Add priorityClassName as an option for baserow
  • Loading branch information
christianhuth authored Aug 29, 2024
2 parents 0acc08b + 97eb40e commit 7a6856d
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/baserow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: baserow
description: Baserow is an open source no-code database and Airtable alternative.
type: application
version: 2.1.2
version: 2.1.3
appVersion: "1.22.3"
home: https://github.com/christianknell/helm-charts
icon: https://baserow.io/img/favicon_192.png
Expand All @@ -24,8 +24,8 @@ dependencies:
annotations:
artifacthub.io/category: database
artifacthub.io/changes: |
- kind: changed
description: fixed outdated Links to Helm Repository
- kind: added
description: priorityClassName to deployments
artifacthub.io/screenshots: |
- title: Create your own online database without technical experience.
url: https://baserow.io/_nuxt/img/home_intro_screenshot.194c66b.png
Expand Down
4 changes: 4 additions & 0 deletions charts/baserow/README.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions charts/baserow/templates/asgi/asgi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ spec:
- name: media
mountPath: {{ .Values.backend.config.media.root | quote }}
{{- end }}
{{- if .Values.backend.asgi.priorityClassName }}
priorityClassName: {{ .Values.backend.asgi.priorityClassName }}
{{- end }}
{{- with .Values.backend.asgi.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/baserow/templates/celery/celery-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ spec:
- name: media
mountPath: {{ .Values.backend.config.media.root | quote }}
{{- end }}
{{- if .Values.backend.celery.priorityClassName }}
priorityClassName: {{ .Values.backend.celery.priorityClassName }}
{{- end }}
{{- with .Values.backend.celery.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/baserow/templates/frontend/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ spec:
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.frontend.priorityClassName }}
priorityClassName: {{ .Values.frontend.priorityClassName }}
{{- end }}
{{- with .Values.frontend.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/baserow/templates/wsgi/wsgi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ spec:
- name: media
mountPath: {{ .Values.backend.config.media.root | quote }}
{{- end }}
{{- if .Values.backend.wsgi.priorityClassName }}
priorityClassName: {{ .Values.backend.wsgi.priorityClassName }}
{{- end }}
{{- with .Values.backend.wsgi.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/baserow/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
}
}
},
"priorityClassName": {
"type": "string"
},
"replicaCount": {
"type": "integer"
},
Expand Down Expand Up @@ -190,6 +193,9 @@
}
}
},
"priorityClassName": {
"type": "string"
},
"replicaCount": {
"type": "integer"
},
Expand Down Expand Up @@ -592,6 +598,9 @@
}
}
},
"priorityClassName": {
"type": "string"
},
"replicaCount": {
"type": "integer"
},
Expand Down Expand Up @@ -832,6 +841,9 @@
}
}
},
"priorityClassName": {
"type": "string"
},
"replicaCount": {
"type": "integer"
},
Expand Down
12 changes: 12 additions & 0 deletions charts/baserow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ frontend:
runAsGroup: 9999
runAsUser: 9999

# -- Pod priority class name
priorityClassName: ""

# -- Number of replicas
replicaCount: 1

Expand Down Expand Up @@ -147,6 +150,9 @@ backend:
runAsGroup: 9999
runAsUser: 9999

# -- Pod priority class name
priorityClassName: ""

# -- Number of replicas
replicaCount: 1

Expand Down Expand Up @@ -233,6 +239,9 @@ backend:
runAsGroup: 9999
runAsUser: 9999

# -- Pod priority class name
priorityClassName: ""

# -- Number of replicas
replicaCount: 1

Expand Down Expand Up @@ -467,6 +476,9 @@ backend:
runAsGroup: 9999
runAsUser: 9999

# -- Pod priority class name
priorityClassName: ""

# -- Number of replicas
replicaCount: 1

Expand Down

0 comments on commit 7a6856d

Please sign in to comment.