claudio4j commented on issue #4466:
URL: https://github.com/apache/camel-k/issues/4466#issuecomment-1609537812

   The resources.go stores files as byte representation for late retrieval, for 
example in master.go trait `data, err := 
resources.TemplateResource(fmt.Sprintf("/addons/master/%s", name), params)` it 
loads the embedded file. 
   See the list of embedded files
   ```
   resources/traits.yaml
   resources/builder/builder-service-account.yaml
   resources/builder/builder-role.yaml
   resources/builder/builder-role-binding.yaml
   resources/builder/builder-role-binding-openshift.yaml
   resources/builder/builder-role-openshift.yaml
   resources/camel-catalog-2.16.0-SNAPSHOT.yaml
   resources/addons/master/master-role-configmap.tmpl
   resources/addons/master/master-role-lease.tmpl
   resources/addons/master/master-role-binding.tmpl
   resources/viewer/user-global-platform-viewer-role-binding.yaml
   resources/viewer/user-global-kamelet-viewer-role-binding.yaml
   resources/viewer/user-global-platform-viewer-role.yaml
   resources/viewer/user-global-kamelet-viewer-role.yaml
   ```
   
   I think they can be replaced by `go:embed`


-- 
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