这是indexloc提供的服务,不要输入任何密码
Skip to content

Nested templates do not seem to be available to tests #6

@ghost

Description

I have a chart that has the following directory structure:

templates/
-- configmaps/
---- configmap1.yaml
---- configmap2.yaml
-- routes/
---- route1.yaml
---- route2.yaml
-- secrets/
---- secrets1.yaml
---- secrets2.yaml
---- secrets3.yaml

If I was to run the test in the following format:
helm unit -t templates/ -c values.yaml -p tests/policies/

how can i reference route1.yaml in my test? I tried both of the following and neither was successful:

`package main

assert ["test 1"] {
input["route1.yaml"]
}`

and

`package main

assert ["test 1"] {
input["routes/route1.yaml"]
}`

If I move route1.yaml into the root of the templates directory the test will pass by referencing it as "route1.yaml"

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions