-
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 8386cc7
Showing
9 changed files
with
98 additions
and
29 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
charts/trusted-artifact-signer/templates/segment-backup-cronjob-sa.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,9 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: segment-backup-sa | ||
namespace: sigstore-monitoring # throwing an issue because this doesnt exist yet | ||
secrets: | ||
- name: pull-secret | ||
imagePullSecrets: | ||
- name: pull-secret |
26 changes: 26 additions & 0 deletions
26
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,26 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
namespace: {{ .Values.configs.segment_backup_job.namespace }} | ||
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
38 changes: 18 additions & 20 deletions
38
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,22 @@ | ||
apiVersion: batch/v1 | ||
kind: Cronjob | ||
kind: Job | ||
metadata: | ||
name: {{ .Values.configs.segment-backup-job.name }} | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
namespace: trusted-artifact-signer | ||
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
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