github.com/verrazzano/verrazzano@v1.7.0/platform-operator/helm_config/charts/verrazzano-fluentd/templates/fluentd-init-configmap.yaml (about)

     1  # Copyright (c) 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  apiVersion: v1
     5  kind: ConfigMap
     6  metadata:
     7    name: {{ .Values.logging.name }}-init
     8    namespace: {{ .Release.Namespace }}
     9    labels:
    10      app: {{ .Values.logging.name }}
    11  data:
    12    init.sh: |
    13      #!/bin/bash
    14      cat /etc/ssl/certs/ca-bundle.crt > /fluentd/cacerts/all-ca-certs.pem
    15      if [ -f "/fluentd/secret/ca-bundle" ]; then
    16        cat /fluentd/secret/ca-bundle >> /fluentd/cacerts/all-ca-certs.pem
    17      fi
    18      if [ -f "/fluentd/secret/es-ca-bundle" ]; then
    19        cat /fluentd/secret/es-ca-bundle >> /fluentd/cacerts/all-ca-certs.pem
    20      fi