Last active
April 30, 2021 22:39
-
-
Save pivotaljohn/2425698c574f3f0c2844532a933ecccd to your computer and use it in GitHub Desktop.
Text Templating (focusing on multi-line output)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:data", "data") | |
#@yaml/text-templated-strings | |
--- | |
apiVersion: v1 | |
data: | |
filter-grep.conf: | | |
# https://docs.fluentbit.io/manual/pipeline/filters/grep | |
# Cette commande filtre les logs qui contienent NomTraitement | |
# Ce filtre est le premier a passer et il est fait sur les donnees brutes | |
[FILTER] | |
name grep | |
match (@= data.values.match @) | |
exclude log NomTraitement | |
filter-kubernetes.conf: | | |
[FILTER] | |
Name kubernetes | |
Match (@= data.values.kubematch @) | |
kind: ConfigMap | |
metadata: | |
name: config | |
namespace: #@ data.values.nomprojet | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@data/values | |
--- | |
nomprojet: test | |
match: grep.* | |
kubematch: "kube.* " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment