Skip to content

Commit c7f7aa6

Browse files
Merge pull request #240 from philbrookes/templates-in-docker-container
add template path for docker container
2 parents 1d358d2 + cb07dc2 commit c7f7aa6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/controller/installation/products/monitoring/templateHelper.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ func NewTemplateHelper(extraParams map[string]string) *TemplateHelper {
3636
if _, err := os.Stat(templatePath); os.IsNotExist(err) {
3737
templatePath = "../../../../../templates/monitoring"
3838
if _, err := os.Stat(templatePath); os.IsNotExist(err) {
39-
panic("cannot find templates")
39+
templatePath = "/usr/local/bin/templates/monitoring"
40+
if _, err := os.Stat(templatePath); os.IsNotExist(err) {
41+
panic("cannot find templates")
42+
}
4043
}
4144
}
4245

0 commit comments

Comments
 (0)