File tree 3 files changed +19
-2
lines changed
contrib/syslog-ng-helm-chart/templates
modules/java/src/main/java/org/syslog_ng
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 32
32
containers :
33
33
- name : compress
34
34
image : " ubuntu:20.10"
35
+ resources :
36
+ limits :
37
+ cpu : 500m
38
+ memory : 2048Mi
35
39
command :
36
40
- /bin/entrypoint.sh
37
41
volumeMounts :
Original file line number Diff line number Diff line change @@ -7,9 +7,14 @@ metadata:
7
7
annotations :
8
8
" helm.sh/hook " : test-success
9
9
spec :
10
+ automountServiceAccountToken : false
10
11
containers :
11
12
- name : wget
12
13
image : busybox
13
14
command : ['wget']
14
15
args : ['{{ include "syslog-ng.fullname" . }}:{{ .Values.service.port }}']
16
+ resources :
17
+ limits :
18
+ cpu : 100m
19
+ memory : 256Mi
15
20
restartPolicy : Never
Original file line number Diff line number Diff line change @@ -90,8 +90,16 @@ private static List<String> resolveWildCardFileName(String path) {
90
90
List <String > result = new ArrayList <String >();
91
91
File f = new File (path );
92
92
final String basename = f .getName ();
93
- String dirname = f .getParent ();
94
- File dir = new File (dirname );
93
+ File dir ;
94
+ try {
95
+ String dirname = f .getParent ();
96
+ dir = new File (dirname );
97
+ }
98
+ catch (NullPointerException e ) {
99
+ InternalMessageSender .error ("Error. Null pointer dereference. Path or pattern might not exist:" + path + ". Error:" + e .getMessage ());
100
+ e .printStackTrace (System .err );
101
+ return result ;
102
+ }
95
103
File [] files = dir .listFiles (new FilenameFilter () {
96
104
97
105
public boolean accept (File dir , String name ) {
You can’t perform that action at this time.
0 commit comments