forked from eclipse-jkube/jkube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(helm): HelmService should check in templates/test for template in…
…terpolation (3398) fix (jkube-kit/helm) : HelmService should check in nested directories while interpolating chart templates Follow up to eclipse-jkube#3346 + Modify HelmService's interpolateChartTemplates method to look for chart templates recursively as now chart templates can also be test templates that usually reside in `templates/tests/` directory. + We already have a method named `listYamls` in YamlUtil that lists yaml files in a specified directory. Add another method that would do the recursive listing based on boolean flag Signed-off-by: Rohan Kumar <[email protected]> --- review: helm test directory file interpolation Signed-off-by: Marc Nuri <[email protected]> Co-authored-by: Marc Nuri <[email protected]>
- Loading branch information
1 parent
dad4cc6
commit 72bac63
Showing
3 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...helm/src/test/resources/helm-test-fragment-with-parameters/test-connection.test.helm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: ${application.name}-test-connection | ||
annotations: | ||
"helm.sh/hook": test | ||
spec: | ||
containers: | ||
- image: ${image} | ||
args: ['${application.name}:${application.port}'] |