Title: RFC: template.yaml · Issue #2987 · coder/coder · GitHub
Open Graph Title: RFC: template.yaml · Issue #2987 · coder/coder
X Title: RFC: template.yaml · Issue #2987 · coder/coder
Description: As a template admin, I want to subject my whole template to version control to simplify change management. If/when #2958 is implemented, this becomes even more true. Let's also remember that our product is built around an IaaC tool, so o...
Open Graph Description: As a template admin, I want to subject my whole template to version control to simplify change management. If/when #2958 is implemented, this becomes even more true. Let's also remember that our pr...
X Description: As a template admin, I want to subject my whole template to version control to simplify change management. If/when #2958 is implemented, this becomes even more true. Let's also remember that ou...
Opengraph URL: https://github.com/coder/coder/issues/2987
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RFC: template.yaml","articleBody":"As a template admin, I want to subject my whole template to version control to simplify change management. If/when #2958 is implemented, this becomes even more true. Let's also remember that our product is built around an IaaC tool, so our users probably prefer this method of configuration.\r\n\r\nAs a template admin, I sometimes forget what I've named my template. If I thoughtlessly run `coder templates update` and my directory happens to correspond with the wrong template I just disrupted developers. In a world without #2958, it's possible that the last template doesn't exist anymore and users are offline for days while it is reconstructed.\r\n\r\nAs a template admin, I forget that there are distinct `coder templates update` and `coder templates edit` commands. I'm also confused that `coder templates update` is the compliment to `coder templates pull`. I expect `push`/`pull` like git, or doors.\r\n\r\n## Proposal\r\n`coder templates edit` and `coder templates update` are unified as `coder templates push`.\r\n\r\nAll the configuration in `edit` is now in a `template.yml` file that looks like:\r\n\r\n```\r\nversion: 1\r\nname: dogfood\r\ndescription: \"Our standard dogfood image\"\r\nschedule:\r\n max_ttl: 12h\r\n min_autostart_interval: 24h\r\n# Some future knobs\r\ndeprecated_for: \"dogfood-ts\"\r\nallow:\r\n - all\r\ndeny:\r\n - dean@coder.com\r\n```\r\n\r\n**Why not HCL?**\r\nOur provisioner layer is abstract, and this template config sits above provisioning instead of within it. For example, we may have Docker, Pulumi and Kubernetes provisioners in the near future.","author":{"url":"https://github.com/ammario","@type":"Person","name":"ammario"},"datePublished":"2022-07-14T15:59:38Z","url":"https://github.com/coder/coder/issues/2987"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:89a7a2ed-4060-29bb-77fa-56d4e0599fed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7E8:29FFA9:2578AF6:2F72BB4:6B018957 |
| html-safe-nonce | c358db8e8ffa6f72b1f50c7b32daacaa62f8716e799bda395d4e6a0ec753adac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0U4OjI5RkZBOToyNTc4QUY2OjJGNzJCQjQ6NkIwMTg5NTciLCJ2aXNpdG9yX2lkIjoiODI3ODA4MzY5MTc4OTM3Njg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f1fd363daebe2a613ed08b4084dde784e109909950f0c9517a969fffc8d270d3 |
| hovercard-subject-tag | issue:1304985506 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/2987/issue_layout |
| twitter:image | https://opengraph.githubassets.com/beda751fce50dc0eadcbf353222d0b62325867cd3218969e71f04f3e73202200/coder/coder/issues/2987 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/beda751fce50dc0eadcbf353222d0b62325867cd3218969e71f04f3e73202200/coder/coder/issues/2987 |
| og:image:alt | As a template admin, I want to subject my whole template to version control to simplify change management. If/when #2958 is implemented, this becomes even more true. Let's also remember that our pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ammario |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width