File tree Expand file tree Collapse file tree 7 files changed +14
-3
lines changed Expand file tree Collapse file tree 7 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 22
22
"SERVICE_ACCOUNT_API_TOKEN" : " " ,
23
23
"DEFAULT_KUBERNETES_UPSTREAM_URL" : " https://api.snyk.io/v2/kubernetes-upstream" ,
24
24
"MAX_RETRY_BACKOFF_DURATION_SECONDS" : 300 ,
25
- "USE_KEEPALIVE" : true
25
+ "USE_KEEPALIVE" : true ,
26
+ "SYSDIG_POLLING_INTERVAL_MINS" : 30
26
27
}
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ helm upgrade --install snyk-monitor snyk-charts/snyk-monitor \
218
218
219
219
> NOTE: The above command should be executed after installing Sysdig. This will upgrade or install the snyk monitor, to allow the detection of Sysdig in the cluster.
220
220
221
- The snyk-monitor will now collect data from Sysdig every 4 hours .
221
+ The snyk-monitor will now collect data from Sysdig every 30 mins .
222
222
223
223
## Setting up proxying ##
224
224
Original file line number Diff line number Diff line change @@ -187,6 +187,8 @@ spec:
187
187
value : {{ quote .Values.skopeo.compression.level }}
188
188
- name : SNYK_WORKERS_COUNT
189
189
value : {{ quote .Values.workers.count }}
190
+ - name : SNYK_SYSDIG_POLLING_INTERVAL_MINS
191
+ value : {{ quote .Values.sysdig.pollingIntervalMins }}
190
192
{{- if .Values.sysdig.enabled }}
191
193
- name : SNYK_SYSDIG_RISK_SPOTLIGHT_TOKEN
192
194
valueFrom :
Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ workers:
157
157
sysdig :
158
158
enabled : false
159
159
secretName : sysdig-eve-secret
160
+ # The minumum pollingIntervalMins is 30
161
+ pollingIntervalMins : 30
160
162
161
163
strategy :
162
164
type : RollingUpdate
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ config.EXCLUDED_NAMESPACES = loadExcludedNamespaces();
47
47
config . WORKERS_COUNT = Number ( config . WORKERS_COUNT ) || 10 ;
48
48
config . SKOPEO_COMPRESSION_LEVEL = Number ( config . SKOPEO_COMPRESSION_LEVEL ) || 6 ;
49
49
50
+ // 30 mins minimum
51
+ if ( config . SYSDIG_POLLING_INTERVAL_MINS < 30 ) {
52
+ config . SYSDIG_POLLING_INTERVAL_MINS = 30 ;
53
+ }
54
+
50
55
// return Sysdig v2 endpoint information
51
56
if (
52
57
config . SYSDIG_RISK_SPOTLIGHT_TOKEN &&
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export interface Config {
22
22
SERVICE_ACCOUNT_API_TOKEN : string ;
23
23
DEFAULT_KUBERNETES_UPSTREAM_URL : string ;
24
24
MAX_RETRY_BACKOFF_DURATION_SECONDS : number ;
25
+ SYSDIG_POLLING_INTERVAL_MINS : number ;
25
26
26
27
// ----------------------------------------
27
28
// Properties injected by Helm (via environment variables) or manually set in code:
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ async function setupSysdigIntegration(): Promise<void> {
100
100
}
101
101
} , initialInterval ) . unref ( ) ;
102
102
103
- const interval : number = 4 * 60 * 60 * 1000 ; // 4 hours in milliseconds
103
+ const interval : number = config . SYSDIG_POLLING_INTERVAL_MINS * 60 * 1000 ; // change to milliseconds
104
104
setInterval ( async ( ) => {
105
105
try {
106
106
if ( sysdigVersion == sysdigV1 ) {
You can’t perform that action at this time.
0 commit comments