-
Notifications
You must be signed in to change notification settings - Fork 979
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
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3a6b7cd
chore(dogfood): move dogfood template contents to subdir
johnstcn a2733a1
chore(dogfood): move coder-envbuilder template under VCS control
johnstcn 9b50f9d
fixup! chore(dogfood): move coder-envbuilder template under VCS control
johnstcn bda4920
address PR comments
johnstcn 97ea68d
fixup! address PR comments
johnstcn 3bb008e
fixup! fixup! address PR comments
johnstcn d028fe3
replace hard-coded organization_id
johnstcn 07644b1
deduplicate
johnstcn 4b38f40
fix dirs
johnstcn c43a047
remove contents dirs
johnstcn 8522da3
fixup! remove contents dirs
johnstcn 93d08b4
fixup! fixup! remove contents dirs
johnstcn 6df0590
undiff
johnstcn eae0f0d
more fixups
johnstcn f9b3552
another fixup
johnstcn 6f9c950
fix pushd/popd
johnstcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore(dogfood): move coder-envbuilder template under VCS control
- Loading branch information
commit a2733a1f252741057b57aa19c56892a22b75a780
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
terraform { | ||
required_providers { | ||
coderd = { | ||
source = "coder/coderd" | ||
} | ||
} | ||
backend "gcs" { | ||
bucket = "coder-dogfood-tf-state" | ||
prefix = "/templates/coder-envbuilder" | ||
johnstcn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} | ||
|
||
data "coderd_organization" "default" { | ||
is_default = true | ||
} | ||
|
||
data "coderd_user" "machine" { | ||
username = "machine" | ||
} | ||
|
||
variable "CODER_TEMPLATE_VERSION" { | ||
type = string | ||
} | ||
|
||
variable "CODER_TEMPLATE_DIR" { | ||
type = string | ||
} | ||
|
||
variable "CODER_TEMPLATE_MESSAGE" { | ||
type = string | ||
} | ||
|
||
resource "coderd_template" "dogfood" { | ||
name = "coder-envbuilder" | ||
display_name = "Write Coder on Coder using Envbuilder" | ||
description = "Write Coder on Coder using a workspace built by Envbuilder." | ||
icon = "/emojis/1f3d7.png" # 🏗️ | ||
organization_id = "703f72a1-76f6-4f89-9de6-8a3989693fe5" | ||
versions = [ | ||
{ | ||
name = var.CODER_TEMPLATE_VERSION | ||
message = var.CODER_TEMPLATE_MESSAGE | ||
directory = var.CODER_TEMPLATE_DIR | ||
active = true | ||
tf_vars = [{ | ||
# clusters/dogfood-v2/coder/provisioner/configs/values.yaml#L191-L194 | ||
"envbuilder_cache_dockerconfigjson_path" = "/home/coder/envbuilder-cache-dockerconfig.json" | ||
}] | ||
} | ||
] | ||
acl = { | ||
groups = [{ | ||
id = data.coderd_organization.default.id | ||
role = "use" | ||
}] | ||
users = [{ | ||
id = data.coderd_user.machine.id | ||
role = "admin" | ||
}] | ||
} | ||
activity_bump_ms = 10800000 | ||
allow_user_auto_start = true | ||
allow_user_auto_stop = true | ||
allow_user_cancel_workspace_jobs = false | ||
auto_start_permitted_days_of_week = ["friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday"] | ||
auto_stop_requirement = { | ||
days_of_week = ["sunday"] | ||
weeks = 1 | ||
} | ||
default_ttl_ms = 28800000 | ||
deprecation_message = null | ||
failure_ttl_ms = 604800000 | ||
require_active_version = true | ||
time_til_dormant_autodelete_ms = 7776000000 | ||
time_til_dormant_ms = 8640000000 | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.