Skip to content

Commit

Permalink
feat: add priorityClass for wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
luciano-buono committed Nov 11, 2024
1 parent 558fd94 commit f366579
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2024-11-11

[prod]

- [associated PR](https://github.com/saritasa-nest/saritasa-devops-helm-charts/pull/140)
- Add option to select `priorityClass` in Wordpress components for tekton-apps

## 2024-10-21

[prod]
Expand Down
4 changes: 3 additions & 1 deletion charts/tekton-apps/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ appVersion: "v0.29.0"
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.1
version: 1.1.2

maintainers:
- url: https://www.saritasa.com/
Expand Down Expand Up @@ -264,6 +264,7 @@ description: |
updateStrategy.rollingUpdate.maxSurge: 0%, updateStrategy.rollingUpdate.maxUnavailable: 100%, i.e. stop old pod and then create a new one)
- apps[PROJECT].components[NAME].wordpress.replica_count - wordpress deployment replica count (default: 1)
- apps[PROJECT].components[NAME].wordpress.nodeSelector - wordpress pod node selector params (default: nodeSelector.tech_stack: php, nodeSelector.pvc: "true")
- apps[PROJECT].components[NAME].wordpress.priorityClassName - wordpress pod priorityClassName params (default: null)
- apps[PROJECT].components[NAME].wordpress.podSecurityContext - wordpress pod's security context params (default: bitnami chart defaults)
- apps[PROJECT].components[NAME].wordpress.containerSecurityContext - wordpress pod container's security context params (default: bitnami chart defaults)
- apps[PROJECT].components[NAME].wordpress.initContainers - init containers (default: init container for ci/cd purposes)
Expand Down Expand Up @@ -1273,6 +1274,7 @@ description: |
user: xxx-wordpress-user-dev
existingSecret: xxx-wordpress-dev-externaldb
database: xxx-wordpress-dev
priorityClassName: high-priority
persistence:
storageClass: gp3
eventlistener:
Expand Down
4 changes: 3 additions & 1 deletion charts/tekton-apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ saritasa-tekton-apps

## `chart.version`

![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.29.0](https://img.shields.io/badge/AppVersion-v0.29.0-informational?style=flat-square)
![Version: 1.1.2](https://img.shields.io/badge/Version-1.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.29.0](https://img.shields.io/badge/AppVersion-v0.29.0-informational?style=flat-square)

## Maintainers

Expand Down Expand Up @@ -285,6 +285,7 @@ spec:
updateStrategy.rollingUpdate.maxSurge: 0%, updateStrategy.rollingUpdate.maxUnavailable: 100%, i.e. stop old pod and then create a new one)
- apps[PROJECT].components[NAME].wordpress.replica_count - wordpress deployment replica count (default: 1)
- apps[PROJECT].components[NAME].wordpress.nodeSelector - wordpress pod node selector params (default: nodeSelector.tech_stack: php, nodeSelector.pvc: "true")
- apps[PROJECT].components[NAME].wordpress.priorityClassName - wordpress pod priorityClassName params (default: null)
- apps[PROJECT].components[NAME].wordpress.podSecurityContext - wordpress pod's security context params (default: bitnami chart defaults)
- apps[PROJECT].components[NAME].wordpress.containerSecurityContext - wordpress pod container's security context params (default: bitnami chart defaults)
- apps[PROJECT].components[NAME].wordpress.initContainers - init containers (default: init container for ci/cd purposes)
Expand Down Expand Up @@ -1294,6 +1295,7 @@ spec:
user: xxx-wordpress-user-dev
existingSecret: xxx-wordpress-dev-externaldb
database: xxx-wordpress-dev
priorityClassName: high-priority
persistence:
storageClass: gp3
eventlistener:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
pvc: "true"
{{- end }}
{{- if .priorityClassName }}
priorityClassName: {{ .priorityClassName }}
{{- end }}
{{- if .podSecurityContext }}
podSecurityContext:
{{- toYaml .podSecurityContext | nindent 10 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/tekton-apps/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ apps:
- name: another
image: fuck2

priorityClassName: high-priority

resources:
requests:
cpu: 100m
Expand Down

0 comments on commit f366579

Please sign in to comment.