Skip to content

Commit 8a7b5b2

Browse files
committed
Fix chart's volume attachment
Cherry picked from @tchellomello chart submission (thanks!).
1 parent 82fda1e commit 8a7b5b2

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

assets/helm-chart/katafygio/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: katafygio
55
home: https://github.com/bpineau/katafygio
66
sources:
77
- https://github.com/bpineau/katafygio
8-
version: 0.4.2
8+
version: 0.4.3
99
keywords:
1010
- backup
1111
- dump

assets/helm-chart/katafygio/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ The following table lists the configurable parameters of the Katafygio chart and
4747

4848
| Parameter | Description | Default |
4949
|-------------------------|-------------------------------------------------------------|--------------------------------------|
50-
| `replicaCount` | Desired number of pods | `1` |
50+
| `replicaCount` | Desired number of pods (leave to `1` when using local PV) | `1` |
5151
| `image.repository` | Katafygio container image name | `bpineau/katafygio` |
5252
| `image.tag` | Katafygio container image tag | `v0.7.3` |
5353
| `image.pullPolicy` | Katafygio container image pull policy | `IfNotPresent` |
5454
| `localDir` | Container's local path where Katafygio will dump and commit | `/tmp/kf-dump` |
55+
| `gitTimeout` | Deadline for all git commands | `300s` |
5556
| `gitUrl` | Optional remote repository where changes will be pushed | `nil` |
5657
| `noGit` | Disable git versioning | `false` |
5758
| `filter` | Label selector to dump only matched objects | `nil` |

assets/helm-chart/katafygio/templates/deployment.yaml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apps/v1beta2
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ template "katafygio.fullname" . }}
@@ -7,6 +7,8 @@ metadata:
77
{{ include "katafygio.labels.standard" . | indent 4 }}
88
spec:
99
replicas: {{ .Values.replicaCount }}
10+
strategy:
11+
type: Recreate
1012
selector:
1113
matchLabels:
1214
app: {{ template "katafygio.name" . }}
@@ -74,8 +76,10 @@ spec:
7476
httpGet:
7577
path: /health
7678
port: http
77-
{{- if and .Values.gitSshKey .Values.gitUrl }}
7879
volumeMounts:
80+
- name: {{ template "katafygio.fullname" . }}-data
81+
mountPath: {{ .Values.localDir }}
82+
{{- if and .Values.gitSshKey .Values.gitUrl }}
7983
- name: katafygio-gitssh
8084
mountPath: "/.ssh"
8185
readOnly: true
@@ -89,7 +93,7 @@ spec:
8993
secretName: {{ template "katafygio.fullname" . }}
9094
defaultMode: 256
9195
{{- end }}
92-
- name: katafygio-data
96+
- name: {{ template "katafygio.fullname" . }}-data
9397
{{- if .Values.persistence.enabled }}
9498
persistentVolumeClaim:
9599
claimName: {{ .Values.persistence.existingClaim | default (include "katafygio.fullname" .) }}

assets/helm-chart/katafygio/values.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ gitSshConfig: |
2727
healthcheckPort: 8080
2828

2929
# logLevel can be info, warning, error, or fatal.
30-
logLevel: warning
30+
logLevel: info
3131
# logOutput can be stdout, stderr, or syslog.
3232
logOutput: stdout
3333
# logServer (optional) provide the address of a remote syslog server.
@@ -55,7 +55,7 @@ resyncInterval: 300
5555
localDir: "/var/lib/katafygio/data"
5656

5757
# persistence for the localDir dump directory. Note that configuring gitUrl
58-
# is an other way to achieve persistence.
58+
# is an other way to achieve persistence (to a remote git repository).
5959
persistence:
6060
enabled: true
6161
## If defined, storageClassName: <storageClass>
@@ -87,7 +87,7 @@ serviceAccount:
8787

8888
image:
8989
repository: bpineau/katafygio
90-
tag: v0.7.3
90+
tag: v0.7.4
9191
pullPolicy: IfNotPresent
9292

9393
# resources define the deployment's cpu and memory resources.

0 commit comments

Comments
 (0)