Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions charts/ecosystem/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ spec:
- --api
- --bootstrap
- file:/bootstrap.properties
{{- if .Values.log4j2Properties }}
- --log4j2-properties-file
- file:/log4j2.properties
{{- end }}
env:
# The Kubernetes namespace that the Galasa service is running within is passed into the API server
# so that the API server can query Kubernetes for monitor deployments in the /monitors REST APIs
Expand Down Expand Up @@ -190,10 +192,12 @@ spec:
- name: bootstrap
mountPath: /bootstrap.properties
subPath: bootstrap.properties
{{- if .Values.log4j2Properties }}
- name: log4j2-config
mountPath: /log4j2.properties
subPath: log4j2.properties
readOnly: true
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
mountPath: /log4j-config
Expand All @@ -217,9 +221,11 @@ spec:
- name: bootstrap
configMap:
name: {{ .Release.Name }}-bootstrap-file
{{- if .Values.log4j2Properties }}
- name: log4j2-config
configMap:
name: {{ .Release.Name }}-log4j2-config
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
configMap:
Expand Down
6 changes: 6 additions & 0 deletions charts/ecosystem/templates/custom-resource-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ spec:
- --obr
- file:galasa.obr
- --resourcemanagement
{{- if .Values.log4j2Properties }}
- --log4j2-properties-file
- file:/log4j2.properties
{{- end }}
env:
- name: NAMESPACE
valueFrom:
Expand Down Expand Up @@ -110,10 +112,12 @@ spec:
- name: encryption-keys
mountPath: {{ include "ecosystem.encryption.keys.directory" . }}
readOnly: true
{{- if .Values.log4j2Properties }}
- name: log4j2-config
mountPath: /log4j2.properties
subPath: log4j2.properties
readOnly: true
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
mountPath: /log4j-config
Expand All @@ -129,9 +133,11 @@ spec:
- name: encryption-keys
secret:
secretName: {{ include "ecosystem.encryption.keys.secret.name" . }}
{{- if .Values.log4j2Properties }}
- name: log4j2-config
configMap:
name: {{ .Release.Name }}-log4j2-config
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
configMap:
Expand Down
11 changes: 9 additions & 2 deletions charts/ecosystem/templates/engine-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ spec:
- /bin/bash
- -ec
- |
java -jar boot.jar --obr file:galasa.obr --setupeco --log4j2-properties-file file:/log4j2.properties
java -jar boot.jar --obr file:galasa.obr --k8scontroller --log4j2-properties-file file:/log4j2.properties
{{- if .Values.log4j2Properties }}
LOG4J_PROPERTIES_FLAG="--log4j2-properties-file file:/log4j2.properties"
{{- end }}
java -jar boot.jar --obr file:galasa.obr --setupeco ${LOG4J_PROPERTIES_FLAG}
java -jar boot.jar --obr file:galasa.obr --k8scontroller ${LOG4J_PROPERTIES_FLAG}
env:
- name: GALASA_INSTALL_NAME
value: {{ .Release.Name }}
Expand Down Expand Up @@ -153,10 +156,12 @@ spec:
- name: encryption-keys
mountPath: {{ include "ecosystem.encryption.keys.directory" . }}
readOnly: true
{{- if .Values.log4j2Properties }}
- name: log4j2-config
mountPath: /log4j2.properties
subPath: log4j2.properties
readOnly: true
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
mountPath: /log4j-config
Expand All @@ -172,9 +177,11 @@ spec:
- name: encryption-keys
secret:
secretName: {{ include "ecosystem.encryption.keys.secret.name" . }}
{{- if .Values.log4j2Properties }}
- name: log4j2-config
configMap:
name: {{ .Release.Name }}-log4j2-config
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
configMap:
Expand Down
2 changes: 2 additions & 0 deletions charts/ecosystem/templates/log4j2-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
#
# A ConfigMap that contains the global Log4j2 configuration that will be applied to all Galasa service pods
#
{{- if .Values.log4j2Properties }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-log4j2-config
data:
log4j2.properties: {{ .Values.log4j2Properties | quote }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/ecosystem/templates/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ spec:
- --obr
- file:galasa.obr
- --metricserver
{{- if .Values.log4j2Properties }}
- --log4j2-properties-file
- file:/log4j2.properties
{{- end }}
env:
- name: GALASA_EXTRA_BUNDLES
value: {{ include "framework.extra.bundles" . }}
Expand Down Expand Up @@ -127,10 +129,12 @@ spec:
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
{{- if .Values.log4j2Properties }}
- name: log4j2-config
mountPath: /log4j2.properties
subPath: log4j2.properties
readOnly: true
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
mountPath: /log4j-config
Expand All @@ -143,9 +147,11 @@ spec:
readOnly: true
{{- end }}
volumes:
{{- if .Values.log4j2Properties }}
- name: log4j2-config
configMap:
name: {{ .Release.Name }}-log4j2-config
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
configMap:
Expand Down
6 changes: 6 additions & 0 deletions charts/ecosystem/templates/resource-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ spec:
- --obr
- file:galasa.obr
- --resourcemanagement
{{- if .Values.log4j2Properties }}
- --log4j2-properties-file
- file:/log4j2.properties
{{- end }}
env:
- name: NAMESPACE
valueFrom:
Expand Down Expand Up @@ -141,10 +143,12 @@ spec:
- name: encryption-keys
mountPath: {{ include "ecosystem.encryption.keys.directory" . }}
readOnly: true
{{- if .Values.log4j2Properties }}
- name: log4j2-config
mountPath: /log4j2.properties
subPath: log4j2.properties
readOnly: true
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
mountPath: /log4j-config
Expand All @@ -160,9 +164,11 @@ spec:
- name: encryption-keys
secret:
secretName: {{ include "ecosystem.encryption.keys.secret.name" . }}
{{- if .Values.log4j2Properties }}
- name: log4j2-config
configMap:
name: {{ .Release.Name }}-log4j2-config
{{- end }}
{{- if .Values.log4jJsonTemplatesConfigMapName }}
- name: log4j-json-templates
configMap:
Expand Down
21 changes: 1 addition & 20 deletions charts/ecosystem/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -675,26 +675,7 @@ maxgRPCMessageSize: {}
# rootLogger.level = debug
# rootLogger.appenderRef.stdout.ref = stdout
#
log4j2Properties: |
status = error
name = Default

appender.console.type = Console
appender.console.name = stdout
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{dd/MM/yyyy HH:mm:ss.SSS} %-5p %c{1.} - %m%n

rootLogger.level = debug
rootLogger.appenderRef.stdout.ref = stdout

logger.http.name = org.apache.http
logger.http.level = info

logger.sshtools.name = com.sshtools
logger.sshtools.level = warn

logger.ftp.name = ftp
logger.ftp.level = info
log4j2Properties: ""

# The name of an existing ConfigMap in the same Kubernetes namespace that the Helm chart will be installed
# in containing one or more custom Log4j JSON template layouts to customize the Log4j events generated
Expand Down