Skip to content

Commit

Permalink
Fix chart's volume attachment
Browse files Browse the repository at this point in the history
Cherry picked from @tchellomello chart submission (thanks!).
  • Loading branch information
bpineau committed Jul 20, 2019
1 parent 82fda1e commit 8a7b5b2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/helm-chart/katafygio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: katafygio
home: https://github.com/bpineau/katafygio
sources:
- https://github.com/bpineau/katafygio
version: 0.4.2
version: 0.4.3
keywords:
- backup
- dump
Expand Down
3 changes: 2 additions & 1 deletion assets/helm-chart/katafygio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ The following table lists the configurable parameters of the Katafygio chart and

| Parameter | Description | Default |
|-------------------------|-------------------------------------------------------------|--------------------------------------|
| `replicaCount` | Desired number of pods | `1` |
| `replicaCount` | Desired number of pods (leave to `1` when using local PV) | `1` |
| `image.repository` | Katafygio container image name | `bpineau/katafygio` |
| `image.tag` | Katafygio container image tag | `v0.7.3` |
| `image.pullPolicy` | Katafygio container image pull policy | `IfNotPresent` |
| `localDir` | Container's local path where Katafygio will dump and commit | `/tmp/kf-dump` |
| `gitTimeout` | Deadline for all git commands | `300s` |
| `gitUrl` | Optional remote repository where changes will be pushed | `nil` |
| `noGit` | Disable git versioning | `false` |
| `filter` | Label selector to dump only matched objects | `nil` |
Expand Down
10 changes: 7 additions & 3 deletions assets/helm-chart/katafygio/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "katafygio.fullname" . }}
Expand All @@ -7,6 +7,8 @@ metadata:
{{ include "katafygio.labels.standard" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: Recreate
selector:
matchLabels:
app: {{ template "katafygio.name" . }}
Expand Down Expand Up @@ -74,8 +76,10 @@ spec:
httpGet:
path: /health
port: http
{{- if and .Values.gitSshKey .Values.gitUrl }}
volumeMounts:
- name: {{ template "katafygio.fullname" . }}-data
mountPath: {{ .Values.localDir }}
{{- if and .Values.gitSshKey .Values.gitUrl }}
- name: katafygio-gitssh
mountPath: "/.ssh"
readOnly: true
Expand All @@ -89,7 +93,7 @@ spec:
secretName: {{ template "katafygio.fullname" . }}
defaultMode: 256
{{- end }}
- name: katafygio-data
- name: {{ template "katafygio.fullname" . }}-data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim | default (include "katafygio.fullname" .) }}
Expand Down
6 changes: 3 additions & 3 deletions assets/helm-chart/katafygio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ gitSshConfig: |
healthcheckPort: 8080

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

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

image:
repository: bpineau/katafygio
tag: v0.7.3
tag: v0.7.4
pullPolicy: IfNotPresent

# resources define the deployment's cpu and memory resources.
Expand Down

0 comments on commit 8a7b5b2

Please sign in to comment.