Skip to content

Commit

Permalink
filter_kubernetes: stop caching metadata for failed api server query (#…
Browse files Browse the repository at this point in the history
…1851)

Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
patrickshan authored and edsiper committed May 11, 2020
1 parent 030ef8b commit 92876a6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/filter_kubernetes/kube_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,12 @@ static int get_and_merge_meta(struct flb_kube *ctx, struct flb_kube_meta *meta,
char *api_buf;
size_t api_size;

get_api_server_info(ctx,
meta->namespace, meta->podname,
&api_buf, &api_size);
ret = get_api_server_info(ctx,
meta->namespace, meta->podname,
&api_buf, &api_size);
if (ret == -1) {
return -1;
}

ret = merge_meta(meta, ctx,
api_buf, api_size,
Expand Down

0 comments on commit 92876a6

Please sign in to comment.