Skip to content

Commit

Permalink
fix: ignore URL field when templating kubernetes resource
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Oct 23, 2024
1 parent 0b20dbb commit db6921d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checks/kubernetes_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: ")"},
Expand Down

0 comments on commit db6921d

Please sign in to comment.