From 89af7292b11ac9a9d100ba1e6a81c81441472f14 Mon Sep 17 00:00:00 2001 From: Matt Bunch <127370815+bunchmj@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:38:23 -0500 Subject: [PATCH] fix: vector remap language logic typo (#959) ## Description Fix for existence check in VRL code for vector. ## Related Issue Fixes # no issue submitted; trivial fix for logic typo in vector values.yaml ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md) followed --- src/vector/values/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector/values/values.yaml b/src/vector/values/values.yaml index aff279fe7..544c00564 100644 --- a/src/vector/values/values.yaml +++ b/src/vector/values/values.yaml @@ -37,7 +37,7 @@ customConfig: if exists(.kubernetes.pod_labels."app.kubernetes.io/component") { .component = .kubernetes.pod_labels."app.kubernetes.io/component" - } else if !exists(.kubernetes.pod_labels.component) { + } else if exists(.kubernetes.pod_labels.component) { .component = .kubernetes.pod_labels.component } else { .component = ""