-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(yaml): Allow remapping raw YAML files
By default reimage processes K8S manifests. If `--input=yaml` is passed on the CLI, reimage processes files as raw YAML. The actual fields to be remapped must be identified using the `-rules-config` file. Any rules using a kind of "Raw" will be used (these are ignored by regular k8s processing. ```yaml - kind: Raw imageJSONP: - '$.images.*' ``` will rename all the images pointed to by identifiers under the `images` key. ```yaml --- images: myImage: "alpine:latest" yourImage: "docker:dind" ``` Signed-off-by: Tristan Colgate-McFarlane <[email protected]>
- Loading branch information
Showing
3 changed files
with
156 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters