From 3985d7f3024d15664d5d262d87f9c68de26b1b54 Mon Sep 17 00:00:00 2001 From: Vitor Rodrigo Vezani Date: Tue, 8 Oct 2024 15:34:01 -0300 Subject: [PATCH] [stable/fairwidns-insights] - add sync action-items and IaC files cronjob (#1533) * add new cronjob * bump version * fix --- stable/fairwinds-insights/CHANGELOG.md | 3 + stable/fairwinds-insights/Chart.yaml | 2 +- stable/fairwinds-insights/README.md | 1 + stable/fairwinds-insights/values.yaml | 99 +++++++++++++------------- 4 files changed, 56 insertions(+), 49 deletions(-) diff --git a/stable/fairwinds-insights/CHANGELOG.md b/stable/fairwinds-insights/CHANGELOG.md index 9a8c437fc..a7e3f70cc 100644 --- a/stable/fairwinds-insights/CHANGELOG.md +++ b/stable/fairwinds-insights/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2.4.0 +* Adds `cronjobs.sync-action-items-iac-files` definition - this cronjob is responsible for linking action-items and IaC Files + ## 2.3.0 * Adds `useReadReplica` to cronjobs to enable `postgresql.readReplica` injection instead of primary database diff --git a/stable/fairwinds-insights/Chart.yaml b/stable/fairwinds-insights/Chart.yaml index 5f697c760..9f9fa6dd4 100644 --- a/stable/fairwinds-insights/Chart.yaml +++ b/stable/fairwinds-insights/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "16.2" description: A Helm chart to run the Fairwinds Insights server name: fairwinds-insights -version: 2.3.0 +version: 2.4.0 kubeVersion: ">= 1.22.0-0" maintainers: - name: rbren diff --git a/stable/fairwinds-insights/README.md b/stable/fairwinds-insights/README.md index 785d607da..f25edfc9b 100644 --- a/stable/fairwinds-insights/README.md +++ b/stable/fairwinds-insights/README.md @@ -55,6 +55,7 @@ See [insights.docs.fairwinds.com](https://insights.docs.fairwinds.com/technical- | cronjobs.trial-end | object | `{"command":"trial_end_downgrade","schedule":""}` | Options for the trial-end job. | | cronjobs.move-health-scores-to-ts | object | `{"command":"move_resource_health_scores_to_ts","schedule":"*/30 * * * *"}` | Options for the move-health-scores-to-ts job. | | cronjobs.image-vulns-refresh | object | `{"command":"image_vulnerabilities_refresher","schedule":"*/30 * * * *"}` | Options for the image-vulns-refresh job. | +| cronjobs.sync-action-items-iac-files | object | `{"command":"sync_action_items_iac_files","schedule":"0 * * * *"}` | Options for the sync-action-items-iac-files cronjob. | | selfHostedSecret | string | `nil` | | | additionalEnvironmentVariables | object | `{}` | Additional Environment Variables to set on the Fairwinds Insights pods. | | rbac.serviceAccount.annotations | object | `{}` | Annotations to add to the service account | diff --git a/stable/fairwinds-insights/values.yaml b/stable/fairwinds-insights/values.yaml index a9b6b5ddf..71770d4a2 100644 --- a/stable/fairwinds-insights/values.yaml +++ b/stable/fairwinds-insights/values.yaml @@ -43,7 +43,6 @@ openApiImage: # -- Overrides tag for the Open API server, defaults to image.tag tag: v4.1.3 # NOTE: if you're changing this, be sure to look at templates/openapi-nginx-conf.yaml - options: # -- Which version of the Insights Agent is supported by this version of Fairwinds Insights agentChartTargetVersion: 4.4.4 @@ -72,7 +71,6 @@ options: cpu: 1000m memory: 1Gi - cronjobOptions: # -- Default security context for cronjobs securityContext: @@ -96,7 +94,7 @@ cronjobOptions: cronjobs: # -- Options for the action-items filters refresher job. action-item-filters-refresh: - command: 'action_items_filters_refresher' + command: action_items_filters_refresher schedule: "0/15 * * * *" # -- Options for the action item stats job @@ -106,14 +104,14 @@ cronjobs: # -- Options for the realtime alerts job alerts-realtime: - command: 'notifications_digest' + command: notifications_digest interval: 10m schedule: "5/10 * * * *" # -- Options for the benchmark job benchmark: command: benchmark - schedule: '' + schedule: "" # -- Options for the update tickets job. update-tickets: @@ -149,17 +147,17 @@ cronjobs: # -- Options for the email digest job. email: command: email_digest - schedule: '' + schedule: "" # -- Options for the hubspot job. hubspot: - command: 'hubspot_sync' - schedule: '' + command: hubspot_sync + schedule: "" useReadReplica: true # -- Options for digest notifications job notifications-digest: - command: 'notifications_digest' + command: notifications_digest schedule: "0 16 * * *" interval: 24h @@ -200,6 +198,11 @@ cronjobs: command: image_vulnerabilities_refresher schedule: "*/30 * * * *" + # -- Options for the sync-action-items-iac-files cronjob. + sync-action-items-iac-files: + command: sync_action_items_iac_files + schedule: "0 * * * *" + selfHostedSecret: # -- Additional Environment Variables to set on the Fairwinds Insights pods. @@ -225,18 +228,18 @@ dashboard: max: 4 # -- Scaling metrics metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 75 - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: 75 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 75 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 75 # -- Resources for the front end pods. resources: limits: @@ -270,18 +273,18 @@ api: max: 4 # -- Scaling metrics metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 75 - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: 75 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 75 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 75 # -- Resources for the API server. resources: limits: @@ -321,18 +324,18 @@ openApi: max: 3 # -- Scaling metrics metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 75 - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: 75 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 75 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 75 # -- Resources for the Open API server. resources: limits: @@ -526,9 +529,9 @@ minio: install: true # -- Create the following buckets for the newly installed Minio buckets: - - name: reports - policy: none - purge: false + - name: reports + policy: none + purge: false # -- Resources for Minio resources: requests: