-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add helm-operator-mapper tool for migrating from helm to operator #1570
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just requesting some minor updates
* add updateMap flag * fix mapping * fix values parsing * remove invalid parent keys from mapping * refactor * more refactor, add comments * remove _
* add updateMap flag * fix mapping * update mapping for secrets, config maps * update mapping * fix values parsing * remove invalid parent keys from mapping * update mapper * minor fixes * updating mapper * remove parents to nested keys --------- Co-authored-by: Fanny Jiang <[email protected]>
* updateMap to use provided sourceFile and mappingFile * remove comment, grammar fixes * update readme, rename tooling * fix mapping * fix logging
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, approving with a couple of additional minor suggestions for formatting consistency
## Example usage (using provided files) | ||
|
||
```bash | ||
$ ./helm-operator-mapper -sourceFile=example_source.yaml -mappingFile=mapping_datadog_helm_to_datadogagent_crd.yaml -prefixFile=example_prefix.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ ./helm-operator-mapper -sourceFile=example_source.yaml -mappingFile=mapping_datadog_helm_to_datadogagent_crd.yaml -prefixFile=example_prefix.yaml | |
$ ./helm-operator-mapper -sourceFile=<EXAMPLE_SOURCE>.yaml -mappingFile=mapping_datadog_helm_to_datadogagent_crd.yaml -prefixFile=<EXAMPLE_PREFIX>.yaml |
|
||
## Purpose | ||
|
||
The purpose of this tool is to map a YAML file of a certain structure to another YAML file of a different structure. For instance, migrating a Helm chart values.yaml file to another values.yaml file after a significant chart update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of this tool is to map a YAML file of a certain structure to another YAML file of a different structure. For instance, migrating a Helm chart values.yaml file to another values.yaml file after a significant chart update. | |
The purpose of this tool is to map a YAML file of a certain structure to another YAML file of a different structure. For instance, migrating a Helm chart `values.yaml` file to another `values.yaml` file after a significant chart update. |
What this PR does / why we need it:
Add yaml-mapper tool to helm charts to help users switch from installing the Datadog Agent with helm charts to using Operator. The yaml mapper script will take a values.yaml file used for helm charts and convert it into one that is compatible with the operator.
Special notes for your reviewer:
part of agent innovation week project
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
.github/helm-docs.sh
)CHANGELOG.md
has been updatedREADME.md
make update-test-baselines
)