log4j-configmap.yaml 792 B

1234567891011121314151617181920
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if and .Values.log4j (not .Values.existingLog4jConfigMap) }}
  6. apiVersion: v1
  7. kind: ConfigMap
  8. metadata:
  9. name: {{ printf "%s-log4j-configuration" (include "common.names.fullname" .) }}
  10. namespace: {{ include "common.names.namespace" . | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. app.kubernetes.io/part-of: kafka
  13. {{- if .Values.commonAnnotations }}
  14. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  15. {{- end }}
  16. data:
  17. log4j.properties: |-
  18. {{- include "common.tplvalues.render" ( dict "value" .Values.log4j "context" $ ) | nindent 4 }}
  19. {{- end }}