File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 7575 value : {{ .Values.no_proxy }}
7676 - name : LOG_LEVEL
7777 value : {{ .Values.log_level }}
78+ - name : SKIP_K8S_JOBS
79+ value : {{ .Values.skip_k8s_jobs }}
7880 {{- with .Values.envs }}
7981 {{- toYaml . | trim | nindent 10 -}}
8082 {{ end }}
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ limits:
6262http_proxy :
6363https_proxy :
6464no_proxy :
65+ skip_k8s_jobs :
6566
6667# Override default (INFO) log level if less verbosity needed
6768log_level :
Original file line number Diff line number Diff line change @@ -21,4 +21,6 @@ delete process.env['HTTPS_PROXY'];
2121delete process . env [ 'HTTP_PROXY' ] ;
2222delete process . env [ 'NO_PROXY' ] ;
2323
24+ config . SKIP_K8S_JOBS = process . env . SKIP_K8S_JOBS === 'true' ;
25+
2426export { config } ;
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ function setupWatchesForNamespace(namespace: string): void {
2626 logger . info ( { namespace} , 'setting up namespace watch' ) ;
2727
2828 for ( const workloadKind of Object . values ( WorkloadKind ) ) {
29+ // Disable handling events for k8s Jobs for debug purposes
30+ if ( config . SKIP_K8S_JOBS === true && workloadKind === WorkloadKind . Job ) {
31+ continue ;
32+ }
33+
2934 try {
3035 setupInformer ( namespace , workloadKind ) ;
3136 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments