Skip to content

Commit 495c067

Browse files
authored
Merge pull request #212 from djjudas21/spoolman_rwo
Allow override of deployment strategy
2 parents 94100b6 + f76089c commit 495c067

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

charts/spoolman/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: "0.23.1"
33
description: Keep track of your inventory of 3D-printer filament spools.
44
name: spoolman
5-
version: 0.1.5
5+
version: 0.1.6
66
type: application
77
keywords:
88
- database
@@ -20,4 +20,4 @@ maintainers:
2020
annotations:
2121
artifacthub.io/changes: |-
2222
- kind: changed
23-
description: Update to Spoolman v0.23.1
23+
description: Allow override of deployment strategy

charts/spoolman/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# spoolman
22

3-
![Version: 0.1.5](https://img.shields.io/badge/Version-0.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.23.1](https://img.shields.io/badge/AppVersion-0.23.1-informational?style=flat-square)
3+
![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.23.1](https://img.shields.io/badge/AppVersion-0.23.1-informational?style=flat-square)
44

55
Keep track of your inventory of 3D-printer filament spools.
66

@@ -23,7 +23,8 @@ Keep track of your inventory of 3D-printer filament spools.
2323
| affinity | object | `{}` | |
2424
| fullnameOverride | string | `""` | |
2525
| httpRoute | object | `{"annotations":{},"enabled":false,"hostnames":["chart-example.local"],"parentRefs":[{"name":"gateway","sectionName":"http"}],"rules":[{"matches":[{"path":{"type":"PathPrefix","value":"/headers"}}]}]}` | Expose the service via gateway-api HTTPRoute Requires Gateway API resources and suitable controller installed within the cluster (see: https://gateway-api.sigs.k8s.io/guides/) |
26-
| image | object | `{"pullPolicy":"IfNotPresent","repository":"ghcr.io/donkie/spoolman","tag":""}` | image repository |
26+
| image.pullPolicy | string | `"IfNotPresent"` | |
27+
| image.repository | string | `"ghcr.io/donkie/spoolman"` | |
2728
| image.tag | string | chart.appVersion | image tag |
2829
| imagePullSecrets | list | `[]` | |
2930
| ingress | object | See values.yaml | Enable and configure ingress settings for the chart under this key. |
@@ -52,6 +53,7 @@ Keep track of your inventory of 3D-printer filament spools.
5253
| serviceAccount.automount | bool | `false` | Automatically mount a ServiceAccount's API credentials? |
5354
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
5455
| serviceAccount.name | string | a name is generated using the fullname template | The name of the service account to use. |
56+
| strategy.type | string | `"Recreate"` | Specifies the strategy used to replace old Pods by new ones |
5557
| tolerations | list | `[]` | |
5658

5759
----------------------------------------------

charts/spoolman/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ spec:
8686
tolerations:
8787
{{- toYaml . | nindent 8 }}
8888
{{- end }}
89+
strategy:
90+
type: {{ .Values.strategy.type }}

charts/spoolman/values.schema.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
"type": "object"
126126
},
127127
"image": {
128-
"description": "image repository",
129128
"properties": {
130129
"pullPolicy": {
131130
"default": "IfNotPresent",
@@ -442,6 +441,19 @@
442441
"title": "serviceAccount",
443442
"type": "object"
444443
},
444+
"strategy": {
445+
"properties": {
446+
"type": {
447+
"default": "Recreate",
448+
"description": "Specifies the strategy used to replace old Pods by new ones",
449+
"title": "type",
450+
"type": "string"
451+
}
452+
},
453+
"required": [],
454+
"title": "strategy",
455+
"type": "object"
456+
},
445457
"tolerations": {
446458
"items": {
447459
"required": []

charts/spoolman/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
# -- Number of replicas
77
replicaCount: 1
88

9+
strategy:
10+
# -- Specifies the strategy used to replace old Pods by new ones
11+
type: Recreate
12+
913
# -- image repository
1014
image:
1115
repository: ghcr.io/donkie/spoolman

0 commit comments

Comments
 (0)