Skip to content

Commit

Permalink
priorityClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
case0sh committed Sep 11, 2023
1 parent 78e623f commit 94acbaa
Show file tree
Hide file tree
Showing 37 changed files with 385 additions and 2 deletions.
204 changes: 204 additions & 0 deletions charts/ocis/docs/values-desc-table.adoc

Large diffs are not rendered by default.

74 changes: 73 additions & 1 deletion charts/ocis/docs/values.adoc.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions charts/ocis/templates/_common/_tplvalues.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ Adds the app names to the scope and set the name of the app based on the input p
{{- if (index .scope.Values.services (index .scope .appName)) -}}
{{- $_ := set .scope "appSpecificConfig" (index .scope.Values.services (index .scope .appName)) -}}
{{- end -}}

{{- $_ := set .scope "priorityClassName" (default (default (dict) .scope.Values.priorityClassName) .scope.appSpecificConfig.priorityClassName) -}}

{{- $_ := set .scope "nodeSelector" (default (default (dict) .scope.Values.nodeSelector) .scope.appSpecificConfig.nodeSelector) -}}
{{- $_ := set .scope "jobNodeSelector" (default (default (dict) .scope.Values.jobNodeSelector) .scope.appSpecificConfig.jobNodeSelector) -}}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/antivirus/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
{{- include "ocis.affinity" .Values.services.antivirus | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/appprovider/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
{{- include "ocis.affinity" $.Values.services.appprovider | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" $ | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ $.appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/appregistry/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{{- include "ocis.affinity" .Values.services.appregistry | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/audit/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.audit | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/authbasic/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
{{- include "ocis.affinity" .Values.services.authbasic | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/authmachine/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.authmachine | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/eventhistory/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
{{- include "ocis.affinity" .Values.services.eventhistory | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.frontend | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/gateway/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.gateway | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/graph/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.graph | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/groups/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.groups | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/idm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
- name: {{ include "ocis.persistence.dataVolumeName" . }}
mountPath: /var/lib/ocis
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/idp/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
{{- include "ocis.affinity" .Values.services.idp | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/nats/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
mountPath: /var/lib/ocis
{{ end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/notifications/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
{{- include "ocis.affinity" .Values.services.notifications | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/ocdav/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.ocdav | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/ocs/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.ocs | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/policies/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
{{- tpl . $ | nindent 8 }}
{{- end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/postprocessing/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
{{- include "ocis.affinity" .Values.services.postprocessing | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/proxy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.proxy | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/search/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
mountPath: /var/lib/ocis
{{ end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/settings/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.settings | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/sharing/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.sharing | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/storagepubliclink/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.storagepubliclink | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/storageshares/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.storageshares | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/storagesystem/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
mountPath: /var/lib/ocis
{{ end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/storageusers/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
mountPath: /var/lib/ocis
{{ end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/store/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
mountPath: /var/lib/ocis
{{ end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/thumbnails/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
mountPath: /var/lib/ocis
{{ end }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/userlog/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
{{- include "ocis.affinity" .Values.services.userlog | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/users/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.users | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.web | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions charts/ocis/templates/webdav/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
{{- include "ocis.affinity" .Values.services.webdav | nindent 6 }}
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }}
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }}
priorityClassName: {{ toYaml $.priorityClassName | nindent 8 }}
containers:
- name: {{ .appName }}
{{- include "ocis.image" $ | nindent 10 }}
Expand Down
Loading

0 comments on commit 94acbaa

Please sign in to comment.