Skip to content

Commit

Permalink
📝 Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinemartin committed Feb 10, 2023
1 parent fa6ba12 commit 51d35b4
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,38 @@ replacements:
- spec.source.helm.values.!!yaml.ingressRoute.dashboard.enabled
```

As the source of the replacement is _sideloaded_, there no need to inject it nor
remove it from the configuration. Also, as the `source` can be a kustomization,
there is no need for it to be local.
As the source of the replacement is _side loaded_, there no need to inject it
nor remove it from the configuration. Also, as the `source` can be a
kustomization, there is no need for it to be local.

#### Replacement with encoding

Kustomize has an `encoding` option in `ReplacementTransformer` that is currently
unused. We put it to the work and provide three encoding types:

- base64
- bcrypt
- hex

Example:

```yaml
- source:
name: autocloud-values
fieldPath: data.to_encode
options:
encoding: base64
targets:
- select:
kind: ConfigMap
name: argocd-cm
fieldPaths:
- data.b64encoded
```

Thanks to this feature, you can keep some values in clear text inside your
properties files and encode them on kustomization. Be aware that the `bcrypt`
encoding will generate a new value for each kustomization.

## Installation

Expand Down

0 comments on commit 51d35b4

Please sign in to comment.