Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
helm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
helm
Commits
6a3ad101
Verified
Commit
6a3ad101
authored
2 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
feat: merge backup & forget cronjobs
parent
bc91c1b3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2859
passed
2 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
restic/Chart.yaml
+1
-1
1 addition, 1 deletion
restic/Chart.yaml
restic/templates/cronjob.yaml
+18
-2
18 additions, 2 deletions
restic/templates/cronjob.yaml
restic/templates/cronjob_forget.yaml
+0
-63
0 additions, 63 deletions
restic/templates/cronjob_forget.yaml
with
19 additions
and
66 deletions
restic/Chart.yaml
+
1
−
1
View file @
6a3ad101
...
...
@@ -2,5 +2,5 @@ apiVersion: v2
name
:
restic
description
:
Helm Chart for restic
type
:
application
version
:
1.0.
1
version
:
1.0.
2
appVersion
:
"
0.13.1"
This diff is collapsed.
Click to expand it.
restic/templates/cronjob
_backup
.yaml
→
restic/templates/cronjob.yaml
+
18
−
2
View file @
6a3ad101
apiVersion
:
batch/v1
kind
:
CronJob
metadata
:
name
:
{{
include "restic-helm.fullname" .
}}
-backup
name
:
{{
include "restic-helm.fullname" .
}}
labels
:
{{
- include "restic-helm.labels" . | nindent 4
}}
spec
:
...
...
@@ -35,7 +35,7 @@ spec:
-
name
:
data
{{
- .Values.volume | nindent 14
}}
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
backup
securityContext
:
{{
- toYaml .Values.securityContext | nindent 16
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
...
...
@@ -54,6 +54,22 @@ spec:
volumeMounts
:
-
mountPath
:
"
/sync"
name
:
data
-
name
:
forget
securityContext
:
{{
- toYaml .Values.securityContext | nindent 16
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
args
:
-
"
-r"
-
"
{{
.Values.repository.name
}}"
-
"
forget"
-
"
--prune"
{{
- toYaml .Values.keepOptions | nindent 16
}}
envFrom
:
-
secretRef
:
name
:
{{
include "restic-helm.fullname" .
}}
resources
:
{{
- toYaml .Values.resources | nindent 16
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 12
}}
...
...
This diff is collapsed.
Click to expand it.
restic/templates/cronjob_forget.yaml
deleted
100644 → 0
+
0
−
63
View file @
bc91c1b3
apiVersion
:
batch/v1
kind
:
CronJob
metadata
:
name
:
{{
include "restic-helm.fullname" .
}}
-forget
labels
:
{{
- include "restic-helm.labels" . | nindent 4
}}
spec
:
schedule
:
"
{{
.Values.schedule
}}"
jobTemplate
:
metadata
:
{{
- with .Values.jobAnnotations
}}
annotations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
labels
:
{{
- include "restic-helm.labels" . | nindent 8
}}
spec
:
template
:
metadata
:
{{
- with .Values.podAnnotations
}}
annotations
:
{{
- toYaml . | nindent 12
}}
{{
- end
}}
labels
:
{{
- include "restic-helm.labels" . | nindent 12
}}
spec
:
restartPolicy
:
OnFailure
{{
- with .Values.imagePullSecrets
}}
imagePullSecrets
:
{{
- toYaml . | nindent 12
}}
{{
- end
}}
securityContext
:
{{
- toYaml .Values.podSecurityContext | nindent 12
}}
containers
:
-
name
:
{{
.Chart.Name
}}
securityContext
:
{{
- toYaml .Values.securityContext | nindent 16
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag
|
default
.Chart.AppVersion
}}"
imagePullPolicy
:
{{
.Values.image.pullPolicy
}}
workingDir
:
"
/sync"
args
:
-
"
-r"
-
"
{{
.Values.repository.name
}}"
-
"
forget"
-
"
--prune"
{{
- toYaml .Values.keepOptions | nindent 16
}}
envFrom
:
-
secretRef
:
name
:
{{
include "restic-helm.fullname" .
}}
resources
:
{{
- toYaml .Values.resources | nindent 16
}}
{{
- with .Values.nodeSelector
}}
nodeSelector
:
{{
- toYaml . | nindent 12
}}
{{
- end
}}
{{
- with .Values.affinity
}}
affinity
:
{{
- toYaml . | nindent 12
}}
{{
- end
}}
{{
- with .Values.tolerations
}}
tolerations
:
{{
- toYaml . | nindent 12
}}
{{
- end
}}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment