You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
print $.Template.BasePath "/configmap.yaml" fails in unittests #162
I was only specifing the template at root level and not at test level. When I add all required files at root level and the specific file at test level it works again.
before:
---
suite: test deployment
templates:
- charts/kube-prometheus-stack/charts/grafana/templates/deployment.yaml
tests:
- it: should be a deployment
asserts:
- isKind:
of: Deployment
after:
---
suite: test deployment
templates:
- charts/kube-prometheus-stack/charts/grafana/templates/configmap.yaml
- charts/kube-prometheus-stack/charts/grafana/templates/deployment.yaml
- charts/kube-prometheus-stack/charts/grafana/templates/secret.yaml
- charts/kube-prometheus-stack/charts/grafana/templates/dashboards-json-configmap.yaml
- charts/kube-prometheus-stack/charts/grafana/templates/configmap-dashboard-provider.yaml
tests:
- it: should be a deployment
set:
kube-prometheus-stack.grafana.envRenderSecret: true
template: charts/kube-prometheus-stack/charts/grafana/templates/deployment.yaml
asserts:
- isKind:
of: Deployment
Activity
venc0r commentedon May 23, 2023
I was only specifing the template at root level and not at test level. When I add all required files at root level and the specific file at test level it works again.
before:
after:
quintush commentedon Aug 21, 2023
Closed as answer is already given by the author.