You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,10 +254,23 @@ or for Deployment:
254
254
255
255
[Qute templating engine](https://quarkus.io/guides/qute) is very flexible.
256
256
We extend it only we two additional functions, to decode and encode base64 values. More might come in the future.
257
-
You can call these on every string of byte array:
257
+
You can call these on every string of byte array, using `decodeBase64` and `encodeBase64` keywords.
258
258
259
+
```yaml
260
+
resourceTemplate: |
261
+
apiVersion: v1
262
+
kind: ConfigMap
263
+
metadata:
264
+
name: my-secret-copy
265
+
namespace: namespace-a
266
+
data:
267
+
{#for entry in secret-to-copy.data}
268
+
{entry.key}: {entry.value.decodeBase64}
269
+
{/for}
259
270
271
+
```
260
272
273
+
See the full example [here](https://github.com/java-operator-sdk/kubernetes-glue-operator/blob/main/src/test/resources/glue/CopySecretToConfigMap.yaml).
0 commit comments