squakez commented on code in PR #6807:
URL: https://github.com/apache/camel-k/pull/6807#discussion_r4005910742


##########
pkg/resources/resources_test.go:
##########
@@ -123,32 +119,14 @@ func TestResourcesWithPrefix(t *testing.T) {
 }
 
 func TestTemplateResource(t *testing.T) {
-       fname := "master-role-lease.tmpl"
-       name := "myintegration-master"
-       ns := "test-nm"
-
-       templateData := struct {
-               Namespace      string
-               Name           string
-               ServiceAccount string
+       data, err := TemplateResource("/resources/testdata/template.tmpl", 
struct {

Review Comment:
   Yes, strictly speaking it is true. However, the API is not really meant to 
be used publicly, so we are more flexible and can reduce the code that is not 
used internally.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to