Skip to content

Commit

Permalink
feat(lubelogger): improve handling of upgrades with attached volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
  • Loading branch information
shanduur committed Nov 29, 2024
1 parent 2e5a595 commit e6e50ef
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anza-labs/lubelogger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: lubelogger
description: LubeLogger is a web-based vehicle maintenance and fuel mileage tracker
type: application
version: 0.4.10
version: 0.5.0
appVersion: "v1.4.1"
maintainers:
- name: Mateusz Urbanek
Expand Down
5 changes: 4 additions & 1 deletion anza-labs/lubelogger/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# lubelogger

![Version: 0.4.10](https://img.shields.io/badge/Version-0.4.10-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: v1.4.1](https://img.shields.io/badge/AppVersion-v1.4.1-informational?style=flat)
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) ![AppVersion: v1.4.1](https://img.shields.io/badge/AppVersion-v1.4.1-informational?style=flat)

LubeLogger is a web-based vehicle maintenance and fuel mileage tracker

Expand Down Expand Up @@ -110,4 +110,7 @@ LubeLogger is a web-based vehicle maintenance and fuel mileage tracker
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created. |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
| tolerations | list | `[]` | Tolerations for the pods. |
| upgradeStrategy.rollingUpdate.maxSurge | int | `0` | Maximum number of Pods that can be created beyond the desired replicas during the update process. |
| upgradeStrategy.rollingUpdate.maxUnavailable | string | `"100%"` | Maximum number of Pods that can be unavailable during the update process. |
| upgradeStrategy.type | string | `"Recreate"` | The update strategy type for the deployment. Options: "Recreate" or "RollingUpdate". |

5 changes: 5 additions & 0 deletions anza-labs/lubelogger/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
{{ if .Values.upgradeStrategy }}
{{- with .Values.upgradeStrategy }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
matchLabels:
{{- include "lubelog.selectorLabels" . | nindent 6 }}
Expand Down
19 changes: 19 additions & 0 deletions anza-labs/lubelogger/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,25 @@
},
"tolerations": {
"type": "array"
},
"upgradeStrategy": {
"properties": {
"rollingUpdate": {
"properties": {
"maxSurge": {
"type": "integer"
},
"maxUnavailable": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
Expand Down
9 changes: 9 additions & 0 deletions anza-labs/lubelogger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
# -- Number of replicas for the deployment.
replicaCount: 1

upgradeStrategy:
# -- The update strategy type for the deployment. Options: "Recreate" or "RollingUpdate".
type: Recreate
rollingUpdate:
# -- Maximum number of Pods that can be unavailable during the update process.
maxUnavailable: 100%
# -- Maximum number of Pods that can be created beyond the desired replicas during the update process.
maxSurge: 0

image:
# -- Registry and repository for the lubelogger image.
repository: ghcr.io/hargata/lubelogger
Expand Down

0 comments on commit e6e50ef

Please sign in to comment.