Skip to content

chore(dogfood): include multiple templates under dogfood/ #16846

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 16 commits into from
Mar 11, 2025

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Mar 7, 2025

We have an alternative dogfood template that has long-since required manual updating. Bringing this under the auspices of terraform-provider-coderd. This will also make it easier to add more templates under dogfood/ in the future.

As part of this, I moved the existing template under dogfood/coder. I think I got all of the references to it, but there's a non-zero chance I missed something.

  • Renames dogfood/contents to dogfood/coder.
  • Moves coder-envbuilder to dogfood/coder-envbuilder.
  • Updates dogfood/main.tf to push coder-envbuilder template.
  • Replaces hard-coded organization IDs with data.coderd_organization.default.id.

@johnstcn johnstcn self-assigned this Mar 7, 2025
@johnstcn johnstcn changed the title chore(dogfood): have multiple templates under dogfood/ chore(dogfood): include multiple templates under dogfood/ Mar 7, 2025
Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

Could this just be a single coderd provider terraform file instead at dogfood/main.tf, with the actual template terraform things in dogfood/coder and dogfood/coder-envbuilder (no contents dirs)

Doesn't seem like we get much gain from having them be two separate apply operations since the coderd provider should support multiple templates

@ethanndickson
Copy link
Member

Dean beat me to it! I think this should just be a seperate resource in the same file, instead of two files.

@johnstcn johnstcn force-pushed the cj/ci-multiple-dogfood-templates branch from f81e490 to fbb1271 Compare March 10, 2025 09:50
@johnstcn johnstcn force-pushed the cj/ci-multiple-dogfood-templates branch from 148f59c to d49f813 Compare March 11, 2025 11:40
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM. Great Work 🚀

@johnstcn johnstcn force-pushed the cj/ci-multiple-dogfood-templates branch from 800c96b to 6f9c950 Compare March 11, 2025 13:00
@johnstcn johnstcn merged commit 09dd69a into main Mar 11, 2025
36 checks passed
@johnstcn johnstcn deleted the cj/ci-multiple-dogfood-templates branch March 11, 2025 13:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants