Skip to content

Commit 49c6df9

Browse files
committed
wip
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 042a0c8 commit 49c6df9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/reference.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,23 @@ or for Deployment:
254254

255255
[Qute templating engine](https://quarkus.io/guides/qute) is very flexible.
256256
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.
258258

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}
259270
271+
```
260272

273+
See the full example [here](https://github.com/java-operator-sdk/kubernetes-glue-operator/blob/main/src/test/resources/glue/CopySecretToConfigMap.yaml).
261274

262275
## Implementation details and performance
263276

0 commit comments

Comments
 (0)