3/17/2024 0 Comments Filter forge config files![]() ![]() ![]() The filter also protects against HTTP response splitting. The filter works by adding required Access-Control- headers to HttpServletResponse object. I'm only leaving my answer here because it explains why his suggestion is so good and some people may prefer the less abstract approach. This filter is an implementation of W3Cs CORS (Cross-Origin Resource Sharing) specification, which is a mechanism that enables cross-origin requests. I suggest everyone votes for his answer as it is the better solution. However, you can do it with Files.Get to read the file content as a string and the pass that into tpl to put it through the templating engine as Mykolaichenko suggests in. Files.Glob to be able to reference the files without having to put the whole content in the configmap but I don't think you can do that and still use templated variables in them. It would also be nice to be able to load the files independently using. It would be tempting for cleanliness to use different configmaps but that would then be a problem for mounting to the same directory. I guess you'd like to mount then to the same directory. Look for the sample syntax: apiVersion: v1 I had same problem for a few weeks ago with adding files and templates directly to container. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |