Skip to content

Commit

Permalink
feat(helm): allow priorityClassNames to be configured
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Maes <mathias.maes@aloxy.io>
  • Loading branch information
WatcherWhale authored and thjaeckle committed Sep 14, 2023
1 parent d8b1e84 commit d927019
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.3.7 # chart version is effectively set by release-job
version: 3.3.8 # chart version is effectively set by release-job
appVersion: 3.3.6
keywords:
- iot-chart
Expand Down
Expand Up @@ -317,6 +317,7 @@ spec:
runAsGroup: 1000
allowPrivilegeEscalation: false
{{- end }}
priorityClassName: "{{ .Values.connectivity.priorityClassName }}"
{{- with .Values.connectivity.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/ditto/templates/gateway-deployment.yaml
Expand Up @@ -287,6 +287,7 @@ spec:
runAsGroup: 1000
allowPrivilegeEscalation: false
{{- end }}
priorityClassName: "{{ .Values.gateway.priorityClassName }}"
{{- with .Values.gateway.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/ditto/templates/nginx-deployment.yaml
Expand Up @@ -141,6 +141,7 @@ spec:
emptyDir: {}
- name: nginx-run
emptyDir: {}
priorityClassName: "{{ .Values.nginx.priorityClassName }}"
{{- with .Values.nginx.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/ditto/templates/policies-deployment.yaml
Expand Up @@ -306,6 +306,7 @@ spec:
runAsGroup: 1000
allowPrivilegeEscalation: false
{{- end }}
priorityClassName: "{{ .Values.policies.priorityClassName }}"
{{- with .Values.policies.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/ditto/templates/things-deployment.yaml
Expand Up @@ -310,6 +310,7 @@ spec:
runAsGroup: 1000
allowPrivilegeEscalation: false
{{- end }}
priorityClassName: "{{ .Values.things.priorityClassName }}"
{{- with .Values.things.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
Expand Up @@ -288,6 +288,7 @@ spec:
runAsGroup: 1000
allowPrivilegeEscalation: false
{{- end }}
priorityClassName: "{{ .Values.thingsSearch.priorityClassName }}"
{{- with .Values.thingsSearch.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
18 changes: 18 additions & 0 deletions deployment/helm/ditto/values.yaml
Expand Up @@ -502,6 +502,9 @@ policies:
enabled: true
# minAvailable number of replicas during voluntary disruptions
minAvailable: 1
# priorityClassName configuration for policies
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# nodeSelector configuration for policies
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
Expand Down Expand Up @@ -708,6 +711,9 @@ things:
enabled: true
# minAvailable number of replicas during voluntary disruptions
minAvailable: 1
# priorityClassName configuration for policies
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# nodeSelector configuration for things
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
Expand Down Expand Up @@ -936,6 +942,9 @@ thingsSearch:
enabled: true
# minAvailable number of replicas during voluntary disruptions
minAvailable: 1
# priorityClassName configuration for policies
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# nodeSelector configuration for things-search
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
Expand Down Expand Up @@ -1118,6 +1127,9 @@ connectivity:
enabled: true
# minAvailable number of replicas during voluntary disruptions
minAvailable: 1
# priorityClassName configuration for policies
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# nodeSelector configuration for connectivity
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
Expand Down Expand Up @@ -1383,6 +1395,9 @@ gateway:
enabled: true
# minAvailable number of replicas during voluntary disruptions
minAvailable: 1
# priorityClassName configuration for policies
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# nodeSelector configuration for gateway
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
Expand Down Expand Up @@ -1546,6 +1561,9 @@ nginx:
# nodePort: 30080
# annotations to add arbitrary annotations to nginx service
annotations: {}
# priorityClassName configuration for policies
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""
# nodeSelector configuration for nginx
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}
Expand Down

0 comments on commit d927019

Please sign in to comment.