-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding job for post-install and moving job to cronjob for nightly met…
…rics
- Loading branch information
1 parent
966f820
commit 90c72e7
Showing
7 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
charts/trusted-artifact-signer/templates/segment-backup-cronjob.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
spec: | ||
schedule: "0 0 * * *" | ||
concurrencyPolicy: "Replace" | ||
startingDeadlineSeconds: 200 | ||
suspend: false | ||
successfulJobsHistoryLimit: 7 | ||
failedJobsHistoryLimit: 3 | ||
jobTemplate: | ||
spec: | ||
template: | ||
serviceAccountName: segment-backup-sa | ||
metadata: | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
labels: | ||
parent: "segment-backup-job" | ||
spec: | ||
containers: | ||
- name: {{ .Values.configs.segment_backup_job.name }} | ||
image: "{{ .Values.configs.cosign_deploy.image.registry }}/{{ .Values.configs.cosign_deploy.image.repository }}:{{ .Values.configs.cosign_deploy.image.version }}" | ||
command: ["/bin/bash", "/opt/app-root/src/script.sh"] | ||
restartPolicy: OnFailure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 17 additions & 20 deletions
37
charts/trusted-artifact-signer/templates/segment-backup-job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
apiVersion: batch/v1 | ||
kind: Cronjob | ||
kind: Job | ||
metadata: | ||
name: {{ .Values.configs.segment-backup-job.name }} | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
spec: | ||
schedule: "0 0 * * *" | ||
concurrencyPolicy: "Replace" | ||
startingDeadlineSeconds: 200 | ||
suspend: false | ||
successfulJobsHistoryLimit: 7 | ||
failedJobsHistoryLimit: 3 | ||
jobTemplate: | ||
parallelism: 1 | ||
completions: 1 | ||
activeDeadlineSeconds: 600 | ||
backoffLimit: 5 | ||
template: | ||
serviceAccountName: segment-backup-sa | ||
metadata: | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
labels: | ||
parent: "segment-backup-job" | ||
spec: | ||
template: | ||
serviceAccountName: segment-backup-sa | ||
metadata: | ||
labels: | ||
parent: "segment-backup-job" | ||
spec: | ||
containers: | ||
- name: {{ .Values.configs.segment-backup-job.name }} | ||
image: "{{ .Values.configs.cosign_deploy.image.registry }}/{{ .Values.configs.cosign_deploy.image.repository }}:{{ .Values.configs.cosign_deploy.image.version }}" | ||
command: ["/bin/bash", "/opt/app-root/src/script.sh"] | ||
restartPolicy: OnFailure | ||
containers: | ||
- name: {{ .Values.configs.segment_backup_job.name }} | ||
image: "{{ .Values.configs.cosign_deploy.image.registry }}/{{ .Values.configs.cosign_deploy.image.repository }}:{{ .Values.configs.cosign_deploy.image.version }}" | ||
command: ["/bin/bash", "/opt/app-root/src/script.sh"] | ||
restartPolicy: OnFailure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters