Skip to content
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

refactor(productcatalogservice): use //go:embed directive for products.json #1361

Closed
wants to merge 1 commit into from

Conversation

tranngoclam
Copy link
Contributor

Changes

  • Apply //go:embed directive to store the products.json data, by doing this we don't need to COPY the json file into container image.

Merge Requirements

For new features contributions please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions
  • Appropriate documentation updates in the docs
  • Appropriate Helm chart updates in the helm-charts

Maintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.

@tranngoclam tranngoclam requested a review from a team February 2, 2024 04:46
@puckpuck
Copy link
Contributor

puckpuck commented Feb 2, 2024

Hmmm. I have a PR I'm tee-ing up that takes advantage of this being copied into the container so users can modify the products list at runtime.

Doing this embed would not allow that to be possible.

@tranngoclam
Copy link
Contributor Author

Hmmm. I have a PR I'm tee-ing up that takes advantage of this being copied into the container so users can modify the products list at runtime.

Doing this embed would not allow that to be possible.

@puckpuck it's fine, so let close my PR

@tranngoclam tranngoclam closed this Feb 3, 2024
@tranngoclam tranngoclam deleted the chore/products branch February 3, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants