-
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.
Adds monitoring to release-1.0.beta (#86)
* Update resources to work with image SHAs (#85) * Nightly metrics (#81) * Added nightly cronjob template Updated templates based on the segment-backup-job repo * adding job for post-install and moving job to cronjob for nightly metrics * chore: update segment-backup-job sha Signed-off-by: Lance Ball <lball@redhat.com> * adding job for post-install and moving job to cronjob for nightly metrics --------- Signed-off-by: Lance Ball <lball@redhat.com> Co-authored-by: greg pereira <grpereir@redhat.com> Co-authored-by: Lance Ball <lball@redhat.com> --------- Signed-off-by: Lance Ball <lball@redhat.com> Co-authored-by: Jan Bouska <jbouska@redhat.com> Co-authored-by: Tommy Dalton <59835082+tommyd450@users.noreply.github.com> Co-authored-by: greg pereira <grpereir@redhat.com>
- Loading branch information
1 parent
f588baf
commit 943b843
Showing
14 changed files
with
245 additions
and
9 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 }} |
8 changes: 8 additions & 0 deletions
8
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: segment-backup-job | ||
# namespace: {{ .Values.configs.segment_backup_job.namespace }} | ||
namespace: sigstore-monitoring | ||
secrets: | ||
- name: pull-secret |
33 changes: 33 additions & 0 deletions
33
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
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: | ||
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