Replies: 2 comments 4 replies
-
You could create a YAML file with that content, load it in your operator and then create a builder from it and just edit the values that need replacing. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hmm, good question, I usually use mustache if need some simple tamplating: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In my operator reconciliation loop, I need to manage
ConfigMap
that will hold different types of files - typically.properties
and.json
content. This content must be customized depending on my Custom Resource: some properties should be set to a CR attribute value, some properties should be added/removed depending on the CR content.There are straightforward ways to do this in Helm Chart using Go templates and in Ansible Operator SDK using Jinja templates. Is there a recommended/preferred way of doing this in the Java Operator SDK?
I was thinking of loading some template resource as a stream within the reconciler and then using something like Qute or Thymeleaf to produce the final result but I don't know how tied to the HTTP/REST world they are....
Any recommendations or suggestions? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions