Skip to content

Commit

Permalink
Merge pull request #661 from npdgm/main
Browse files Browse the repository at this point in the history
chart: add value to set a PriorityClass
  • Loading branch information
zoetrope authored Apr 8, 2024
2 parents 0bcd95b + 1125db8 commit 89b3fed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/moco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ $ helm install --create-namespace --namespace moco-system moco -f values.yaml mo
| affinity | object | `{}` | affinity used by moco-controller. |
| tolerations | list | `[]` | tolerations used by moco-controller. |
| topologySpreadConstraints | list | `[]` | topologySpreadConstraints used by moco-controller. |
| priorityClassName | string | `""` | PriorityClass used by moco-controller. |

## Generate Manifests

Expand Down
3 changes: 3 additions & 0 deletions charts/moco/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ spec:
- mountPath: /grpc-cert
name: grpc-cert
readOnly: true
{{- with .Values.priorityClassName }}
priorityClassName: {{ quote . }}
{{- end }}
securityContext:
runAsNonRoot: true
serviceAccountName: moco-controller-manager
Expand Down
3 changes: 3 additions & 0 deletions charts/moco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ tolerations: []

# topologySpreadConstraints -- topologySpreadConstraints used by moco-controller.
topologySpreadConstraints: []

# priorityClassName -- PriorityClass used by moco-controller.
priorityClassName: ""

0 comments on commit 89b3fed

Please sign in to comment.