-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/fairwinds-insights] Added job for Action Items Statistics (#1314
) * Added job for Action Items Statistics * Fixed lint * Removing Ivan * Fixing issue * Testing * Fixing historical proces * Trying to fix * Trying to fix * Trying to fix * Trying to fix * Trying to fix * Trying to fix * Trying to fix * Trying to fix * Fixing issue * Fixed params * Bumped version
- Loading branch information
Showing
7 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
41 changes: 41 additions & 0 deletions
41
stable/fairwinds-insights/templates/action-items-statistics.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,41 @@ | ||
{{- if and .Values.actionItemsStatisticsCronjob .Values.actionItemsStatisticsCronjob.enabled }} | ||
{{ range .Values.actionItemsStatisticsCronjob.schedules }} | ||
--- | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: {{ include "fairwinds-insights.fullname" $ }}-cronjob-{{ .name }} | ||
labels: | ||
{{- include "fairwinds-insights.labels" $ | nindent 4 }} | ||
app.kubernetes.io/component: action-items-statistics-{{ .name }} | ||
spec: | ||
schedule: "{{ .cron }}" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: OnFailure | ||
{{- with $.Values.image.pullSecret }} | ||
imagePullSecrets: | ||
- name: {{ . }} | ||
{{- end }} | ||
containers: | ||
- name: fairwinds-insights | ||
image: "{{ $.Values.cronjobImage.repository }}:{{ include "fairwinds-insights.cronjobImageTag" $ }}" | ||
command: ["action_items_statistics"] | ||
{{- include "env" $ | indent 14 }} | ||
imagePullPolicy: Always | ||
resources: | ||
{{- toYaml $.Values.actionItemsStatisticsCronjob.resources | nindent 16 }} | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
allowPrivilegeEscalation: false | ||
privileged: false | ||
runAsNonRoot: true | ||
runAsUser: {{ $.Values.actionItemsStatisticsCronjob.securityContext.runAsUser }} | ||
capabilities: | ||
drop: | ||
- ALL | ||
{{ end }} | ||
{{- end }} |
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