Skip to content

Commit

Permalink
Add nodeSelector, affinity, and toleration fields for pre-upgrade-job… (
Browse files Browse the repository at this point in the history
#288)

* Add nodeSelector, affinity, and toleration fields for pre-upgrade-job in ziti-route Chart

* bump router versions

---------

Co-authored-by: Oleksandr Bezerov <oleksandr.bezerov@kestramedical.com>
  • Loading branch information
qrkourier and Oleksandr Bezerov authored Jan 18, 2025
1 parent 4e202c8 commit baa03d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/ziti-router/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
appVersion: 1.1.15
appVersion: 1.1.16
description: Host an OpenZiti router in Kubernetes
name: ziti-router
type: application
version: 1.1.3
version: 1.1.4
2 changes: 1 addition & 1 deletion charts/ziti-router/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- README.md generated by helm-docs from README.md.gotmpl -->
# ziti-router

![Version: 1.1.3](https://img.shields.io/badge/Version-1.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.15](https://img.shields.io/badge/AppVersion-1.1.15-informational?style=flat-square)
![Version: 1.1.4](https://img.shields.io/badge/Version-1.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.16](https://img.shields.io/badge/AppVersion-1.1.16-informational?style=flat-square)

Host an OpenZiti router in Kubernetes

Expand Down
12 changes: 12 additions & 0 deletions charts/ziti-router/templates/pre-upgrade-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ spec:
readOnly: false
command: ["migrate-identity.bash"]
# command: ["sh", "-c", "while true; do sleep 86400; done"]
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: migrate-script
configMap:
Expand Down

0 comments on commit baa03d9

Please sign in to comment.