Skip to content

chore(setup): store source manifests as json #3762

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

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

swiatekm
Copy link

Instead of templating Terraform manifests in HCL, we instead do it in JSON. This is easier and less error-prone, as Helm lets us generate JSON directly from dictionaries in the Helm Chart configuration.

Note that we actually generate more than we need here. The other data will be used in subsequent changes from #3761, of which this change is a part of.

@swiatekm swiatekm requested a review from a team as a code owner June 13, 2024 15:01
@sumo-drosiek
Copy link
Contributor

sumo-drosiek commented Jun 13, 2024

I need time to process it :hell_chart:

},
"default_metrics_source": {
"config-name": "endpoint-metrics",
"name": "(default-metrics)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious how come default metrics has parenthesis around it? 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone long ago decided it should be this way, changing it is painful, and it doesn't really hurt anyone.

@swiatekm swiatekm merged commit ae27b22 into main Jun 17, 2024
59 checks passed
@swiatekm swiatekm deleted the chore/setup/terraform-json branch June 17, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants