From 75446d861dd55e70062a1428dd069c383b94cdce Mon Sep 17 00:00:00 2001 From: Michael Voelker Date: Thu, 12 May 2022 19:43:32 +0200 Subject: [PATCH] filter_kubernetes: use FLB_CONFIG_MAP_TIME for kube_token_ttl config Signed-off-by: Michael Voelker --- plugins/filter_kubernetes/kubernetes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/filter_kubernetes/kubernetes.c b/plugins/filter_kubernetes/kubernetes.c index 1d0cd43c1f5..f6568e3e4ac 100644 --- a/plugins/filter_kubernetes/kubernetes.c +++ b/plugins/filter_kubernetes/kubernetes.c @@ -848,9 +848,9 @@ static struct flb_config_map config_map[] = { "kubelet port to connect with when using kubelet" }, { - FLB_CONFIG_MAP_INT, "kube_token_ttl", "600", + FLB_CONFIG_MAP_TIME, "kube_token_ttl", "10m", 0, FLB_TRUE, offsetof(struct flb_kube, kube_token_ttl), - "kubelet token ttl" + "kubernetes token ttl, until it is reread from the token file. Default: 10m" }, /* * Set TTL for K8s cached metadata