Skip to content

Commit

Permalink
[stable/fairwidns-insights] - add sync action-items and IaC files cro…
Browse files Browse the repository at this point in the history
…njob (#1533)

* add new cronjob

* bump version

* fix
  • Loading branch information
vitorvezani authored Oct 8, 2024
1 parent 4f08e3a commit 3985d7f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 49 deletions.
3 changes: 3 additions & 0 deletions stable/fairwinds-insights/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion stable/fairwinds-insights/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions stable/fairwinds-insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
99 changes: 51 additions & 48 deletions stable/fairwinds-insights/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -72,7 +71,6 @@ options:
cpu: 1000m
memory: 1Gi


cronjobOptions:
# -- Default security context for cronjobs
securityContext:
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3985d7f

Please sign in to comment.