-
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
2c85714
commit 11c854d
Showing
14 changed files
with
186 additions
and
46 deletions.
There are no files selected for viewing
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
37 changes: 37 additions & 0 deletions
37
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,37 @@ | ||
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: | ||
metadata: | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
labels: | ||
parent: "segment-backup-job" | ||
spec: | ||
restartPolicy: OnFailure | ||
serviceAccountName: segment-backup-job | ||
containers: | ||
- name: {{ .Values.configs.segment_backup_job.name }} | ||
# image: "{{ .Values.configs.segment_backup_job.image.registry }}/{{ .Values.configs.segment_backup_job.image.repository }}/{{ .Values.configs.segment_backup_job.image.version }}" | ||
image: "{{ .Values.configs.segment_backup_job.image.registry }}/{{ .Values.configs.segment_backup_job.image.repository }}@{{ .Values.configs.segment_backup_job.image.version }}" | ||
command: ["/bin/bash", "/opt/app-root/src/script.sh"] | ||
env: | ||
- name: RUN_TYPE | ||
value: "nightly" | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
capabilities: | ||
drop: | ||
- ALL |
19 changes: 19 additions & 0 deletions
19
charts/trusted-artifact-signer/templates/segment-backup-job-clusterrole.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,19 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: segment-backup-job | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
verbs: | ||
- get | ||
- list | ||
- apiGroups: | ||
- "route.openshift.io" | ||
resources: | ||
- routes | ||
verbs: | ||
- get | ||
- list |
13 changes: 13 additions & 0 deletions
13
charts/trusted-artifact-signer/templates/segment-backup-job-clusterrolebinding.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,13 @@ | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: segment-backup-job | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: segment-backup-job | ||
subjects: | ||
- kind: ServiceAccount | ||
name: segment-backup-job | ||
namespace: {{ .Values.configs.segment_backup_job.namespace }} |
5 changes: 2 additions & 3 deletions
5
charts/trusted-artifact-signer/templates/segment-backup-job-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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: segment-backup-sa | ||
name: segment-backup-job | ||
# namespace: {{ .Values.configs.segment_backup_job.namespace }} | ||
namespace: sigstore-monitoring | ||
secrets: | ||
- name: pull-secret | ||
imagePullSecrets: | ||
- name: pull-secret |
51 changes: 30 additions & 21 deletions
51
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,33 @@ | ||
apiVersion: batch/v1 | ||
kind: Cronjob | ||
kind: Job | ||
metadata: | ||
name: {{ .Values.configs.segment-backup-job.name }} | ||
spec: | ||
schedule: "0 0 * * *" | ||
concurrencyPolicy: "Replace" | ||
startingDeadlineSeconds: 200 | ||
suspend: false | ||
successfulJobsHistoryLimit: 7 | ||
failedJobsHistoryLimit: 3 | ||
jobTemplate: | ||
name: {{ .Values.configs.segment_backup_job.name }} | ||
namespace: {{ .Values.configs.segment_backup_job.namespace }} | ||
spec: | ||
parallelism: 1 | ||
completions: 1 | ||
activeDeadlineSeconds: 600 | ||
backoffLimit: 5 | ||
template: | ||
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 | ||
restartPolicy: OnFailure | ||
serviceAccountName: segment-backup-job | ||
containers: | ||
- name: {{ .Values.configs.segment_backup_job.name }} | ||
# image: "{{ .Values.configs.segment_backup_job.image.registry }}/{{ .Values.configs.segment_backup_job.image.repository }}/{{ .Values.configs.segment_backup_job.image.version }}" | ||
image: "{{ .Values.configs.segment_backup_job.image.registry }}/{{ .Values.configs.segment_backup_job.image.repository }}@{{ .Values.configs.segment_backup_job.image.version }}" | ||
command: ["/bin/bash", "/opt/app-root/src/script.sh"] | ||
env: | ||
- name: RUN_TYPE | ||
value: "installation" | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
capabilities: | ||
drop: | ||
- ALL |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | ||
|
||
resources: | ||
- namespace.yaml | ||
- operator.yaml |
This file was deleted.
Oops, something went wrong.
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