From db6921d9737b98b3a84bd9ccfa12b3cb45af8b87 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Wed, 23 Oct 2024 08:28:12 +0530 Subject: [PATCH] fix: ignore URL field when templating kubernetes resource --- checks/kubernetes_resource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/checks/kubernetes_resource.go b/checks/kubernetes_resource.go index 542d71f62..a807cabb8 100644 --- a/checks/kubernetes_resource.go +++ b/checks/kubernetes_resource.go @@ -123,6 +123,9 @@ func (c *KubernetesResourceChecker) Check(ctx context.Context, check v1.Kubernet "resources": check.Resources, }, ValueFunctions: true, + IgnoreFields: map[string]string{ + "URL": "string", // Avoid templating URL which might have non-templated username, password etc. + }, DelimSets: []gomplate.Delims{ {Left: "{{", Right: "}}"}, {Left: "$(", Right: ")"},